oc_login
Log into an OpenShift cluster using username/password or token authentication to enable subsequent cluster management operations.
Instructions
Securely log into an OpenShift cluster using username/password or token authentication
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | OpenShift authentication token (required if authMethod is token) | |
| server | Yes | OpenShift cluster server URL (e.g., https://api.cluster.example.com:6443) | |
| context | No | Context name to save the login session (optional) | |
| timeout | No | Login timeout in seconds | |
| password | No | Password for password authentication (required if authMethod is password) | |
| username | No | Username for password authentication (required if authMethod is password) | |
| namespace | No | Default namespace to set after login | default |
| authMethod | Yes | Authentication method to use | token |
| certificateAuthority | No | Path to certificate authority file for TLS verification | |
| insecureSkipTlsVerify | No | Skip TLS certificate verification (not recommended for production) |