-
Notifications
You must be signed in to change notification settings - Fork 0
/
2_mssql_deploy_primary_primary.yml
65 lines (65 loc) · 1.68 KB
/
2_mssql_deploy_primary_primary.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
apiVersion: apps/v1
kind: Deployment
metadata:
name: mssql-primary-deployment
labels:
app: primary
spec:
replicas: 1
selector:
matchLabels:
app: mssql-primary
strategy:
type: Recreate
template:
metadata:
labels:
app: mssql-primary
type: primary
spec:
# Uncomment below if you have certain conditions on which zone or worker should run.
# affinity:
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: type
# operator: In
# values:
# - worker
# - key: zone
# operator: In
# values:
# - us-west
hostname: mssql-primary
terminationGracePeriodSeconds: 10
securityContext:
fsGroup: 1000
volumes:
- name: task-pv-storage-primary
persistentVolumeClaim:
claimName: mssql-pv-claim-primary
containers:
- name: mssql-primary
image: mcr.microsoft.com/mssql/server:2019-latest
env:
- name: MSSQL_PID
value: "Developer"
- name: ACCEPT_EULA
value: "Y"
- name: MSSQL_ENABLE_HADR
value: "1"
- name: MSSQL_AGENT_ENABLED
value: "true"
- name: MSSQL_SA_PASSWORD
valueFrom:
secretKeyRef:
name: mssql
key: SA_PASSWORD
resources:
limits:
memory: 3G
volumeMounts:
- name: task-pv-storage-primary
mountPath: /var/opt/mssql
hostname: mssql-primary