1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- kind: Deployment
- apiVersion: apps/v1
- metadata:
- name: {{ template "deploy-name" . }}
- # namespace: {{ .Values.namespace }}
- 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 }}
- imagePullPolicy: {{ .Values.image.pullPolicy }}
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
- ports:
- - containerPort: 8000
- readinessProbe:
- httpGet:
- path: /home
- port: 8000
- livenessProbe:
- httpGet:
- path: /home
- port: 8000
- # {{ 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 }}
|