-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsql-server.yaml
More file actions
46 lines (44 loc) · 841 Bytes
/
sql-server.yaml
File metadata and controls
46 lines (44 loc) · 841 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: sql-server
namespace: backend
labels:
app: sql-server
spec:
replicas: 1
selector:
matchLabels:
app: sql-server
template:
metadata:
labels:
app: sql-server
spec:
containers:
- name: sql-server
image: mcr.microsoft.com/mssql/server:2019-CU5-ubuntu-18.04
ports:
- containerPort: 1433
resources:
limits:
memory: "2Gi"
cpu: "500m"
env:
- name: SA_PASSWORD
value: petrucCiani1!
- name: ACCEPT_EULA
value: "Y"
---
apiVersion: v1
kind: Service
metadata:
name: sql-server
namespace: backend
spec:
type: ClusterIP #LoadBalancer ClusterIP
ports:
- port: 1433
targetPort: 1433
selector:
app: sql-server