From 3037529ee52a5b346a24494017fcdb2283f6ce1b Mon Sep 17 00:00:00 2001 From: okozachenko Date: Wed, 17 Jun 2020 18:27:33 +0300 Subject: [PATCH] Set replica number as 1 while hpa min as either Change-Id: I4f7fb109a2ebc2975f76f43855117ed4feddfc53 --- openstack_operator/templates/heat/deployment.yml.j2 | 2 +- .../templates/heat/horizontalpodautoscaler.yml.j2 | 2 +- openstack_operator/templates/horizon/deployment.yml.j2 | 2 +- .../templates/horizon/horizontalpodautoscaler.yml.j2 | 2 +- openstack_operator/templates/keystone/deployment.yml.j2 | 2 +- .../templates/keystone/horizontalpodautoscaler.yml.j2 | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/openstack_operator/templates/heat/deployment.yml.j2 b/openstack_operator/templates/heat/deployment.yml.j2 index bc84d07b..8b7b5d56 100644 --- a/openstack_operator/templates/heat/deployment.yml.j2 +++ b/openstack_operator/templates/heat/deployment.yml.j2 @@ -27,7 +27,7 @@ metadata: labels: {{ labels("heat", name, component) | indent(4) }} spec: - replicas: 3 + replicas: 1 strategy: type: RollingUpdate rollingUpdate: diff --git a/openstack_operator/templates/heat/horizontalpodautoscaler.yml.j2 b/openstack_operator/templates/heat/horizontalpodautoscaler.yml.j2 index cab4cdfe..62f89e4d 100644 --- a/openstack_operator/templates/heat/horizontalpodautoscaler.yml.j2 +++ b/openstack_operator/templates/heat/horizontalpodautoscaler.yml.j2 @@ -25,6 +25,6 @@ spec: apiVersion: apps/v1 kind: Deployment name: heat-{{ component }} - minReplicas: 2 + minReplicas: 1 maxReplicas: 10 targetCPUUtilizationPercentage: 90 diff --git a/openstack_operator/templates/horizon/deployment.yml.j2 b/openstack_operator/templates/horizon/deployment.yml.j2 index 2af2fade..f0d9b74a 100644 --- a/openstack_operator/templates/horizon/deployment.yml.j2 +++ b/openstack_operator/templates/horizon/deployment.yml.j2 @@ -21,7 +21,7 @@ metadata: labels: {{ labels("horizon", name) | indent(4) }} spec: - replicas: 3 + replicas: 1 selector: matchLabels: {{ labels("horizon", name) | indent(6) }} diff --git a/openstack_operator/templates/horizon/horizontalpodautoscaler.yml.j2 b/openstack_operator/templates/horizon/horizontalpodautoscaler.yml.j2 index d155a61e..d3416719 100644 --- a/openstack_operator/templates/horizon/horizontalpodautoscaler.yml.j2 +++ b/openstack_operator/templates/horizon/horizontalpodautoscaler.yml.j2 @@ -25,6 +25,6 @@ spec: apiVersion: apps/v1 kind: Deployment name: horizon - minReplicas: 2 + minReplicas: 1 maxReplicas: 10 targetCPUUtilizationPercentage: 90 diff --git a/openstack_operator/templates/keystone/deployment.yml.j2 b/openstack_operator/templates/keystone/deployment.yml.j2 index 3057027c..5525e2fe 100644 --- a/openstack_operator/templates/keystone/deployment.yml.j2 +++ b/openstack_operator/templates/keystone/deployment.yml.j2 @@ -21,7 +21,7 @@ metadata: labels: {{ labels("keystone", name) | indent(4) }} spec: - replicas: 3 + replicas: 1 strategy: type: RollingUpdate rollingUpdate: diff --git a/openstack_operator/templates/keystone/horizontalpodautoscaler.yml.j2 b/openstack_operator/templates/keystone/horizontalpodautoscaler.yml.j2 index ce62aeb4..b8458cfe 100644 --- a/openstack_operator/templates/keystone/horizontalpodautoscaler.yml.j2 +++ b/openstack_operator/templates/keystone/horizontalpodautoscaler.yml.j2 @@ -25,6 +25,6 @@ spec: apiVersion: apps/v1 kind: Deployment name: keystone - minReplicas: 2 + minReplicas: 1 maxReplicas: 10 targetCPUUtilizationPercentage: 90