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

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "sql-data.fullname" . }}
labels:
app: {{ template "sql-data.name" . }}
chart: {{ template "sql-data.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ template "sql-data.name" . }}
release: {{ .Release.Name }}
template:
metadata:
labels:
app: {{ template "sql-data.name" . }}
release: {{ .Release.Name }}
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: ACCEPT_EULA
value: "Y"
- name: MSSQL_PID
value: {{ .Values.inf.sql.common.pid }}
- name: MSSQL_SA_PASSWORD
value: {{ .Values.inf.sql.common.pwd }}
ports:
- name: http
containerPort: 1433
protocol: TCP
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}