forked from basil1987/primecustomer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoit-frontend-deployment.yaml
35 lines (35 loc) · 1.02 KB
/
coit-frontend-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
apiVersion: apps/v1
kind: Deployment # 1
metadata:
name: coit-frontend
labels:
app: coit-frontend
spec:
selector:
matchLabels:
app: coit-frontend
replicas: 1 # 2
minReadySeconds: 15
strategy:
type: RollingUpdate # 3
rollingUpdate:
maxUnavailable: 1 # 4
maxSurge: 1 # 5
template:
metadata:
labels:
app: coit-frontend # 6
spec:
volumes:
- name: nginx-root
persistentVolumeClaim:
claimName: coit-frontend-fast
containers:
- image: coitlearning/coit-frontend:latest
imagePullPolicy: IfNotPresent # 7
name: coit-frontend
ports:
- containerPort: 80
volumeMounts:
- mountPath: /var/www/html
name: nginx-root