-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathworkload.yaml
37 lines (37 loc) · 975 Bytes
/
workload.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: workload-multi-az-nodes
spec:
replicas: 30
selector:
matchLabels:
app: workload-multi-az-nodes
template:
metadata:
labels:
app: workload-multi-az-nodes
spec:
nodeSelector:
intent: apps
containers:
- name: workload-multi-az-nodes
image: public.ecr.aws/eks-distro/kubernetes/pause:3.7
imagePullPolicy: Always
resources:
requests:
cpu: 512m
memory: 512Mi
topologySpreadConstraints:
- labelSelector:
matchLabels:
app: workload-multi-az-nodes
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
- labelSelector:
matchLabels:
app: workload-multi-az-nodes
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway