diff --git a/nova/templates/daemonset-compute.yaml b/nova/templates/daemonset-compute.yaml index 2c9547cb92..0108053cd5 100644 --- a/nova/templates/daemonset-compute.yaml +++ b/nova/templates/daemonset-compute.yaml @@ -31,7 +31,7 @@ spec: ]' spec: nodeSelector: - {{ .Values.labels.compute_node_selector_key }}: {{ .Values.labels.compute_node_selector_value }} + {{ .Values.labels.agent.compute.node_selector_key }}: {{ .Values.labels.agent.compute.node_selector_value }} securityContext: runAsUser: 0 hostNetwork: true diff --git a/nova/templates/daemonset-libvirt.yaml b/nova/templates/daemonset-libvirt.yaml index b8f8072728..56f81db8f5 100644 --- a/nova/templates/daemonset-libvirt.yaml +++ b/nova/templates/daemonset-libvirt.yaml @@ -31,7 +31,7 @@ spec: ]' spec: nodeSelector: - {{ .Values.labels.compute_node_selector_key }}: {{ .Values.labels.compute_node_selector_value }} + {{ .Values.labels.agent.libvirt.node_selector_key }}: {{ .Values.labels.agent.libvirt.node_selector_value }} securityContext: runAsUser: 0 hostNetwork: true diff --git a/nova/templates/deployment-api-metadata.yaml b/nova/templates/deployment-api-metadata.yaml index c836b1a3aa..353351c0cd 100644 --- a/nova/templates/deployment-api-metadata.yaml +++ b/nova/templates/deployment-api-metadata.yaml @@ -19,7 +19,7 @@ kind: Deployment metadata: name: nova-api-metadata spec: - replicas: {{ .Values.control_replicas }} + replicas: {{ .Values.replicas.api_metadata }} revisionHistoryLimit: {{ .Values.upgrades.revision_history }} strategy: type: {{ .Values.upgrades.pod_replacement_strategy }} @@ -40,7 +40,7 @@ spec: ]' spec: nodeSelector: - {{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }} + {{ .Values.labels.api_metadata.node_selector_key }}: {{ .Values.labels.api_metadata.node_selector_value }} containers: - name: nova-api image: {{ .Values.images.api }} diff --git a/nova/templates/deployment-api-osapi.yaml b/nova/templates/deployment-api-osapi.yaml index 79f1df0fa8..226a1027de 100644 --- a/nova/templates/deployment-api-osapi.yaml +++ b/nova/templates/deployment-api-osapi.yaml @@ -19,7 +19,7 @@ kind: Deployment metadata: name: nova-api-osapi spec: - replicas: {{ .Values.control_replicas }} + replicas: {{ .Values.replicas.osapi }} revisionHistoryLimit: {{ .Values.upgrades.revision_history }} strategy: type: {{ .Values.upgrades.pod_replacement_strategy }} @@ -40,7 +40,7 @@ spec: ]' spec: nodeSelector: - {{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }} + {{ .Values.labels.osapi.node_selector_key }}: {{ .Values.labels.osapi.node_selector_value }} containers: - name: nova-osapi image: {{ .Values.images.api }} diff --git a/nova/templates/deployment-conductor.yaml b/nova/templates/deployment-conductor.yaml index e66ec15954..b66760d0eb 100644 --- a/nova/templates/deployment-conductor.yaml +++ b/nova/templates/deployment-conductor.yaml @@ -19,7 +19,7 @@ kind: Deployment metadata: name: nova-conductor spec: - replicas: {{ .Values.control_replicas }} + replicas: {{ .Values.replicas.conductor }} revisionHistoryLimit: {{ .Values.upgrades.revision_history }} strategy: type: {{ .Values.upgrades.pod_replacement_strategy }} @@ -40,7 +40,7 @@ spec: ]' spec: nodeSelector: - {{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }} + {{ .Values.labels.conductor.node_selector_key }}: {{ .Values.labels.conductor.node_selector_value }} containers: - name: nova-conductor image: {{ .Values.images.conductor }} diff --git a/nova/templates/deployment-consoleauth.yaml b/nova/templates/deployment-consoleauth.yaml index 76710ac7b4..611fd307a8 100644 --- a/nova/templates/deployment-consoleauth.yaml +++ b/nova/templates/deployment-consoleauth.yaml @@ -19,7 +19,7 @@ kind: Deployment metadata: name: nova-consoleauth spec: - replicas: {{ .Values.control_replicas }} + replicas: {{ .Values.replicas.consoleauth }} revisionHistoryLimit: {{ .Values.upgrades.revision_history }} strategy: type: {{ .Values.upgrades.pod_replacement_strategy }} @@ -40,7 +40,7 @@ spec: ]' spec: nodeSelector: - {{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }} + {{ .Values.labels.consoleauth.node_selector_key }}: {{ .Values.labels.consoleauth.node_selector_value }} containers: - name: nova-consoleauth image: {{ .Values.images.consoleauth }} diff --git a/nova/templates/deployment-scheduler.yaml b/nova/templates/deployment-scheduler.yaml index 78ad858999..6a87a828f2 100644 --- a/nova/templates/deployment-scheduler.yaml +++ b/nova/templates/deployment-scheduler.yaml @@ -19,7 +19,7 @@ kind: Deployment metadata: name: nova-scheduler spec: - replicas: {{ .Values.control_replicas }} + replicas: {{ .Values.replicas.scheduler }} revisionHistoryLimit: {{ .Values.upgrades.revision_history }} strategy: type: {{ .Values.upgrades.pod_replacement_strategy }} @@ -40,7 +40,7 @@ spec: ]' spec: nodeSelector: - {{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }} + {{ .Values.labels.scheduler.node_selector_key }}: {{ .Values.labels.scheduler.node_selector_value }} containers: - name: nova-scheduler image: {{ .Values.images.scheduler }} diff --git a/nova/templates/job-db-init.yaml b/nova/templates/job-db-init.yaml index fa431db275..5a3a58d216 100644 --- a/nova/templates/job-db-init.yaml +++ b/nova/templates/job-db-init.yaml @@ -28,7 +28,7 @@ spec: spec: restartPolicy: OnFailure nodeSelector: - {{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }} + {{ .Values.labels.job.node_selector_key }}: {{ .Values.labels.job.node_selector_value }} containers: - name: nova-db-init image: {{ .Values.images.db_init }} diff --git a/nova/templates/job-db-sync.yaml b/nova/templates/job-db-sync.yaml index 4fb0103719..88bd42f8f9 100644 --- a/nova/templates/job-db-sync.yaml +++ b/nova/templates/job-db-sync.yaml @@ -28,7 +28,7 @@ spec: spec: restartPolicy: OnFailure nodeSelector: - {{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }} + {{ .Values.labels.job.node_selector_key }}: {{ .Values.labels.job.node_selector_value }} containers: - name: nova-db-sync image: {{ .Values.images.db_sync }} diff --git a/nova/templates/job-ks-endpoints.yaml b/nova/templates/job-ks-endpoints.yaml index 02b28b2650..fc91f13ee8 100644 --- a/nova/templates/job-ks-endpoints.yaml +++ b/nova/templates/job-ks-endpoints.yaml @@ -29,7 +29,7 @@ spec: spec: restartPolicy: OnFailure nodeSelector: - {{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }} + {{ .Values.labels.job.node_selector_key }}: {{ .Values.labels.job.node_selector_value }} containers: {{- range $key1, $osServiceType := tuple "compute" }} {{- range $key2, $osServiceEndPoint := tuple "admin" "internal" "public" }} diff --git a/nova/templates/job-ks-service.yaml b/nova/templates/job-ks-service.yaml index bf735a5291..cf40ce37e2 100644 --- a/nova/templates/job-ks-service.yaml +++ b/nova/templates/job-ks-service.yaml @@ -29,7 +29,7 @@ spec: spec: restartPolicy: OnFailure nodeSelector: - {{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }} + {{ .Values.labels.job.node_selector_key }}: {{ .Values.labels.job.node_selector_value }} containers: {{- range $key1, $osServiceType := tuple "compute" }} - name: {{ $osServiceType }}-ks-service-registration diff --git a/nova/templates/job-ks-user.yaml b/nova/templates/job-ks-user.yaml index 5a2f80ae2a..efea99fa5c 100644 --- a/nova/templates/job-ks-user.yaml +++ b/nova/templates/job-ks-user.yaml @@ -30,7 +30,7 @@ spec: spec: restartPolicy: OnFailure nodeSelector: - {{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }} + {{ .Values.labels.job.node_selector_key }}: {{ .Values.labels.job.node_selector_value }} containers: - name: nova-ks-user image: {{ .Values.images.ks_user }} diff --git a/nova/values.yaml b/nova/values.yaml index 102f62240e..87d819d606 100644 --- a/nova/values.yaml +++ b/nova/values.yaml @@ -18,13 +18,38 @@ # name: value labels: - control_node_selector_key: openstack-control-plane - control_node_selector_value: enabled - compute_node_selector_key: openstack-compute-node - compute_node_selector_value: enabled - -control_replicas: 1 -compute_replicas: 1 + agent: + compute: + node_selector_key: openstack-compute-node + node_selector_value: enabled + libvirt: + node_selector_key: openstack-compute-node + node_selector_value: enabled + conductor: + node_selector_key: openstack-control-plane + node_selector_value: enabled + consoleauth: + node_selector_key: openstack-control-plane + node_selector_value: enabled + scheduler: + node_selector_key: openstack-control-plane + node_selector_value: enabled + osapi: + node_selector_key: openstack-control-plane + node_selector_value: enabled + api_metadata: + node_selector_key: openstack-control-plane + node_selector_value: enabled + job: + node_selector_key: openstack-control-plane + node_selector_value: enabled + +replicas: + api_metadata: 1 + osapi: 1 + conductor: 1 + consoleauth: 1 + scheduler: 1 images: db_init: quay.io/stackanetes/stackanetes-kolla-toolbox:newton