Skip to content

Commit

Permalink
Add seccomp example
Browse files Browse the repository at this point in the history
Signed-off-by: Phil Estes <estesp@gmail.com>
  • Loading branch information
estesp committed Nov 8, 2019
1 parent f7a8f1d commit ae3621a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions k8s/demo.sh
Expand Up @@ -5,3 +5,5 @@ kubectl describe svc/playground-deployment

#forkbomb: :(){ :|: & };:
# playground: http://169.61.166.248:$NODEPORT

# mknod /dev/mtdblock0 b 31 0
25 changes: 25 additions & 0 deletions k8s/playground-deployment-seccomp.yaml
@@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: playground-deployment
labels:
app: playground
spec:
replicas: 1
selector:
matchLabels:
app: playground
template:
metadata:
labels:
app: playground
annotations:
seccomp.security.alpha.kubernetes.io/pod: "localhost/my-seccomp.json"
spec:
containers:
- name: playground
image: us.icr.io/estesp/playground:alpine
ports:
- containerPort: 8080
nodeSelector:
kubernetes.io/hostname: 10.74.31.225

0 comments on commit ae3621a

Please sign in to comment.