-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp-deployment.yaml
79 lines (79 loc) · 1.34 KB
/
app-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: windmill-app
labels:
app: web
spec:
replicas: 1
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
containers:
- name: web
image: contosorenewableenergy.azurecr.io/contosorenewableenergywindfarmmonitoring:20220413171654
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: windmill-service
spec:
selector:
app: web
type: LoadBalancer
ports:
- protocol: TCP
port: 80
targetPort: 80
---
apiVersion: v1
data:
password: U2VhdHRsZTgwMA==
username: YXJjYWRtaW4=
kind: Secret
metadata:
name: db-login-secret
type: Opaque
---
apiVersion: sql.arcdata.microsoft.com/v4
kind: SqlManagedInstance
metadata:
name: db
spec:
dev: true
licenseType: LicenseIncluded
tier: GeneralPurpose
security:
adminLoginSecret: db-login-secret
scheduling:
default:
resources:
limits:
cpu: "2"
memory: 4Gi
requests:
cpu: "1"
memory: 2Gi
services:
primary:
type: LoadBalancer
storage:
data:
volumes:
- className: default
size: 5Gi
datalogs:
volumes:
- className: default
size: 5Gi
logs:
volumes:
- className: default
size: 5Gi