Skip to content

Commit 8c9b89e

Browse files
committed
[hi] add example pod ecurity/seccomp/alpha
1 parent 583a832 commit 8c9b89e

File tree

4 files changed

+64
-0
lines changed

4 files changed

+64
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: audit-pod
5+
labels:
6+
app: audit-pod
7+
annotations:
8+
seccomp.security.alpha.kubernetes.io/pod: localhost/profiles/audit.json
9+
spec:
10+
containers:
11+
- name: test-container
12+
image: hashicorp/http-echo:0.2.3
13+
args:
14+
- "-text=just made some syscalls!"
15+
securityContext:
16+
allowPrivilegeEscalation: false
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: default-pod
5+
labels:
6+
app: default-pod
7+
annotations:
8+
seccomp.security.alpha.kubernetes.io/pod: runtime/default
9+
spec:
10+
containers:
11+
- name: test-container
12+
image: hashicorp/http-echo:0.2.3
13+
args:
14+
- "-text=just made some syscalls!"
15+
securityContext:
16+
allowPrivilegeEscalation: false
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: fine-pod
5+
labels:
6+
app: fine-pod
7+
annotations:
8+
seccomp.security.alpha.kubernetes.io/pod: localhost/profiles/fine-grained.json
9+
spec:
10+
containers:
11+
- name: test-container
12+
image: hashicorp/http-echo:0.2.3
13+
args:
14+
- "-text=just made some syscalls!"
15+
securityContext:
16+
allowPrivilegeEscalation: false
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: violation-pod
5+
labels:
6+
app: violation-pod
7+
annotations:
8+
seccomp.security.alpha.kubernetes.io/pod: localhost/profiles/violation.json
9+
spec:
10+
containers:
11+
- name: test-container
12+
image: hashicorp/http-echo:0.2.3
13+
args:
14+
- "-text=just made some syscalls!"
15+
securityContext:
16+
allowPrivilegeEscalation: false

0 commit comments

Comments
 (0)