0

I have to deploy an application in Kubernetes in Active/Standby High availability configurations. How to do this using Kubernetes concepts?

Thanks

Chandu
  • 1,837
  • 7
  • 30
  • 51
  • It doesn't make any sense. If your cluster goes down, all your environments will go down, and if your cluster is up, your primary app (the active one) is going to work just fine. So, I would say you are just wasting resources. It is not a k8s approach. – suren Oct 14 '19 at 07:11

2 Answers2

1

There is no any native support for Active/Standby application deployment in Kubernetes.

Here is the feature request on Github.

https://github.com/kubernetes/kubernetes/issues/45300

halfer
  • 19,824
  • 17
  • 99
  • 186
mchawre
  • 10,744
  • 4
  • 35
  • 57
  • Is there any other way we can do it ourselves ? – Chandu Oct 14 '19 at 08:13
  • Can you check the second answer listed here https://stackoverflow.com/questions/47291581/kubernetes-service-with-clustered-pods-in-active-standby It suggest to make use of labels as an hack. – mchawre Oct 14 '19 at 09:24
0

front the two application instances using ha-proxy. ha-proxy supports active/standby mode

P Ekambaram
  • 15,499
  • 7
  • 34
  • 59