forked from rkamath1/EventsOnContainer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
events-on-container-sql.yaml
81 lines (81 loc) · 1.51 KB
/
events-on-container-sql.yaml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: catalogdb
spec:
replicas: 1
template:
metadata:
labels:
app: catalogdb
spec:
containers:
- name: catalogdb
image: microsoft/mssql-server-linux:latest
ports:
- containerPort: 1433
name: mssqlserver
env:
- name: ACCEPT_EULA
value: "Y"
- name: SA_PASSWORD
value: "ProductApi(!)"
---
apiVersion: v1
kind: Service
metadata:
name: catalogdb
spec:
ports:
- port: 1433
selector:
app: catalogdb
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: catalogapi
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
minReadySeconds: 5
template:
metadata:
labels:
app: catalogapi
spec:
containers:
- name: catalogapi
image: eventsacr.azurecr.io/events/catalogapi:v1
ports:
- containerPort: 80
resources:
requests:
cpu: 250m
limits:
cpu: 500m
env:
- name: DatabaseServer
value: "catalogdb"
- name: DatabaseName
value: "CatalogDb"
- name: DatabaseUser
value: "sa"
- name: DatabasePassword
value: "ProductApi(!)"
- name: ExternalCatalogBaseUrl
value: "http://localhost:80"
---
apiVersion: v1
kind: Service
metadata:
name: catalogapi
spec:
type: LoadBalancer
ports:
- port: 80
selector:
app: catalogapi