Setting up multiple replicas in Kubernetes

Setting up multiple replicas in Kubernetes

Our Kibana application was running as a single instance (pod) and there was no redundancy. How did we address it easily?


In Kibana deployment yaml, changed replicas to 2, means 2 pods to be run. Apply the yaml for the change to take effect.?


We have node affinity / node selector configured, so the pods will come up only on the nodes that have the matching label (kibana=yes).


But in this case the pods can run on the same node too. What if the node goes down the service will be down completely? To avoid that situation, we added podAntiAffinity rule.


With these settings 2 replicas (Kibana pods) will always run, but never on the same node.


There are some prerequisites like reserved IP address, configuring haproxy, DNS registration, SSL certificate etc. Please ping me if you need more details about the prerequisites.


Kibana application is my example. You can do this for other applications too. Have done similar setup with Traefik load balancers too.


Team:? Rajesh Mehra ; Rajaraman Sathyamurthy

要查看或添加评论,请登录

Rajaraman Sathyamurthy的更多文章

社区洞察

其他会员也浏览了