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.
 
 
 

59 lines
2.0 KiB

  1. apiVersion: apps/v1beta2
  2. kind: Deployment
  3. metadata:
  4. name: {{ include "transfersh.fullname" . }}
  5. labels:
  6. app.kubernetes.io/name: {{ include "transfersh.name" . }}
  7. helm.sh/chart: {{ include "transfersh.chart" . }}
  8. app.kubernetes.io/instance: {{ .Release.Name }}
  9. app.kubernetes.io/managed-by: {{ .Release.Service }}
  10. spec:
  11. replicas: {{ .Values.replicaCount }}
  12. selector:
  13. matchLabels:
  14. app.kubernetes.io/name: {{ include "transfersh.name" . }}
  15. app.kubernetes.io/instance: {{ .Release.Name }}
  16. template:
  17. metadata:
  18. labels:
  19. app.kubernetes.io/name: {{ include "transfersh.name" . }}
  20. app.kubernetes.io/instance: {{ .Release.Name }}
  21. spec:
  22. {{- $keyRefSource := .Values.argValues.source.type -}}
  23. {{ $keyRefName := .Values.argValues.source.name }}
  24. containers:
  25. - name: {{ .Chart.Name }}
  26. image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
  27. imagePullPolicy: {{ .Values.image.pullPolicy }}
  28. env:
  29. {{- range .Values.argValues.paramNames }}
  30. - name: {{ . | upper | replace "-" "_" }}
  31. valueFrom:
  32. {{ $keyRefSource }}:
  33. name: {{ $keyRefName }}
  34. key: {{ . | upper | replace "-" "_"}}
  35. {{- end }}
  36. args: [ {{- range .Values.argValues.paramNames }} {{ printf "%s%s" $.Values.argIdentifier . | quote}},{{ printf "%s%s%s" "$(" . ")" | upper | replace "-" "_" | quote}},{{- end }} ]
  37. livenessProbe:
  38. httpGet:
  39. path: /
  40. port: {{ .Values.service.internalPort }}
  41. readinessProbe:
  42. httpGet:
  43. path: /
  44. port: {{ .Values.service.internalPort }}
  45. resources:
  46. {{ toYaml .Values.resources | indent 12 }}
  47. {{- with .Values.nodeSelector }}
  48. nodeSelector:
  49. {{ toYaml . | indent 8 }}
  50. {{- end }}
  51. {{- with .Values.affinity }}
  52. affinity:
  53. {{ toYaml . | indent 8 }}
  54. {{- end }}
  55. {{- with .Values.tolerations }}
  56. tolerations:
  57. {{ toYaml . | indent 8 }}
  58. {{- end }}