Skip to content

Wave 8 — Metrics and CNPG

metrics-server

metrics-server. --kubelet-insecure-tls is enabled. Talos and kubeadm labs commonly need this for kubectl top.

Validation

kubectl top nodes prints CPU/memory for every node. Empty output: the Deployment is not Ready or --kubelet-insecure-tls was removed. Do not debug HPA until this works.

cloudnative-pg

CloudNativePG operator only. No database Clusters. Add those in day-2 apps (including Barman ObjectStore after wave 9).

ServerSideApply=true for large CRDs.

Skip: delete applications/cloudnative-pg.yaml until you need Postgres.

Validation

Before you add a Cluster in an app namespace:

kubectl -n cnpg-system get deploy
kubectl get crd clusters.postgresql.cnpg.io
kubectl get sc longhorn   # default class must be Longhorn, not nfs

Barman (ObjectStore) also needs wave 9 and a MinIO bucket. Do not create the database until Longhorn validation passed.