You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2 KiB

  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: {{ template "keystore-data.fullname" . }}
  5. labels:
  6. app: {{ template "keystore-data.name" . }}
  7. chart: {{ template "keystore-data.chart" . }}
  8. release: {{ .Release.Name }}
  9. heritage: {{ .Release.Service }}
  10. spec:
  11. replicas: {{ .Values.replicaCount }}
  12. selector:
  13. matchLabels:
  14. app: {{ template "keystore-data.name" . }}
  15. release: {{ .Release.Name }}
  16. template:
  17. metadata:
  18. labels:
  19. app: {{ template "keystore-data.name" . }}
  20. release: {{ .Release.Name }}
  21. spec:
  22. containers:
  23. - name: {{ .Chart.Name }}
  24. image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
  25. imagePullPolicy: {{ .Values.image.pullPolicy }}
  26. ports:
  27. - name: http
  28. containerPort: 6379
  29. protocol: TCP
  30. resources:
  31. {{ toYaml .Values.resources | indent 12 }}
  32. {{- with .Values.nodeSelector }}
  33. nodeSelector:
  34. {{ toYaml . | indent 8 }}
  35. {{- end }}
  36. {{- with .Values.affinity }}
  37. affinity:
  38. {{ toYaml . | indent 8 }}
  39. {{- end }}
  40. {{- with .Values.tolerations }}
  41. tolerations:
  42. {{ toYaml . | indent 8 }}
  43. {{- end }}