Find and label the mongo pods in the kubernetes cluster according to the role ( primary, secondary)
2.7K
https://github.com/Redmart/mongo-pod-labeler
mongo-pod-labeler Docker image for find and label the mongo pods in the kubernetes cluster according to the role ( primary, secondary)
Description 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.
Example Deployment An example of a deployment can be found in the file sample-mongo-pod-labeler-deployment.yaml
Content type
Image
Digest
Size
40.8 MB
Last updated
over 6 years ago
docker pull hmdmph/mongo-pod-labeler