PS: The matchLabels part would be different but you get the gist.
The reason for that is because we've labeled our k8s nodes with topology.kubernetes.io/zone and kubernetes.io/hostname so that the pods can be created on different nodes and different zones, if possible.
In my StatefulSet I want to be able to add this block of code:
PS: The matchLabels part would be different but you get the gist.
The reason for that is because we've labeled our k8s nodes with
topology.kubernetes.io/zone
andkubernetes.io/hostname
so that the pods can be created on different nodes and different zones, if possible.