-
Notifications
You must be signed in to change notification settings - Fork 94
/
webapp.yml
64 lines (64 loc) · 1.6 KB
/
webapp.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
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: webapp-deployment
spec:
selector:
matchLabels:
app: rrod
role: web
environment: production
template:
metadata:
labels:
app: rrod
role: web
environment: production
version: "1.0.0"
spec:
imagePullSecrets:
- name: acrconnection
containers:
- name: webapp-container
image: maarten.azurecr.io/rrod/webapp:latest
ports:
- name: http
containerPort: 80
protocol: TCP
- name: https
containerPort: 443
protocol: TCP
env:
- name: ASPNETCORE_ENVIRONMENT
value: Production
- name: RROD_ClusterId
value: rrod-az
- name: RROD_Id
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: RROD_ConnectionStrings__DataConnectionString
valueFrom:
secretKeyRef:
name: connectionstrings
key: DataConnectionString
- name: RROD_AcmeSettings__EmailAddress
valueFrom:
secretKeyRef:
name: acme-settings
key: EmailAddress
- name: RROD_AcmeSettings__PfxPassword
valueFrom:
secretKeyRef:
name: acme-settings
key: PfxPassword
volumeMounts:
- mountPath: /run/config
name: config
volumes:
- name: config
configMap:
name: webapp-config
items:
- key: webapp-settings
path: Webapp.settings.json