feat: add starter

This commit is contained in:
Chi-En Wu
2020-04-27 11:46:24 +08:00
parent a6fab55d7d
commit a57a1f7e09
9 changed files with 201 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{{/* 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 }}