Skip to content

Commit

Permalink
add security context and explicit resource definition to wait-etcd in…
Browse files Browse the repository at this point in the history
…it container
  • Loading branch information
sdd-el committed Jan 22, 2025
1 parent c52d29d commit 264e508
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/apisix/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ spec:
{{- if .Values.etcd.enabled }}
- name: wait-etcd
image: {{ .Values.initContainer.image }}:{{ .Values.initContainer.tag }}
{{- with .Values.initContainer.securityContext }}
securityContext:
{{- . | toYaml | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.initContainer.resources | nindent 12 }}
{{- if .Values.etcd.fullnameOverride }}
command: ['sh', '-c', "until nc -z {{ .Values.etcd.fullnameOverride }} {{ .Values.etcd.service.port }}; do echo waiting for etcd `date`; sleep 2; done;"]
{{ else }}
Expand Down

0 comments on commit 264e508

Please sign in to comment.