Skip to content

Latest commit

 

History

History
executable file
·
43 lines (30 loc) · 1.01 KB

20-Implement-Seccomp-in-Kubernetes.md

File metadata and controls

executable file
·
43 lines (30 loc) · 1.01 KB

Implement Seccomp in Kubernetes

In this section, we will take a look at Implement Seccomp in Kubernetes.

Seccomp in Docker

docker run r.j3ss.co/amicontained amicontained

seccompDocker

Seccomp in Kubernetes

kubectl run amicontained --image r.j3ss.co/amicontained amicontained -- amicontained

kubectl logs amicontained

seccompK8s

apiVersion: v1
kind: Pod
metadata:
  labels:
    run: amicontained
  name: amicontained
spec:
  securityContext:
    seccompProfile:
      type: RuntimeDefault
  containers:
  - args:
    - amicontained
    image: r.j3ss.co/amicontained
    name: amicontained
    securityContext:
      allowPrivilegeEscalation: false

seccompk8sPod

References