Files
common/starter/templates/deployment.yaml
2020-04-27 11:46:24 +08:00

27 lines
566 B
YAML

{{/* vim: set filetype=mustache: */}}
{{- include "common.deployment" (list . .Values .Values.autoscaling .Values.serviceAccount "<CHARTNAME>.deployment") }}
{{- define "<CHARTNAME>.deployment" -}}
spec:
template:
spec:
containers:
- {{- include "common.container" (append . "<CHARTNAME>.container") | nindent 8 }}
{{- end }}
{{- define "<CHARTNAME>.container" -}}
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
{{- end }}