-
Notifications
You must be signed in to change notification settings - Fork 0
/
page104-taint.yml
46 lines (46 loc) · 1.05 KB
/
page104-taint.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: tomcat-deploy
labels:
app: tomcat
spec:
replicas: 1
selector:
matchLabels:
app: tomcat
template:
metadata:
labels:
app: tomcat
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: agentpool
operator: In
values:
- app
tolerations:
- key: "foo"
operator: "Equal"
value: "bar"
effect: "NoSchedule"
containers:
- name: tomcat-sample
image: harbor.prodyna.com/training/tomcat-sample:azure-training-5
ports:
- containerPort: 8080
env:
- name: STATIC_VAR
value: "Hello from environment"
resources:
limits:
memory: "1Gi"
cpu: "1"
requests:
memory: "512Mi"
cpu: "0.5"