Neutron: use endpoints section and lookups to set port
This PS moves neutron to use the endpoints section and lookups to set the port it serves on. Change-Id: I3a31b55aac62732a12f6c05385dba891ac8cc495
This commit is contained in:
parent
16c6d31155
commit
ed8bd52b7a
@ -128,6 +128,10 @@ limitations under the License.
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- if empty .Values.conf.neutron.DEFAULT.bind_port -}}
|
||||||
|
{{- tuple "network" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | set .Values.conf.neutron.DEFAULT "bind_port" | quote | trunc 0 -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
@ -66,10 +66,11 @@ spec:
|
|||||||
- /tmp/neutron-server.sh
|
- /tmp/neutron-server.sh
|
||||||
- stop
|
- stop
|
||||||
ports:
|
ports:
|
||||||
- containerPort: {{ .Values.network.server.port }}
|
- name: q-api
|
||||||
|
containerPort: {{ tuple "network" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: {{ .Values.network.server.port }}
|
port: {{ tuple "network" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: neutron-bin
|
- name: neutron-bin
|
||||||
mountPath: /tmp/neutron-server.sh
|
mountPath: /tmp/neutron-server.sh
|
||||||
|
@ -24,7 +24,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: q-api
|
- name: q-api
|
||||||
port: {{ .Values.network.server.port }}
|
port: {{ tuple "network" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
{{ if .Values.network.server.node_port.enabled }}
|
{{ if .Values.network.server.node_port.enabled }}
|
||||||
nodePort: {{ .Values.network.server.node_port.port }}
|
nodePort: {{ .Values.network.server.node_port.port }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -95,7 +95,6 @@ network:
|
|||||||
# br0: if0
|
# br0: if0
|
||||||
# br1: iface_two
|
# br1: iface_two
|
||||||
server:
|
server:
|
||||||
port: 9696
|
|
||||||
ingress:
|
ingress:
|
||||||
public: true
|
public: true
|
||||||
annotations:
|
annotations:
|
||||||
@ -951,6 +950,9 @@ conf:
|
|||||||
append:
|
append:
|
||||||
neutron:
|
neutron:
|
||||||
DEFAULT:
|
DEFAULT:
|
||||||
|
#NOTE(portdirect): the bind port should not be defined, and is manipulated
|
||||||
|
# via the endpoints section.
|
||||||
|
bind_port: null
|
||||||
default_availability_zones: nova
|
default_availability_zones: nova
|
||||||
api_workers: 4
|
api_workers: 4
|
||||||
allow_overlapping_ips: True
|
allow_overlapping_ips: True
|
||||||
|
Loading…
Reference in New Issue
Block a user