Skip to content

Commit

Permalink
Add init containers for system (#19)
Browse files Browse the repository at this point in the history
* chore: add init containers for system

* chore: shorter wait times

* chore: busybox cant use brace expressions

* chore: spaceinit does not require CZ_CLUSTER_CERT_KEY

* chore: pin image for spaceinit container

* chore: update image tag for spaceinit
  • Loading branch information
kramuenke authored Apr 11, 2024
1 parent 9968b49 commit 4b78b67
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions charts/codezero/templates/system/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,27 @@ spec:
serviceAccountName: {{ include "system.name" . }}
securityContext:
{{- toYaml .Values.system.podSecurityContext | nindent 8 }}
initContainers:
- name: space-init
image: "c6oio/spaceinit:6937d6c"
imagePullPolicy: {{ .Values.system.image.pullPolicy }}
env:
- name: CZ_CLUSTER_CERT
value: /etc/ssl/certs/space/tls.pem
{{- if .Values.hub.url }}
- name: CZ_HUB_URL
value: {{ .Values.hub.url }}
{{- end }}
envFrom:
- secretRef:
name: {{ include "system.name" . }}
volumeMounts:
- mountPath: /etc/ssl/certs/space
name: space-cert
readOnly: true
- name: wait-for-orchestrator
image: public.ecr.aws/docker/library/busybox:1.36
command: ["sh", "-c", "for i in `seq 1 60`; do if wget --spider --quiet 'http://orchestrator:8900'; then exit 0; fi; sleep 0.5; done; exit 1"]
containers:
- name: {{ include "system.name" . }}
securityContext:
Expand Down

0 comments on commit 4b78b67

Please sign in to comment.