Merge "Heat: use endpoints section and lookups to set port"
This commit is contained in:
commit
c5f046be94
@ -109,6 +109,18 @@ limitations under the License.
|
|||||||
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" | trimSuffix .Values.endpoints.identity.path.default | set .Values.conf.heat.trustee "auth_url" | quote | trunc 0 -}}
|
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" | trimSuffix .Values.endpoints.identity.path.default | set .Values.conf.heat.trustee "auth_url" | quote | trunc 0 -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- if empty .Values.conf.heat.heat_api.bind_port -}}
|
||||||
|
{{- tuple "orchestration" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | set .Values.conf.heat.heat_api "bind_port" | quote | trunc 0 -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- if empty .Values.conf.heat.heat_api_cloudwatch.bind_port -}}
|
||||||
|
{{- tuple "cloudwatch" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | set .Values.conf.heat.heat_api_cloudwatch "bind_port" | quote | trunc 0 -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- if empty .Values.conf.heat.heat_api_cfn.bind_port -}}
|
||||||
|
{{- tuple "cloudformation" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | set .Values.conf.heat.heat_api_cfn "bind_port" | quote | trunc 0 -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
@ -64,10 +64,11 @@ spec:
|
|||||||
- /tmp/heat-api.sh
|
- /tmp/heat-api.sh
|
||||||
- stop
|
- stop
|
||||||
ports:
|
ports:
|
||||||
- containerPort: {{ .Values.conf.heat.heat_api.bind_port }}
|
- name: h-api
|
||||||
|
containerPort: {{ tuple "orchestration" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: {{ .Values.conf.heat.heat_api.bind_port }}
|
port: {{ tuple "orchestration" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: pod-etc-heat
|
- name: pod-etc-heat
|
||||||
mountPath: /etc/heat
|
mountPath: /etc/heat
|
||||||
|
@ -64,10 +64,11 @@ spec:
|
|||||||
- /tmp/heat-cfn.sh
|
- /tmp/heat-cfn.sh
|
||||||
- stop
|
- stop
|
||||||
ports:
|
ports:
|
||||||
- containerPort: {{ .Values.conf.heat.heat_api_cfn.bind_port }}
|
- name: h-cfn
|
||||||
|
containerPort: {{ tuple "cloudformation" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: {{ .Values.conf.heat.heat_api_cfn.bind_port }}
|
port: {{ tuple "cloudformation" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: pod-etc-heat
|
- name: pod-etc-heat
|
||||||
mountPath: /etc/heat
|
mountPath: /etc/heat
|
||||||
|
@ -64,10 +64,11 @@ spec:
|
|||||||
- /tmp/heat-cloudwatch.sh
|
- /tmp/heat-cloudwatch.sh
|
||||||
- stop
|
- stop
|
||||||
ports:
|
ports:
|
||||||
- containerPort: {{ .Values.conf.heat.heat_api_cloudwatch.bind_port }}
|
- name: h-cwh
|
||||||
|
containerPort: {{ tuple "cloudwatch" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: {{ .Values.conf.heat.heat_api_cloudwatch.bind_port }}
|
port: {{ tuple "cloudwatch" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: pod-etc-heat
|
- name: pod-etc-heat
|
||||||
mountPath: /etc/heat
|
mountPath: /etc/heat
|
||||||
|
@ -24,7 +24,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: h-api
|
- name: h-api
|
||||||
port: {{ .Values.conf.heat.heat_api.bind_port }}
|
port: {{ tuple "orchestration" "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 }}
|
||||||
|
@ -24,7 +24,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: h-cfn
|
- name: h-cfn
|
||||||
port: {{ .Values.conf.heat.heat_api_cfn.bind_port }}
|
port: {{ tuple "cloudformation" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
{{ if .Values.network.cfn.node_port.enabled }}
|
{{ if .Values.network.cfn.node_port.enabled }}
|
||||||
nodePort: {{ .Values.network.cfn.node_port.port }}
|
nodePort: {{ .Values.network.cfn.node_port.port }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -24,7 +24,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: h-cwh
|
- name: h-cwh
|
||||||
port: {{ .Values.conf.heat.heat_api_cloudwatch.bind_port }}
|
port: {{ tuple "cloudwatch" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
{{ if .Values.network.cloudwatch.node_port.enabled }}
|
{{ if .Values.network.cloudwatch.node_port.enabled }}
|
||||||
nodePort: {{ .Values.network.cloudwatch.node_port.port }}
|
nodePort: {{ .Values.network.cloudwatch.node_port.port }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -223,13 +223,19 @@ conf:
|
|||||||
auth_type: password
|
auth_type: password
|
||||||
auth_version: v3
|
auth_version: v3
|
||||||
heat_api:
|
heat_api:
|
||||||
bind_port: 8004
|
#NOTE(portdirect): the bind port should not be defined, and is manipulated
|
||||||
|
# via the endpoints section.
|
||||||
|
bind_port: null
|
||||||
workers: 4
|
workers: 4
|
||||||
heat_api_cloudwatch:
|
heat_api_cloudwatch:
|
||||||
bind_port: 8003
|
#NOTE(portdirect): the bind port should not be defined, and is manipulated
|
||||||
|
# via the endpoints section.
|
||||||
|
bind_port: null
|
||||||
workers: 4
|
workers: 4
|
||||||
heat_api_cfn:
|
heat_api_cfn:
|
||||||
bind_port: 8000
|
#NOTE(portdirect): the bind port should not be defined, and is manipulated
|
||||||
|
# via the endpoints section.
|
||||||
|
bind_port: null
|
||||||
workers: 4
|
workers: 4
|
||||||
paste_deploy:
|
paste_deploy:
|
||||||
api_paste_config: /etc/heat/api-paste.ini
|
api_paste_config: /etc/heat/api-paste.ini
|
||||||
|
Loading…
Reference in New Issue
Block a user