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.

50 lines
1.4 KiB

  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: {{ template "sql-data.fullname" . }}
  5. labels:
  6. app: {{ template "sql-data.name" . }}
  7. chart: {{ template "sql-data.chart" . }}
  8. release: {{ .Release.Name }}
  9. heritage: {{ .Release.Service }}
  10. spec:
  11. replicas: {{ .Values.replicaCount }}
  12. selector:
  13. matchLabels:
  14. app: {{ template "sql-data.name" . }}
  15. release: {{ .Release.Name }}
  16. template:
  17. metadata:
  18. labels:
  19. app: {{ template "sql-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. env:
  27. - name: ACCEPT_EULA
  28. value: "Y"
  29. - name: MSSQL_PID
  30. value: {{ .Values.inf.sql.common.pid }}
  31. - name: MSSQL_SA_PASSWORD
  32. value: {{ .Values.inf.sql.common.pwd }}
  33. ports:
  34. - name: http
  35. containerPort: 1433
  36. protocol: TCP
  37. resources:
  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 }}