forked from intel/pmem-csi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pmem-kata-app.yaml
28 lines (28 loc) · 1.01 KB
/
pmem-kata-app.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
kind: Pod
apiVersion: v1
metadata:
name: my-csi-kata-app
labels:
io.katacontainers.config.hypervisor.memory_offset: "2147483648" # 2Gi, must be at least as large as the PMEM volume
spec:
# The 'pmem-csi-driver-test' container runs apps as user/group 1000/1000.
# This security context causes permissions of volume mounts
# to be adapted accordingly, see
# https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
securityContext:
fsGroup: 1000
# see https://github.com/kata-containers/packaging/tree/1.11.0-rc0/kata-deploy#run-a-sample-workload
runtimeClassName: kata-qemu
nodeSelector:
katacontainers.io/kata-runtime: "true"
containers:
- name: my-frontend
image: intel/pmem-csi-driver-test:canary
command: [ "sleep", "100000" ]
volumeMounts:
- mountPath: "/data"
name: my-csi-volume
volumes:
- name: my-csi-volume
persistentVolumeClaim:
claimName: pmem-csi-pvc-kata # see pmem-kata-pvc.yaml