Values: Move replicas to pod key

This PS move s the replicas key to be under the pod key in the values.
It brings further consolation of related configuration params to be
nested under common keys across all charts.

Change-Id: I420b06debd0a62ba5d83497be43ff6c49c49d339
This commit is contained in:
Pete Birley 2017-07-13 22:44:26 -05:00
parent 956cf735d1
commit 4d066332a7
52 changed files with 108 additions and 127 deletions

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: barbican-api name: barbican-api
spec: spec:
replicas: {{ .Values.replicas.api }} replicas: {{ .Values.pod.replicas.api }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -9,8 +9,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
replicas:
api: 1
labels: labels:
node_selector_key: openstack-control-plane node_selector_key: openstack-control-plane
@ -28,6 +26,8 @@ images:
pull_policy: "IfNotPresent" pull_policy: "IfNotPresent"
pod: pod:
replicas:
api: 1
lifecycle: lifecycle:
upgrades: upgrades:
deployments: deployments:
@ -42,12 +42,12 @@ pod:
resources: resources:
enabled: false enabled: false
api: api:
requests: requests:
memory: "128Mi" memory: "128Mi"
cpu: "100m" cpu: "100m"
limits: limits:
memory: "1024Mi" memory: "1024Mi"
cpu: "2000m" cpu: "2000m"
jobs: jobs:
bootstrap: bootstrap:
requests: requests:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: cinder-api name: cinder-api
spec: spec:
replicas: {{ .Values.replicas.api }} replicas: {{ .Values.pod.replicas.api }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: cinder-backup name: cinder-backup
spec: spec:
replicas: {{ .Values.replicas.backup }} replicas: {{ .Values.pod.replicas.backup }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: cinder-scheduler name: cinder-scheduler
spec: spec:
replicas: {{ .Values.replicas.scheduler }} replicas: {{ .Values.pod.replicas.scheduler }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: cinder-volume name: cinder-volume
spec: spec:
replicas: {{ .Values.replicas.volume }} replicas: {{ .Values.pod.replicas.volume }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -17,12 +17,6 @@
# Declare name/value pairs to be passed into your templates. # Declare name/value pairs to be passed into your templates.
# name: value # name: value
replicas:
api: 1
volume: 1
scheduler: 1
backup: 1
storage: ceph storage: ceph
labels: labels:
@ -45,6 +39,11 @@ images:
pull_policy: "IfNotPresent" pull_policy: "IfNotPresent"
pod: pod:
replicas:
api: 1
volume: 1
scheduler: 1
backup: 1
lifecycle: lifecycle:
upgrades: upgrades:
deployments: deployments:

View File

@ -407,7 +407,7 @@ Now you can easily install the other services simply by going in order:
:: ::
helm install --namespace=openstack --name=keystone local/keystone \ helm install --namespace=openstack --name=keystone local/keystone \
--set replicas=2 --set pod.replicas.api=2
**Install Horizon:** **Install Horizon:**
@ -421,7 +421,8 @@ Now you can easily install the other services simply by going in order:
:: ::
helm install --namespace=openstack --name=glance local/glance \ helm install --namespace=openstack --name=glance local/glance \
--set replicas.api=2,replicas.registry=2 --set pod.replicas.api=2 \
--set pod.replicas.registry=2
**Install Heat:** **Install Heat:**
@ -434,21 +435,26 @@ Now you can easily install the other services simply by going in order:
:: ::
helm install --namespace=openstack --name=neutron local/neutron \ helm install --namespace=openstack --name=neutron local/neutron \
--set replicas.server=2 --set pod.replicas.server=2
**Install Nova:** **Install Nova:**
:: ::
helm install --namespace=openstack --name=nova local/nova \ helm install --namespace=openstack --name=nova local/nova \
--set control_replicas=2 --set pod.replicas.api_metadata=2 \
--set pod.replicas.osapi=2 \
--set pod.replicas.conductor=2 \
--set pod.replicas.consoleauth=2 \
--set pod.replicas.scheduler=2 \
--set pod.replicas.novncproxy=2
**Install Cinder:** **Install Cinder:**
:: ::
helm install --namespace=openstack --name=cinder local/cinder \ helm install --namespace=openstack --name=cinder local/cinder \
--set replicas.api=2 --set pod.replicas.api=2
Final Checks Final Checks
------------ ------------

View File

@ -19,7 +19,7 @@ kind: Deployment
metadata: metadata:
name: etcd name: etcd
spec: spec:
replicas: {{ .Values.replicas.etcd }} replicas: {{ .Values.pod.replicas.etcd }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -30,6 +30,8 @@ network:
port: 2379 port: 2379
pod: pod:
replicas:
etcd: 1
lifecycle: lifecycle:
upgrades: upgrades:
deployments: deployments:
@ -38,6 +40,3 @@ pod:
rolling_update: rolling_update:
max_surge: 3 max_surge: 3
max_unavailable: 1 max_unavailable: 1
replicas:
etcd: 1

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: glance-api name: glance-api
spec: spec:
replicas: {{ .Values.replicas.api }} replicas: {{ .Values.pod.replicas.api }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: glance-registry name: glance-registry
spec: spec:
replicas: {{ .Values.replicas.registry }} replicas: {{ .Values.pod.replicas.registry }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -17,10 +17,6 @@
# Declare name/value pairs to be passed into your templates. # Declare name/value pairs to be passed into your templates.
# name: value # name: value
replicas:
api: 1
registry: 1
# ceph or pvc # ceph or pvc
storage: ceph storage: ceph
@ -320,6 +316,9 @@ mounts:
glance_tests: glance_tests:
pod: pod:
replicas:
api: 1
registry: 1
lifecycle: lifecycle:
upgrades: upgrades:
deployments: deployments:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: heat-api name: heat-api
spec: spec:
replicas: {{ .Values.replicas.api }} replicas: {{ .Values.pod.replicas.api }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: heat-cfn name: heat-cfn
spec: spec:
replicas: {{ .Values.replicas.cfn }} replicas: {{ .Values.pod.replicas.cfn }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: heat-cloudwatch name: heat-cloudwatch
spec: spec:
replicas: {{ .Values.replicas.cloudwatch }} replicas: {{ .Values.pod.replicas.cloudwatch }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -23,7 +23,7 @@ metadata:
name: heat-engine name: heat-engine
spec: spec:
serviceName: heat-engine serviceName: heat-engine
replicas: {{ .Values.replicas.engine }} replicas: {{ .Values.pod.replicas.engine }}
template: template:
metadata: metadata:
labels: labels:

View File

@ -17,13 +17,6 @@
# Declare name/value pairs to be passed into your templates. # Declare name/value pairs to be passed into your templates.
# name: value # name: value
replicas:
api: 1
cfn: 1
cloudwatch: 1
engine: 1
labels: labels:
node_selector_key: openstack-control-plane node_selector_key: openstack-control-plane
node_selector_value: enabled node_selector_value: enabled
@ -332,6 +325,11 @@ endpoints:
default: 5672 default: 5672
pod: pod:
replicas:
api: 1
cfn: 1
cloudwatch: 1
engine: 1
lifecycle: lifecycle:
upgrades: upgrades:
deployments: deployments:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: horizon name: horizon
spec: spec:
replicas: {{ .Values.replicas }} replicas: {{ .Values.pod.replicas.server }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -17,7 +17,7 @@
# Declare name/value pairs to be passed into your templates. # Declare name/value pairs to be passed into your templates.
# name: value # name: value
replicas: 1
images: images:
db_init: docker.io/kolla/ubuntu-source-horizon:4.0.0 db_init: docker.io/kolla/ubuntu-source-horizon:4.0.0
@ -62,6 +62,8 @@ dependencies:
endpoint: internal endpoint: internal
pod: pod:
replicas:
server: 1
lifecycle: lifecycle:
upgrades: upgrades:
deployments: deployments:

View File

@ -19,7 +19,7 @@ kind: Deployment
metadata: metadata:
name: ingress-error-pages name: ingress-error-pages
spec: spec:
replicas: {{ .Values.replicas.error_page }} replicas: {{ .Values.pod.replicas.error_page }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -20,6 +20,7 @@ metadata:
name: ingress-api name: ingress-api
spec: spec:
{{- if eq .Values.deployment_type "Deployment" }} {{- if eq .Values.deployment_type "Deployment" }}
replicas: {{ .Values.pod.replicas.ingress }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
{{- end }} {{- end }}
template: template:

View File

@ -17,10 +17,6 @@
# Declare name/value pairs to be passed into your templates. # Declare name/value pairs to be passed into your templates.
# name: value # name: value
replicas:
ingress: 1
error_page: 1
images: images:
entrypoint: docker.io/kolla/ubuntu-source-kubernetes-entrypoint:4.0.0 entrypoint: docker.io/kolla/ubuntu-source-kubernetes-entrypoint:4.0.0
# https://github.com/kubernetes/ingress/blob/master/controllers/nginx/Changelog.md # https://github.com/kubernetes/ingress/blob/master/controllers/nginx/Changelog.md
@ -29,6 +25,9 @@ images:
pull_policy: "IfNotPresent" pull_policy: "IfNotPresent"
pod: pod:
replicas:
ingress: 1
error_page: 1
lifecycle: lifecycle:
upgrades: upgrades:
deployments: deployments:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: keystone-api name: keystone-api
spec: spec:
replicas: {{ .Values.replicas.api }} replicas: {{ .Values.pod.replicas.api }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -17,9 +17,6 @@
# Declare name/value pairs to be passed into your templates. # Declare name/value pairs to be passed into your templates.
# name: value # name: value
replicas:
api: 1
labels: labels:
node_selector_key: openstack-control-plane node_selector_key: openstack-control-plane
node_selector_value: enabled node_selector_value: enabled
@ -86,6 +83,8 @@ dependencies:
endpoint: internal endpoint: internal
pod: pod:
replicas:
api: 1
lifecycle: lifecycle:
upgrades: upgrades:
deployments: deployments:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: magnum-api name: magnum-api
spec: spec:
replicas: {{ .Values.replicas.api }} replicas: {{ .Values.pod.replicas.api }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -23,7 +23,7 @@ metadata:
name: magnum-conductor name: magnum-conductor
spec: spec:
serviceName: magnum-conductor serviceName: magnum-conductor
replicas: {{ .Values.replicas.conductor }} replicas: {{ .Values.pod.replicas.conductor }}
template: template:
metadata: metadata:
labels: labels:

View File

@ -17,10 +17,6 @@
# Declare name/value pairs to be passed into your templates. # Declare name/value pairs to be passed into your templates.
# name: value # name: value
replicas:
api: 1
conductor: 1
labels: labels:
node_selector_key: openstack-control-plane node_selector_key: openstack-control-plane
node_selector_value: enabled node_selector_value: enabled
@ -210,6 +206,9 @@ endpoints:
default: 5672 default: 5672
pod: pod:
replicas:
api: 1
conductor: 1
lifecycle: lifecycle:
upgrades: upgrades:
deployments: deployments:

View File

@ -20,7 +20,7 @@ metadata:
name: mariadb name: mariadb
spec: spec:
serviceName: "{{ tuple "oslo_db" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}-discovery" serviceName: "{{ tuple "oslo_db" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}-discovery"
replicas: {{ .Values.replicas }} replicas: {{ .Values.pod.replicas.server }}
template: template:
metadata: metadata:
labels: labels:

View File

@ -12,18 +12,18 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
replicas: 3
force_bootstrap: false force_bootstrap: false
pod: pod:
replicas:
server: 3
lifecycle: lifecycle:
disruption_budget: disruption_budget:
mariadb: mariadb:
min_available: 0 min_available: 0
resources: resources:
enabled: false enabled: false
api: server:
limits: limits:
memory: "128Mi" memory: "128Mi"
cpu: "500m" cpu: "500m"

View File

@ -19,7 +19,7 @@ kind: Deployment
metadata: metadata:
name: memcached name: memcached
spec: spec:
replicas: {{ .Values.pod.resources.memcached.replicas }} replicas: {{ .Values.pod.replicas.server }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:
@ -34,7 +34,7 @@ spec:
- name: memcached - name: memcached
image: {{ .Values.images.memcached }} image: {{ .Values.images.memcached }}
imagePullPolicy: {{ .Values.images.pull_policy }} imagePullPolicy: {{ .Values.images.pull_policy }}
{{ tuple $envAll $envAll.Values.pod.resources.api | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} {{ tuple $envAll $envAll.Values.pod.resources.server | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
command: ["sh", "-xec"] command: ["sh", "-xec"]
args: args:
- | - |

View File

@ -22,6 +22,8 @@ images:
pull_policy: "IfNotPresent" pull_policy: "IfNotPresent"
pod: pod:
replicas:
server: 1
lifecycle: lifecycle:
upgrades: upgrades:
deployments: deployments:
@ -32,9 +34,7 @@ pod:
max_surge: 3 max_surge: 3
resources: resources:
enabled: false enabled: false
memcached: server:
replicas: 1
api:
limits: limits:
memory: "128Mi" memory: "128Mi"
cpu: "500m" cpu: "500m"

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: mistral-api name: mistral-api
spec: spec:
replicas: {{ .Values.replicas.api }} replicas: {{ .Values.pod.replicas.api }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: mistral-executor name: mistral-executor
spec: spec:
replicas: {{ .Values.replicas.executor }} replicas: {{ .Values.pod.replicas.executor }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -23,7 +23,7 @@ metadata:
name: mistral-engine name: mistral-engine
spec: spec:
serviceName: mistral-engine serviceName: mistral-engine
replicas: {{ .Values.replicas.engine }} replicas: {{ .Values.pod.replicas.engine }}
template: template:
metadata: metadata:
labels: labels:

View File

@ -23,7 +23,7 @@ metadata:
name: mistral-event-engine name: mistral-event-engine
spec: spec:
serviceName: mistral-event-engine serviceName: mistral-event-engine
replicas: {{ .Values.replicas.event_engine }} replicas: {{ .Values.pod.replicas.event_engine }}
template: template:
metadata: metadata:
labels: labels:

View File

@ -17,12 +17,6 @@
# Declare name/value pairs to be passed into your templates. # Declare name/value pairs to be passed into your templates.
# name: value # name: value
replicas:
api: 1
engine: 1
event_engine: 1
executor: 1
labels: labels:
node_selector_key: openstack-control-plane node_selector_key: openstack-control-plane
node_selector_value: enabled node_selector_value: enabled
@ -260,6 +254,11 @@ conf:
auth_version: v3 auth_version: v3
pod: pod:
replicas:
api: 1
engine: 1
event_engine: 1
executor: 1
lifecycle: lifecycle:
upgrades: upgrades:
deployments: deployments:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: neutron-server name: neutron-server
spec: spec:
replicas: {{ .Values.replicas.server }} replicas: {{ .Values.pod.replicas.server }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -17,9 +17,6 @@
# Declare name/value pairs to be passed into your templates. # Declare name/value pairs to be passed into your templates.
# name: value # name: value
replicas:
server: 1
images: images:
bootstrap: docker.io/kolla/ubuntu-source-neutron-server:3.0.3 bootstrap: docker.io/kolla/ubuntu-source-neutron-server:3.0.3
test: docker.io/kolla/ubuntu-binary-rally:4.0.0 test: docker.io/kolla/ubuntu-binary-rally:4.0.0
@ -93,9 +90,6 @@ network:
metadata: metadata:
port: 8775 port: 8775
metadata:
workers: 4
bootstrap: bootstrap:
enabled: false enabled: false
script: | script: |
@ -190,6 +184,8 @@ dependencies:
endpoint: internal endpoint: internal
pod: pod:
replicas:
server: 1
lifecycle: lifecycle:
upgrades: upgrades:
deployments: deployments:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: nova-api-metadata name: nova-api-metadata
spec: spec:
replicas: {{ .Values.replicas.api_metadata }} replicas: {{ .Values.pod.replicas.api_metadata }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: nova-api-osapi name: nova-api-osapi
spec: spec:
replicas: {{ .Values.replicas.osapi }} replicas: {{ .Values.pod.replicas.osapi }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: nova-conductor name: nova-conductor
spec: spec:
replicas: {{ .Values.replicas.conductor }} replicas: {{ .Values.pod.replicas.conductor }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: nova-consoleauth name: nova-consoleauth
spec: spec:
replicas: {{ .Values.replicas.consoleauth }} replicas: {{ .Values.pod.replicas.consoleauth }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -23,7 +23,7 @@ kind: Deployment
metadata: metadata:
name: nova-novncproxy name: nova-novncproxy
spec: spec:
replicas: {{ .Values.replicas.novncproxy }} replicas: {{ .Values.pod.replicas.novncproxy }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: nova-scheduler name: nova-scheduler
spec: spec:
replicas: {{ .Values.replicas.scheduler }} replicas: {{ .Values.pod.replicas.scheduler }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -17,14 +17,6 @@
# Declare name/value pairs to be passed into your templates. # Declare name/value pairs to be passed into your templates.
# name: value # name: value
replicas:
api_metadata: 1
osapi: 1
conductor: 1
consoleauth: 1
scheduler: 1
novncproxy: 1
labels: labels:
agent: agent:
compute: compute:
@ -556,6 +548,13 @@ endpoints:
public: 80 public: 80
pod: pod:
replicas:
api_metadata: 1
osapi: 1
conductor: 1
consoleauth: 1
scheduler: 1
novncproxy: 1
lifecycle: lifecycle:
upgrades: upgrades:
deployments: deployments:

View File

@ -33,7 +33,7 @@ main() {
return 1 return 1
fi fi
{{ if gt (.Values.replicas | int) 1 -}} {{ if gt (.Values.pod.replicas.server | int) 1 -}}
if ! is-node-properly-clustered; then if ! is-node-properly-clustered; then
log-it "Node is inconsistent with the rest of the cluster" log-it "Node is inconsistent with the rest of the cluster"
return 1 return 1

View File

@ -19,7 +19,7 @@ apiVersion: apps/v1beta1
metadata: metadata:
name: rabbitmq name: rabbitmq
spec: spec:
replicas: {{ .Values.replicas }} replicas: {{ .Values.pod.replicas.server }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:
@ -38,17 +38,8 @@ spec:
containers: containers:
- name: rabbitmq - name: rabbitmq
image: {{ .Values.images.rabbitmq }} image: {{ .Values.images.rabbitmq }}
{{- if .Values.pod.resources.enabled }} {{ tuple $envAll $envAll.Values.pod.resources.server | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
resources:
limits:
cpu: {{ .Values.pod.resources.api.limits.cpu | quote }}
memory: {{ .Values.pod.resources.api.limits.memory | quote }}
requests:
cpu: {{ .Values.pod.resources.api.requests.cpu | quote }}
memory: {{ .Values.pod.resources.api.requests.memory | quote }}
{{- end }}
command: command:
- bash
- /scripts/start.sh - /scripts/start.sh
env: env:
- name: RABBITMQ_POD_IP - name: RABBITMQ_POD_IP
@ -59,14 +50,12 @@ spec:
timeoutSeconds: {{ .Values.probes_timeout }} timeoutSeconds: {{ .Values.probes_timeout }}
exec: exec:
command: command:
- bash
- /scripts/rabbitmq-readiness.sh - /scripts/rabbitmq-readiness.sh
livenessProbe: livenessProbe:
initialDelaySeconds: {{ .Values.probes_delay }} initialDelaySeconds: {{ .Values.probes_delay }}
timeoutSeconds: {{ .Values.probes_timeout }} timeoutSeconds: {{ .Values.probes_timeout }}
exec: exec:
command: command:
- bash
- /scripts/rabbitmq-liveness.sh - /scripts/rabbitmq-liveness.sh
volumeMounts: volumeMounts:
- name: rabbitmq-emptydir - name: rabbitmq-emptydir

View File

@ -17,15 +17,13 @@
# Declare name/value pairs to be passed into your templates. # Declare name/value pairs to be passed into your templates.
# name: value # name: value
replicas: 3
labels: labels:
node_selector_key: openstack-control-plane node_selector_key: openstack-control-plane
node_selector_value: enabled node_selector_value: enabled
pod: pod:
replicas:
server: 3
lifecycle: lifecycle:
upgrades: upgrades:
revision_history: 3 revision_history: 3
@ -35,7 +33,7 @@ pod:
max_surge: 3 max_surge: 3
resources: resources:
enabled: false enabled: false
api: server:
limits: limits:
memory: "128Mi" memory: "128Mi"
cpu: "500m" cpu: "500m"

View File

@ -22,7 +22,7 @@ kind: Deployment
metadata: metadata:
name: senlin-api name: senlin-api
spec: spec:
replicas: {{ .Values.replicas.api }} replicas: {{ .Values.pod.replicas.api }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
template: template:
metadata: metadata:

View File

@ -23,7 +23,7 @@ metadata:
name: senlin-engine name: senlin-engine
spec: spec:
serviceName: senlin-engine serviceName: senlin-engine
replicas: {{ .Values.replicas.engine }} replicas: {{ .Values.pod.replicas.engine }}
template: template:
metadata: metadata:
labels: labels:

View File

@ -17,10 +17,6 @@
# Declare name/value pairs to be passed into your templates. # Declare name/value pairs to be passed into your templates.
# name: value # name: value
replicas:
api: 1
engine: 1
labels: labels:
node_selector_key: openstack-control-plane node_selector_key: openstack-control-plane
node_selector_value: enabled node_selector_value: enabled
@ -210,6 +206,9 @@ endpoints:
default: 5672 default: 5672
pod: pod:
replicas:
api: 1
engine: 1
lifecycle: lifecycle:
upgrades: upgrades:
deployments: deployments: