Kubernetes
Copy link to the page “Kubernetes”Renews one Kubernetes TLS Secret and checks the consumer certificate when reachable.
What happens
- The appliance connects to Kubernetes through Kubernetes HTTPS API on port 6443.
- Select one TLS Secret. The integration creates it or updates tls.crt and tls.key with a resourceVersion check; previous material is retained in the same Secret under sslbrain-previous.crt and sslbrain-previous.key.
- The stored leaf is read back. Consumers reload the change themselves; the integration restarts nothing and can wait for the TLS leaf at a selected or discovered Ingress listener.
Technical details
- Connection
- The integration runs on the appliance, which connects over HTTPS to Kubernetes HTTPS API, port 6443. No service agent is installed.
- What you need
- Run kubectl -n <ns> create serviceaccount <sa>. Apply a namespace Role granting secrets get,list,create,patch,delete in apiGroups [""], and ingresses get,list in apiGroups ["networking.k8s.io"] (see README YAML). Bind it: kubectl -n <ns> create rolebinding <binding> --role=<role> --serviceaccount=<ns>:<sa>. Run kubectl -n <ns> create token <sa> --duration=24h (choose the lifetime), or create a kubernetes.io/service-account-token Secret annotated kubernetes.io/service-account.name: <sa> for a long-lived token. Enter the API server address, port (usually 6443), namespace and token. Trust the cluster CA under the appliance's TLS trust.
- Actions
- Discovery, Installation, Verification, Rollback
- Integrations
-
kubernetes-api2.0.0 - Note
-
- Secrets that cannot be changed and cert-manager-annotated Secrets are refused. Rollback uses previous_state and the previous pair in the Secret or deletes a newly created Secret with version checks. Later certificates are preserved. v4 uses native TLS Secrets rather than JKS/PKCS#12 stores.