Finding and labelling the mongo pods in kubernetes cluster according to the role
10K+
https://github.com/Redmart/mongo-pod-labeler
Docker image for find and label the mongo pods in the kubernetes cluster according to the role ( primary, secondary)
A simple python script to find the mongo pods in Kubernetes for the given labels and label them according to the rule.
mongo command isMaster() used to identify the role of the mongo server and apply the labels primary, secondary accordingly.
An example of a deployment can be found in the file sample-mongo-pod-labeler-deployment.yaml
Content type
Image
Digest
Size
25.3 MB
Last updated
about 7 years ago
docker pull redmart/mongo-pod-labeler