forked from suhwan12/finalproject-argocd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-deployment-user.yaml
47 lines (46 loc) · 1.12 KB
/
front-deployment-user.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: front-deploy-user
spec:
replicas: 2
selector:
matchLabels:
tier: frontend-user
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 0
minReadySeconds: 20
template:
metadata:
name: front-deploy-user
labels:
tier: frontend-user
spec:
containers:
- name: front-app-user
image: suhwan11/frontend-user:14
ports:
- containerPort: 80
protocol: TCP
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: tier
operator: In
values:
- frontend-user
topologyKey: "kubernetes.io/hostname"
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: tier
operator: In
values:
- backend
topologyKey: "kubernetes.io/hostname"