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.
abp/samples/MicroserviceDemo/k8s/sqlserver-deployment.yaml

35 lines
773 B

apiVersion: apps/v1
kind: Deployment
metadata:
name: sqlserver
spec:
selector:
matchLabels:
app: sqlserver
replicas: 1
template:
metadata:
labels:
app: sqlserver
spec:
containers:
- name: sqlserver
image: mcr.microsoft.com/mssql/server
ports:
- containerPort: 1433
env:
- name: MSSQL_PID
value: "Developer"
- name: ACCEPT_EULA
value: "Y"
- name: SA_PASSWORD
value: yourStrong(!)Password
- name: MSSQL_SA_PASSWORD
value: yourStrong(!)Password
volumeMounts:
- name: dbdata
mountPath: /var/opt/mssql
volumes:
- name: dbdata
persistentVolumeClaim:
claimName: dbdata