-
Notifications
You must be signed in to change notification settings - Fork 205
/
Copy pathintel-sgx-plugin.yaml
65 lines (65 loc) · 1.61 KB
/
intel-sgx-plugin.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: apps/v1
kind: DaemonSet
metadata:
name: intel-sgx-plugin
labels:
app: intel-sgx-plugin
spec:
selector:
matchLabels:
app: intel-sgx-plugin
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
template:
metadata:
labels:
app: intel-sgx-plugin
spec:
automountServiceAccountToken: false
containers:
- name: intel-sgx-plugin
image: intel/intel-sgx-plugin:devel
securityContext:
seLinuxOptions:
type: "container_device_plugin_t"
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
imagePullPolicy: IfNotPresent
resources:
requests:
memory: "15Mi"
cpu: 40m
limits:
memory: "30Mi"
cpu: 100m
volumeMounts:
- name: kubeletsockets
mountPath: /var/lib/kubelet/device-plugins
- name: sgx-enclave
mountPath: /dev/sgx_enclave
readOnly: true
- name: sgx-provision
mountPath: /dev/sgx_provision
readOnly: true
volumes:
- name: kubeletsockets
hostPath:
path: /var/lib/kubelet/device-plugins
- name: sgx-enclave
hostPath:
path: /dev/sgx_enclave
type: CharDevice
- name: sgx-provision
hostPath:
path: /dev/sgx_provision
type: CharDevice
nodeSelector:
kubernetes.io/arch: amd64