Helm entrypoint hooks
This PS adds helm entrypoint support into the common code, enabling microservices that depend on them to gain helm entrypoint support. Change-Id: I74c908f400fbfa2e8002860db6b8d2b6c670fe05
This commit is contained in:
parent
a69de9d433
commit
9a60b14ce3
|
@ -25,6 +25,7 @@ spec:
|
|||
# The init container overrides the listen address and port to ensure it does not conflict with haproxy and prevent
|
||||
# other containers from directly accessing the service
|
||||
pod.beta.kubernetes.io/init-containers: '[
|
||||
{{- include "common_dependency_container_multi" . | indent 10 }}
|
||||
{
|
||||
"name": "update-config",
|
||||
"image": {{ include "kolla_toolbox_image_full" . | quote }},
|
||||
|
|
|
@ -6,6 +6,9 @@ metadata:
|
|||
name: "{{ .resourceName }}-create-db"
|
||||
spec:
|
||||
template:
|
||||
{{- include "init_container_header" . | indent 4 }}
|
||||
{{- include "common_dependency_container_single" . | indent 10 }}
|
||||
{{- include "init_container_tail" . | indent 2 }}
|
||||
spec:
|
||||
nodeSelector:
|
||||
{{ .Values.selector_key }}: {{ .Values.selector_value | quote }}
|
||||
|
|
|
@ -10,6 +10,9 @@ spec:
|
|||
parallelism: 1
|
||||
completions: 1
|
||||
template:
|
||||
{{- include "init_container_header" . | indent 4 }}
|
||||
{{- include "common_dependency_container_single" . | indent 10 }}
|
||||
{{- include "init_container_tail" . | indent 4 }}
|
||||
spec:
|
||||
nodeSelector:
|
||||
{{ .Values.selector_key }}: {{ .Values.selector_value | quote }}
|
||||
|
|
|
@ -10,6 +10,9 @@ spec:
|
|||
parallelism: 1
|
||||
completions: 1
|
||||
template:
|
||||
{{- include "init_container_header" . | indent 4 }}
|
||||
{{- include "common_dependency_container_single" . | indent 10 }}
|
||||
{{- include "init_container_tail" . | indent 4 }}
|
||||
spec:
|
||||
nodeSelector:
|
||||
{{ .Values.selector_key }}: {{ .Values.selector_value | quote }}
|
||||
|
|
|
@ -9,6 +9,9 @@ spec:
|
|||
parallelism: 1
|
||||
completions: 1
|
||||
template:
|
||||
{{- include "init_container_header" . | indent 4 }}
|
||||
{{- include "common_dependency_container_single" . | indent 10 }}
|
||||
{{- include "init_container_tail" . | indent 4 }}
|
||||
spec:
|
||||
nodeSelector:
|
||||
{{ .Values.selector_key }}: {{ .Values.selector_value | quote }}
|
||||
|
|
|
@ -5,6 +5,9 @@ metadata:
|
|||
name: "{{ .resourceName }}-manage-db"
|
||||
spec:
|
||||
template:
|
||||
{{- include "init_container_header" . | indent 4 }}
|
||||
{{- include "common_dependency_container_single" . | indent 10 }}
|
||||
{{- include "init_container_tail" . | indent 4 }}
|
||||
spec:
|
||||
nodeSelector:
|
||||
{{ .Values.selector_key }}: {{ .Values.selector_value | quote }}
|
||||
|
|
|
@ -11,6 +11,7 @@ spec:
|
|||
type: {{ .serviceType }}
|
||||
annotations:
|
||||
pod.beta.kubernetes.io/init-containers: '[
|
||||
{{- include "common_dependency_container_multi" . | indent 10 }}
|
||||
{
|
||||
"name": "initialize-config",
|
||||
"image": {{ include "kolla_toolbox_image_full" . | quote }},
|
||||
|
|
Loading…
Reference in New Issue