kubernetes
How to get these credentialsHow to reach a Kubernetes API server: a kubeconfig (with an optional context) or a server URL with a bearer token or client certificate. Read-only access (get/list/watch) is all the worker needs.
CREATE SECRET kubernetes (
TYPE kubernetes,
kubeconfig '<KUBERNETES_KUBECONFIG>', -- secret
context '<context>',
server '<server>',
token '<KUBERNETES_TOKEN>', -- secret
certificate_authority_data '<certificate_authority_data>',
client_certificate_data '<client_certificate_data>',
client_key_data '<KUBERNETES_CLIENT_KEY_DATA>', -- secret
tls_server_name '<tls_server_name>',
insecure_skip_tls_verify '<insecure_skip_tls_verify>'
);
| Key | Type | Required | Description |
|---|---|---|---|
| kubeconfig secret | VARCHAR | — | A whole kubeconfig file's contents, as YAML or base64-encoded YAML. Exec and auth-provider plugins in it run on the worker's host, as with kubectl. |
| context | VARCHAR | — | Context in KUBECONFIG to use; default its current-context. |
| server | VARCHAR | — | API server URL, e.g. https://10.0.0.1:6443. Overrides the kubeconfig's server. |
| token secret | VARCHAR | — | Bearer token, e.g. a ServiceAccount token from `kubectl create token`. |
| certificate_authority_data | VARCHAR | — | PEM (or base64 PEM) CA bundle that signed the API server's certificate; default the system roots. |
| client_certificate_data | VARCHAR | — | PEM (or base64 PEM) client certificate for mutual TLS. |
| client_key_data secret | VARCHAR | — | PEM (or base64 PEM) private key of CLIENT_CERTIFICATE_DATA. |
| tls_server_name | VARCHAR | — | Server name to verify in the API server's certificate, when it differs from the SERVER host. |
| insecure_skip_tls_verify | VARCHAR | — | 'true' to skip verifying the server certificate (test clusters only). |
The worker doesn't mark which keys are required.