Skip to content

Instantly share code, notes, and snippets.

@chathurawidanage
Created December 18, 2020 22:06
Show Gist options
  • Save chathurawidanage/00d2897c9e3ae2619e13fefd14226f29 to your computer and use it in GitHub Desktop.
Save chathurawidanage/00d2897c9e3ae2619e13fefd14226f29 to your computer and use it in GitHub Desktop.
Running SGX enabled pod
apiVersion: v1
kind: Pod
metadata:
name: shell-demo2
namespace: default
spec:
containers:
- image: tozd/sgx:ubuntu-xenial
imagePullPolicy: IfNotPresent
name: sgx-ubuntu2
command: ["/bin/bash", "-c", "--"]
args: ["while true; do sleep 30; done;"]
securityContext:
privileged: true
volumeMounts:
- mountPath: /var/run/aesmd/aesm.socket
name: aesmsocket
volumes:
- hostPath:
path: /var/run/aesmd/aesm.socket
type: Socket
name: aesmsocket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment