Sign inSign up

redmart/mongo-pod-labeler

By redmart

•Updated about 7 years ago

Finding and labelling the mongo pods in kubernetes cluster according to the role

Image
4

10K+

redmart/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

25.3 MB

Last updated

about 7 years ago

docker pull redmart/mongo-pod-labeler