forked from intel/BigDL-PPML-Azure-Occlum-Example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
driver.yaml
38 lines (38 loc) · 812 Bytes
/
driver.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
apiVersion: v1
kind: Pod
metadata:
name: spark-deployment
namespace: default
spec:
containers:
- name: spark-example
imagePullPolicy: Never
volumeMounts:
- name: device-plugin
mountPath: /var/lib/kubelet/device-plugins
- name: aesm
mountPath: /var/run/aesmd
securityContext:
privileged: true
env:
- name: DRIVER_MEMORY
value: "1GB"
- name: SGX_MEM_SIZE
value: "8GB"
- name: SGX_THREAD
value: "256"
- name: SGX_HEAP
value: "1GB"
- name: SGX_KERNEL_HEAP
value: "1GB"
- name: AZDCAP_DEBUG_LOG_LEVEL
value: "fatal"
- name: FS_TYPE
value: "hostfs"
volumes:
- name: device-plugin
hostPath:
path: /var/lib/kubelet/device-plugins
- name: aesm
hostPath:
path: /var/run/aesmd