A kubernetes Operator that propagates topology data from node to PV
492
Kubernetes operator that automatically labels PersistentVolumes with zone information based on the node where the pod using the PV is running.
The PV Zone Operator watches for pods in the ready state that use PersistentVolumeClaims. When it finds such pods, it:
topology.kubernetes.io/zone) from the node where the pod is runningThis ensures that PersistentVolumes are correctly labeled with their topology information, which is important for pod scheduling and data locality.
kubectl apply -f manifests/pv-zone-operator.yaml
This will deploy the operator with the necessary RBAC permissions to watch pods, PVCs, PVs, and nodes, and to update PVs with zone labels.
The operator runs as a controller that:
The operator also watches for PVC events to handle cases where a PVC is bound to a PV after the pod is already running.
The operator requires the following permissions:
get, list, watch on podsget, list, watch on persistentvolumeclaimsget, list, watch on nodesget, list, watch, update, patch on persistentvolumesContent type
Image
Digest
sha256:d0a550956…
Size
26.2 MB
Last updated
about 1 year ago
docker pull cinaq/pv-zone-operator