Changelog

Changes that matter when upgrading gNMIc Operator

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.00.6.0
API certificategnmic-<cluster>-<ordinal>-tlsgnmic-<cluster>-api-tls
Tunnel certificategnmic-<cluster>-<ordinal>-tunnel-tlsgnmic-<cluster>-tunnel-tls
Common namepod nameStatefulSet name
Pod DNS namesone 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.