deployment.yaml 1.3 KB

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