-
Notifications
You must be signed in to change notification settings - Fork 5
/
aws-nitro-enclaves-k8s-ds.yaml
65 lines (65 loc) · 1.63 KB
/
aws-nitro-enclaves-k8s-ds.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
apiVersion: v1
kind: Namespace
metadata:
name: nitro-enclaves
labels:
name: nitro-enclaves
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: aws-nitro-enclaves-k8s-daemonset
namespace: kube-system
labels:
name: aws-nitro-enclaves-k8s-dp
role: agent
spec:
selector:
matchLabels:
name: aws-nitro-enclaves-k8s-dp
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
name: aws-nitro-enclaves-k8s-dp
annotations:
node.kubernetes.io/bootstrap-checkpoint: "true"
spec:
nodeSelector:
aws-nitro-enclaves-k8s-dp: enabled
priorityClassName: "system-node-critical"
hostname: aws-nitro-enclaves-k8s-dp
containers:
- name: aws-nitro-enclaves-k8s-dp
image: public.ecr.aws/aws-nitro-enclaves/aws-nitro-enclaves-k8s-device-plugin:latest
imagePullPolicy: Always
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
resources:
limits:
cpu: 100m
memory: 15Mi
requests:
cpu: 10m
memory: 15Mi
volumeMounts:
- name: device-plugin
mountPath: /var/lib/kubelet/device-plugins
- name: dev-dir
mountPath: /dev
- name: sys-dir
mountPath: /sys
volumes:
- name: device-plugin
hostPath:
path: /var/lib/kubelet/device-plugins
- name: dev-dir
hostPath:
path: /dev
- name: sys-dir
hostPath:
path: /sys
terminationGracePeriodSeconds: 30