deployment.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. kind: Deployment
  2. apiVersion: apps/v1
  3. metadata:
  4. name: {{ template "deploy-name" . }}
  5. labels:
  6. app: {{ template "app-name" . }}
  7. release: {{ .Release.Name }}
  8. heritage: {{ .Release.Service }}
  9. version: {{ template "app-chart-version" . }}
  10. spec:
  11. replicas: {{ .Values.replicaCount }}
  12. revisionHistoryLimit: 3
  13. selector:
  14. matchLabels:
  15. app: {{ template "app-name" . }}
  16. release: {{ .Release.Name }}
  17. template:
  18. metadata:
  19. labels:
  20. app: {{ template "app-name" . }}
  21. release: {{ .Release.Name }}
  22. spec:
  23. containers:
  24. - name: {{ .Chart.Name }}
  25. image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
  26. imagePullPolicy: {{ .Values.image.pullPolicy }}
  27. ports:
  28. - containerPort: 8000
  29. livenessProbe:
  30. httpGet:
  31. path: /
  32. port: http
  33. readinessProbe:
  34. httpGet:
  35. path: /
  36. port: http
  37. # {{ toYaml .Values.resources | indent 12 }}
  38. # {{- with .Values.nodeSelector }}
  39. # nodeSelector:
  40. # {{ toYaml . | indent 8 }}
  41. # {{- end }}
  42. # {{- with .Values.affinity }}
  43. # affinity:
  44. # {{ toYaml . | indent 8 }}
  45. # {{- end }}
  46. # {{- with .Values.tolerations }}
  47. # tolerations:
  48. # {{ toYaml . | indent 8 }}
  49. # {{- end }}