forked from kube-aws/kube-spot-termination-notice-handler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaemonset.yaml
48 lines (48 loc) · 1.23 KB
/
daemonset.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
47
48
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
k8s-app: kube-spot-termination-notice-handler
name: kube-spot-termination-notice-handler
namespace: kube-system
spec:
revisionHistoryLimit: 10
selector:
matchLabels:
k8s-app: kube-spot-termination-notice-handler
template:
metadata:
creationTimestamp: null
labels:
k8s-app: kube-spot-termination-notice-handler
spec:
containers:
- image: hoppinger/kube-spot-termination-notice-handler:1.11.3-1
imagePullPolicy: IfNotPresent
name: kube-spot-termination-notice-handler
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
# resources:
# limits:
# memory: 200Mi
# requests:
# cpu: 100m
# memory: 100Mi
# securityContext:
# runAsUser: 0
nodeSelector:
on-demand: "false"
tolerations:
- effect: NoSchedule
operator: Exists