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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"server": "<server>",
"authMethod": "<authMethod>"
},
"name": "oc_login"
}
}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) |