Files
chart/library/ix-dev/community/castopod/templates/_castopod.tpl
Stavros Kois f4a842b162 Add castopod to incubator train (#1598)
* initial commit

* add some templates

* add common and templates

* update strategy

* fix tempaltes

* fix host

* add metadata

* add readme

* fix probe

* add questiosn

* typo

* quote

* disable by default the redirect

* add another test

* rename service

* remove todo

* fix backend url and questions
2023-10-05 15:12:05 +03:00

57 lines
1.6 KiB
Smarty

{{- define "castopod.workload" -}}
workload:
castopod:
enabled: true
primary: true
type: Deployment
podSpec:
hostNetwork: false
containers:
castopod:
enabled: true
primary: true
imageSelector: image
securityContext:
runAsUser: 0
runAsGroup: 0
runAsNonRoot: false
readOnlyRootFilesystem: false
capabilities:
add:
- CHOWN
- DAC_OVERRIDE
- FOWNER
- SETGID
- SETUID
envFrom:
- secretRef:
name: castopod-creds
- configMapRef:
name: castopod-config
{{ with .Values.castopodConfig.additionalEnvs }}
envList:
{{ range $env := . }}
- name: {{ $env.name }}
value: {{ $env.value }}
{{ end }}
{{ end }}
probes:
liveness:
enabled: true
type: tcp
port: 9000
readiness:
enabled: true
type: tcp
port: 9000
startup:
enabled: true
type: tcp
port: 9000
initContainers:
{{- include "ix.v1.common.app.redisWait" (dict "name" "01-redis-wait"
"secretName" "redis-creds") | nindent 8 }}
{{- include "ix.v1.common.app.mariadbWait" (dict "name" "02-mariadb-wait"
"secretName" "mariadb-creds") | nindent 8 }}
{{- end -}}