From 6790b7e7c7b7742170554c5b219a02abbf6fcd16 Mon Sep 17 00:00:00 2001 From: Bart Wensley Date: Fri, 19 Jul 2019 14:14:28 -0500 Subject: [PATCH] Replicate nova-api-proxy pod The nova-api-proxy is currently running in a single pod on one of the controllers. To improve recovery time when a controller fails, the nova-api-proxy pod will now be run with replicas set to two and anti-affinity configured so there is a pod on each controller. Closes-bug: 1833730 Change-Id: Iacd17251b86050e337d9a0f832b9dfa6e9864fce Signed-off-by: Bart Wensley --- .../stx-openstack-helm/manifests/manifest.yaml | 5 +++++ sysinv/sysinv/sysinv/sysinv/helm/nova_api_proxy.py | 3 +++ 2 files changed, 8 insertions(+) diff --git a/kubernetes/applications/stx-openstack/stx-openstack-helm/stx-openstack-helm/manifests/manifest.yaml b/kubernetes/applications/stx-openstack/stx-openstack-helm/stx-openstack-helm/manifests/manifest.yaml index 1928989dd3..e3b3854efd 100644 --- a/kubernetes/applications/stx-openstack/stx-openstack-helm/stx-openstack-helm/manifests/manifest.yaml +++ b/kubernetes/applications/stx-openstack/stx-openstack-helm/stx-openstack-helm/manifests/manifest.yaml @@ -1127,6 +1127,11 @@ data: tags: nova_api_proxy: docker.io/starlingx/stx-nova-api-proxy:master-centos-stable-latest ks_endpoints: docker.io/starlingx/stx-heat:master-centos-stable-latest + pod: + affinity: + anti: + type: + default: requiredDuringSchedulingIgnoredDuringExecution source: type: tar location: http://172.17.0.1/helm_charts/starlingx/nova-api-proxy-0.1.0.tgz diff --git a/sysinv/sysinv/sysinv/sysinv/helm/nova_api_proxy.py b/sysinv/sysinv/sysinv/sysinv/helm/nova_api_proxy.py index 7f65294a6f..2852907f86 100644 --- a/sysinv/sysinv/sysinv/sysinv/helm/nova_api_proxy.py +++ b/sysinv/sysinv/sysinv/sysinv/helm/nova_api_proxy.py @@ -30,6 +30,9 @@ class NovaApiProxyHelm(openstack.OpenstackBaseHelm): 'nova_api_proxy': { 'uid': 0 } + }, + 'replicas': { + 'proxy': self._num_controllers() } }, 'conf': {