Changelog
0.6.0
One server certificate per cluster
Clusters with api.tls or grpcTunnel.tls and useCSIDriver: false now get one server certificate for the whole cluster, instead of one certificate per pod.
| Before 0.6.0 | 0.6.0 | |
|---|---|---|
| API certificate | gnmic-<cluster>-<ordinal>-tls | gnmic-<cluster>-api-tls |
| Tunnel certificate | gnmic-<cluster>-<ordinal>-tunnel-tls | gnmic-<cluster>-tunnel-tls |
| Common name | pod name | StatefulSet name |
| Pod DNS names | one SAN per pod | *.gnmic-<cluster>.<namespace>.svc.<domain> |
The Cluster spec is unchanged. useCSIDriver: true still issues a certificate per pod through the cert-manager CSI driver. Client certificates stay one per cluster, named gnmic-<cluster>-client-tls.
On upgrade the operator issues the new certificate, waits until it is Ready, and then rolls the collector pods onto the template that mounts it. After every pod is on that template, the operator deletes the old per-pod Certificate objects. Their Secrets stay behind; the operator does not delete Secrets. Remove them once the rollout is finished:
kubectl delete secrets -l operator.gnmic.dev/cluster=<cluster>,operator.gnmic.dev/pod-name
Clients that dial gnmic-<cluster>-<N>.gnmic-<cluster>.<namespace>.svc.<domain>, or the headless Service name, keep verifying. A client that requires the certificate’s common name to be the bare pod name, gnmic-<cluster>-<N>, needs to use one of those DNS names instead.
Details are in TLS Configuration.