Skip to content

Instantly share code, notes, and snippets.

@NileshGule
Created November 7, 2018 11:19
Show Gist options
  • Save NileshGule/82297a4661c1c8cff188e8d85545db0d to your computer and use it in GitHub Desktop.
Save NileshGule/82297a4661c1c8cff188e8d85545db0d to your computer and use it in GitHub Desktop.
---
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: db-deployment
namespace: aks-part4
spec:
serviceName: db-deployment
replicas: 1
template:
metadata:
labels:
app: db
spec:
terminationGracePeriodSeconds: 10
containers:
- name: sql2017
image: microsoft/mssql-server-linux
imagePullPolicy: Always
ports:
- name: dbport
containerPort: 1433
env:
- name: ACCEPT_EULA
value: "Y"
- name: SA_PASSWORD
# value: June@2018
valueFrom:
secretKeyRef:
name: sqlsecret
key: sapassword
- name: MSSQL_PID
value: Developer
volumeMounts:
- name: mssqldb
mountPath: /var/opt/mssql
volumes:
- name: mssqldb
persistentVolumeClaim:
claimName: techtalksdb-data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment