Skip to content

Instantly share code, notes, and snippets.

@ddebroy
Created May 21, 2019 18:44
Show Gist options
  • Save ddebroy/c63359bdf38e816e93aa5733ccbc53ef to your computer and use it in GitHub Desktop.
Save ddebroy/c63359bdf38e816e93aa5733ccbc53ef to your computer and use it in GitHub Desktop.
iscsi-mssql-pod
apiVersion: v1
kind: Pod
metadata:
name: sqlserver-iscsi1
labels:
app: sqlserver-iscsi1
spec:
tolerations:
- key: "node.kubernetes.io/os"
operator: "Equal"
value: "win1809"
effect: "NoSchedule"
nodeSelector:
beta.kubernetes.io/os: windows
containers:
- name: sqlpod
image: ddebroy/sqlsrv:latest
volumeMounts:
- name: iscsivol
mountPath: C:\Data
env:
- name: ACCEPT_EULA
value: "y"
- name: sa_password
value: "Tester123"
volumes:
- name: iscsivol
persistentVolumeClaim:
claimName: iscsi-claim1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment