Merge "Add option to set external policy to local for openstack services"

This commit is contained in:
Zuul 2017-11-08 03:39:16 +00:00 committed by Gerrit Code Review
commit 2af836c9d8
22 changed files with 55 additions and 6 deletions

View File

@ -32,5 +32,8 @@ spec:
{{ tuple $envAll "barbican" "api" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
{{ if .Values.network.api.node_port.enabled }}
type: NodePort
{{ if .Values.network.api.external_policy_local }}
externalTrafficPolicy: Local
{{ end }}
{{ end }}
{{- end }}

View File

@ -134,6 +134,7 @@ network:
api:
ingress:
public: true
external_policy_local: false
node_port:
enabled: false
port: 39486

View File

@ -32,5 +32,8 @@ spec:
{{ tuple $envAll "cinder" "api" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
{{ if .Values.network.api.node_port.enabled }}
type: NodePort
{{ if .Values.network.api.external_policy_local }}
externalTrafficPolicy: Local
{{ end }}
{{ end }}
{{- end }}

View File

@ -195,6 +195,7 @@ network:
api:
ingress:
public: true
external_policy_local: false
node_port:
enabled: false
port: 30877

View File

@ -32,5 +32,8 @@ spec:
{{ tuple $envAll "glance" "api" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
{{ if .Values.network.api.node_port.enabled }}
type: NodePort
{{ if .Values.network.api.external_policy_local }}
externalTrafficPolicy: Local
{{ end }}
{{ end }}
{{- end }}

View File

@ -32,5 +32,8 @@ spec:
{{ tuple $envAll "glance" "registry" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
{{ if .Values.network.registry.node_port.enabled }}
type: NodePort
{{ if .Values.network.registry.external_policy_local }}
externalTrafficPolicy: Local
{{ end }}
{{ end }}
{{- end }}

View File

@ -275,12 +275,14 @@ network:
ingress:
public: true
proxy_body_size: 1024M
external_policy_local: false
node_port:
enabled: false
port: 30092
registry:
ingress:
public: true
external_policy_local: false
node_port:
enabled: false
port: 30091

View File

@ -32,5 +32,8 @@ spec:
{{ tuple $envAll "gnocchi" "api" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
{{ if .Values.network.api.node_port.enabled }}
type: NodePort
{{ if .Values.network.api.external_policy_local }}
externalTrafficPolicy: Local
{{ end }}
{{ end }}
{{- end }}

View File

@ -27,6 +27,7 @@ network:
api:
ingress:
public: true
external_policy_local: false
node_port:
enabled: false
port: 8041

View File

@ -32,5 +32,8 @@ spec:
{{ tuple $envAll "heat" "api" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
{{ if .Values.network.api.node_port.enabled }}
type: NodePort
{{ if .Values.network.api.external_policy_local }}
externalTrafficPolicy: Local
{{ end }}
{{ end }}
{{- end }}

View File

@ -221,6 +221,7 @@ network:
api:
ingress:
public: true
external_policy_local: false
node_port:
enabled: false
port: 30004

View File

@ -23,9 +23,9 @@ metadata:
name: {{ tuple "dashboard" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
spec:
ports:
{{ if .Values.network.enable_node_port }}
{{ if .Values.network.node_port.enabled }}
- name: http
nodePort: {{ .Values.network.node_port }}
nodePort: {{ .Values.network.node_port.port }}
port: {{ .Values.network.port }}
protocol: TCP
targetPort: {{ .Values.network.port }}
@ -37,7 +37,10 @@ spec:
{{ end }}
selector:
{{ tuple $envAll "horizon" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
{{ if .Values.network.enable_node_port }}
{{ if .Values.network.node_port.enabled }}
type: NodePort
{{ if .Values.network.external_policy_local }}
externalTrafficPolicy: Local
{{ end }}
{{ end }}
{{- end }}

View File

@ -33,11 +33,13 @@ labels:
node_selector_value: enabled
network:
port: 80
ingress:
public: true
port: 80
node_port: 31000
enable_node_port: false
external_policy_local: false
node_port:
enabled: false
port: 31000
# Use "True" and "False" as Titlecase strings with quotes, boolean
# values will not work

View File

@ -37,5 +37,8 @@ spec:
{{ tuple $envAll "keystone" "api" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
{{ if or (.Values.network.api.node_port.enabled) (.Values.network.admin.node_port.enabled) }}
type: NodePort
{{ if .Values.network.api.external_policy_local }}
externalTrafficPolicy: Local
{{ end }}
{{ end }}
{{- end }}

View File

@ -53,6 +53,7 @@ network:
port: 80
ingress:
public: true
external_policy_local: false
node_port:
enabled: false
port: 30500

View File

@ -32,5 +32,8 @@ spec:
{{ tuple $envAll "magnum" "api" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
{{ if .Values.network.api.node_port.enabled }}
type: NodePort
{{ if .Values.network.api.external_policy_local }}
externalTrafficPolicy: Local
{{ end }}
{{ end }}
{{- end }}

View File

@ -115,6 +115,7 @@ network:
api:
ingress:
public: true
external_policy_local: false
node_port:
enabled: false
port: 30511

View File

@ -32,5 +32,8 @@ spec:
{{ tuple $envAll "neutron" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
{{ if .Values.network.server.node_port.enabled }}
type: NodePort
{{ if .Values.network.server.external_policy_local }}
externalTrafficPolicy: Local
{{ end }}
{{ end }}
{{- end }}

View File

@ -91,6 +91,7 @@ network:
port: 9696
ingress:
public: true
external_policy_local: false
node_port:
enabled: false
port: 30096

View File

@ -32,5 +32,8 @@ spec:
{{ tuple $envAll "nova" "metadata" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
{{ if .Values.network.metadata.node_port.enabled }}
type: NodePort
{{ if .Values.network.metadata.external_policy_local }}
externalTrafficPolicy: Local
{{ end }}
{{ end }}
{{- end }}

View File

@ -32,5 +32,8 @@ spec:
{{ tuple $envAll "nova" "os-api" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
{{ if .Values.network.osapi.node_port.enabled }}
type: NodePort
{{ if .Values.network.osapi.external_policy_local }}
externalTrafficPolicy: Local
{{ end }}
{{ end }}
{{- end }}

View File

@ -109,6 +109,7 @@ network:
port: 8774
ingress:
public: true
external_policy_local: false
node_port:
enabled: false
port: 30774
@ -118,6 +119,7 @@ network:
port: 8775
ingress:
public: true
external_policy_local: false
node_port:
enabled: false
port: 30775