Sign inSign up

hmdmph/mongo-pod-labeler

By hmdmph

•Updated over 6 years ago

Find and label the mongo pods in the kubernetes cluster according to the role ( primary, secondary)

Image
1

2.7K

hmdmph/mongo-pod-labeler repository overview

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⁠

Tag summary

Content type

Image

Digest

Size

40.8 MB

Last updated

over 6 years ago

docker pull hmdmph/mongo-pod-labeler