Merge "Senlin: use endpoints section and lookups to set port"
This commit is contained in:
commit
e25342ddd0
@ -62,6 +62,10 @@ limitations under the License.
|
|||||||
{{- tuple "oslo_messaging" "internal" "senlin" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.senlin.DEFAULT "transport_url" | quote | trunc 0 -}}
|
{{- tuple "oslo_messaging" "internal" "senlin" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.senlin.DEFAULT "transport_url" | quote | trunc 0 -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- if empty .Values.conf.senlin.senlin_api.bind_port -}}
|
||||||
|
{{- tuple "clustering" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | set .Values.conf.senlin.senlin_api "bind_port" | quote | trunc 0 -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
@ -64,10 +64,11 @@ spec:
|
|||||||
- /tmp/senlin-api.sh
|
- /tmp/senlin-api.sh
|
||||||
- stop
|
- stop
|
||||||
ports:
|
ports:
|
||||||
- containerPort: {{ .Values.conf.senlin.senlin_api.bind_port }}
|
- name: s-api
|
||||||
|
containerPort: {{ tuple "clustering" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: {{ .Values.conf.senlin.senlin_api.bind_port }}
|
port: {{ tuple "clustering" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: senlin-bin
|
- name: senlin-bin
|
||||||
mountPath: /tmp/senlin-api.sh
|
mountPath: /tmp/senlin-api.sh
|
||||||
|
@ -24,7 +24,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: s-api
|
- name: s-api
|
||||||
port: {{ .Values.conf.senlin.senlin_api.bind_port }}
|
port: {{ tuple "clustering" "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 }}
|
||||||
|
@ -130,7 +130,9 @@ conf:
|
|||||||
auth_version: v3
|
auth_version: v3
|
||||||
memcache_security_strategy: ENCRYPT
|
memcache_security_strategy: ENCRYPT
|
||||||
senlin_api:
|
senlin_api:
|
||||||
bind_port: 8778
|
#NOTE(portdirect): the bind port should not be defined, and is manipulated
|
||||||
|
# via the endpoints section.
|
||||||
|
bind_port: null
|
||||||
|
|
||||||
network:
|
network:
|
||||||
api:
|
api:
|
||||||
|
Loading…
Reference in New Issue
Block a user