Cinder: use endpoints section and lookups to set port
This PS moves cinder to use the endpoints section and lookups to set the port it serves on. Change-Id: Ib95c89f1ff4d20eb3bb57aad325ae31f0ec52532
This commit is contained in:
@@ -92,6 +92,9 @@ limitations under the License.
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- if empty .Values.conf.cinder.DEFAULT.osapi_volume_listen_port -}}
|
||||||
|
{{- tuple "volume" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | set .Values.conf.cinder.DEFAULT "osapi_volume_listen_port" | quote | trunc 0 -}}
|
||||||
|
{{- end -}}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
@@ -80,10 +80,10 @@ spec:
|
|||||||
- stop
|
- stop
|
||||||
ports:
|
ports:
|
||||||
- name: c-api
|
- name: c-api
|
||||||
containerPort: {{ .Values.conf.cinder.DEFAULT.osapi_volume_listen_port }}
|
containerPort: {{ tuple "volume" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: {{ .Values.conf.cinder.DEFAULT.osapi_volume_listen_port }}
|
port: {{ tuple "volume" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: cinder-bin
|
- name: cinder-bin
|
||||||
mountPath: /tmp/cinder-api.sh
|
mountPath: /tmp/cinder-api.sh
|
||||||
|
@@ -24,7 +24,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: c-api
|
- name: c-api
|
||||||
port: {{ .Values.conf.cinder.DEFAULT.osapi_volume_listen_port }}
|
port: {{ tuple "volume" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
{{ if .Values.network.api.node_port.enabled }}
|
{{ if .Values.network.api.node_port.enabled }}
|
||||||
nodePort: {{ .Values.network.api.node_port.port }}
|
nodePort: {{ .Values.network.api.node_port.port }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -447,7 +447,9 @@ conf:
|
|||||||
glance_api_version: 2
|
glance_api_version: 2
|
||||||
os_region_name: RegionOne
|
os_region_name: RegionOne
|
||||||
host: cinder-volume-worker
|
host: cinder-volume-worker
|
||||||
osapi_volume_listen_port: 8776
|
#NOTE(portdirect): the bind port should not be defined, and is manipulated
|
||||||
|
# via the endpoints section.
|
||||||
|
osapi_volume_listen_port: null
|
||||||
enabled_backends: "rbd1"
|
enabled_backends: "rbd1"
|
||||||
# NOTE(portdirect): "cinder.backup.drivers.swift" and
|
# NOTE(portdirect): "cinder.backup.drivers.swift" and
|
||||||
# "cinder.backup.drivers.posix" also supported
|
# "cinder.backup.drivers.posix" also supported
|
||||||
|
Reference in New Issue
Block a user