12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- kind: Deployment
- apiVersion: apps/v1
- metadata:
- name: {{ template "deploy-name" . }}
- labels:
- app: {{ template "app-name" . }}
- release: {{ .Release.Name }}
- heritage: {{ .Release.Service }}
- version: {{ template "app-chart-version" . }}
- spec:
- replicas: {{ .Values.replicaCount }}
- revisionHistoryLimit: 3
- selector:
- matchLabels:
- app: {{ template "app-name" . }}
- release: {{ .Release.Name }}
- template:
- metadata:
- labels:
- app: {{ template "app-name" . }}
- release: {{ .Release.Name }}
- spec:
- containers:
- - name: {{ .Chart.Name }}
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
- imagePullPolicy: {{ .Values.image.pullPolicy }}
- ports:
- - containerPort: 8000
- livenessProbe:
- httpGet:
- path: /
- port: http
- readinessProbe:
- httpGet:
- path: /
- port: http
- # {{ toYaml .Values.resources | indent 12 }}
- # {{- with .Values.nodeSelector }}
- # nodeSelector:
- # {{ toYaml . | indent 8 }}
- # {{- end }}
- # {{- with .Values.affinity }}
- # affinity:
- # {{ toYaml . | indent 8 }}
- # {{- end }}
- # {{- with .Values.tolerations }}
- # tolerations:
- # {{ toYaml . | indent 8 }}
- # {{- end }}
|