diff --git a/barbican/templates/service-api.yaml b/barbican/templates/service-api.yaml index 821d730bb9..766a2e52b3 100644 --- a/barbican/templates/service-api.yaml +++ b/barbican/templates/service-api.yaml @@ -26,7 +26,7 @@ spec: - name: b-api port: {{ .Values.conf.barbican.barbican_api.barbican.config.bind_port }} {{ if .Values.network.api.node_port.enabled }} - nodePort: .Values.network.api.node_port.port + nodePort: {{ .Values.network.api.node_port.port }} {{ end }} selector: {{ tuple $envAll "barbican" "api" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} diff --git a/glance/templates/service-api.yaml b/glance/templates/service-api.yaml index a1b471eb2d..3a2df505e8 100644 --- a/glance/templates/service-api.yaml +++ b/glance/templates/service-api.yaml @@ -26,7 +26,7 @@ spec: - name: g-api port: {{ .Values.conf.glance.default.glance.api.bind_port }} {{ if .Values.network.api.node_port.enabled }} - nodePort: .Values.network.api.node_port.port + nodePort: {{ .Values.network.api.node_port.port }} {{ end }} selector: {{ tuple $envAll "glance" "api" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} diff --git a/glance/templates/service-registry.yaml b/glance/templates/service-registry.yaml index 54cce5469b..fb0457ab2e 100644 --- a/glance/templates/service-registry.yaml +++ b/glance/templates/service-registry.yaml @@ -23,10 +23,10 @@ metadata: name: {{ tuple "image_registry" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} spec: ports: - - name: g-reg - port: {{ .Values.conf.glance_registry.default.glance.registry.bind_port }} + - name: g-reg + port: {{ .Values.conf.glance_registry.default.glance.registry.bind_port }} {{ if .Values.network.registry.node_port.enabled }} - nodePort: {{ .Values.network.registry.node_port.port }} + nodePort: {{ .Values.network.registry.node_port.port }} {{ end }} selector: {{ tuple $envAll "glance" "registry" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} diff --git a/nova/templates/service-metadata.yaml b/nova/templates/service-metadata.yaml index 97d152802a..481e1ed5a2 100644 --- a/nova/templates/service-metadata.yaml +++ b/nova/templates/service-metadata.yaml @@ -26,7 +26,7 @@ spec: - name: n-meta port: {{ .Values.network.metadata.port }} {{ if .Values.network.metadata.node_port.enabled }} - nodePort: {{ .Values.network.metadata.node_port.port }} + nodePort: {{ .Values.network.metadata.node_port.port }} {{ end }} selector: {{ tuple $envAll "nova" "metadata" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}