-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yml
39 lines (39 loc) · 1 KB
/
deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: dev-aspnet-webapp
namespace: dev-aspnet-app
labels:
app: dev-aspnet-webapp
spec:
replicas: 1
template:
metadata:
name: dev-aspnet-webapp
labels:
app: dev-aspnet-webapp
spec:
nodeSelector:
"kubernetes.io/os": windows
containers:
- name: dev-aspnet-webapp
image: acrmediawestus3.azurecr.io/dev-aspnet4.8-repo:($tag)
imagePullPolicy: Always
ports:
- name: http
containerPort: 80
protocol: TCP
- name: https
containerPort: 443
protocol: TCP
# volumeMounts:
# - name: azurefileshare
# #mountPath: /var/www/html/wp-content/uploads
# mountPath: "c:/inetpub/wwwroot/img"
# volumes:
# - name: azurefileshare
# persistentVolumeClaim:
# claimName: azurefileaspnet
selector:
matchLabels:
app: dev-aspnet-webapp