-
Notifications
You must be signed in to change notification settings - Fork 1
/
daemonset.yaml
34 lines (34 loc) · 937 Bytes
/
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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: k8s-spot-termination-handler
namespace: kube-system
labels:
app: k8s-spot-termination-handler
spec:
template:
metadata:
name: k8s-spot-termination-handler
labels:
app: k8s-spot-termination-handler
spec:
# Uncomment the following line if using RBAC
# serviceAccountName: k8s-spot-termination-handler
containers:
- name: k8s-spot-termination-handler
image: docker.io/diseq/k8s-azspot-termination-handler:v0.1.0
imagePullPolicy: IfNotPresent
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
resources:
requests:
cpu: 5m
memory: 20Mi
limits:
cpu: 100m
memory: 100Mi
nodeSelector:
"node-role.kubernetes.io/azspot-worker": "true"