Skip to content

Commit fc10469

Browse files
authored
add yaml example for each category (#185)
* add yaml example for each category
1 parent 04a9d41 commit fc10469

File tree

4 files changed

+131
-0
lines changed

4 files changed

+131
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
apiVersion: v1
3+
kind: Pod
4+
metadata:
5+
creationTimestamp: null
6+
labels:
7+
run: secontextpodcat1
8+
app: test
9+
test-network-function.com/generic: target
10+
test-network-function.com/container: target
11+
name: secontextpodcat1
12+
namespace: tnf
13+
spec:
14+
automountServiceAccountToken: false
15+
securityContext:
16+
runAsUser: 1000900000
17+
runAsGroup: 1000900000
18+
fsGroup: 1000900000
19+
containers:
20+
- image: quay.io/testnetworkfunction/cnf-test-partner:latest
21+
name: test
22+
resources: {}
23+
securityContext:
24+
seLinuxOptions:
25+
level: "s0:c30,c15"
26+
capabilities:
27+
drop: ["KILL", "MKNOD", "SETUID", "SETGID"]
28+
allowPrivilegeEscalation: false
29+
readOnlyRootFilesystem: false
30+
privileged: false
31+
dnsPolicy: ClusterFirst
32+
restartPolicy: Always
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
apiVersion: v1
3+
kind: Pod
4+
metadata:
5+
creationTimestamp: null
6+
labels:
7+
run: secontextpodcat1uid0
8+
app: test
9+
test-network-function.com/generic: target
10+
test-network-function.com/container: target
11+
name: secontextpodcat1uid0
12+
namespace: tnf
13+
spec:
14+
automountServiceAccountToken: false
15+
securityContext:
16+
runAsUser: 1000900000
17+
runAsGroup: 1000900000
18+
fsGroup: 1000900000
19+
containers:
20+
- image: quay.io/testnetworkfunction/cnf-test-partner:latest
21+
name: test
22+
resources: {}
23+
securityContext:
24+
seLinuxOptions:
25+
level: "s0:c30,c15"
26+
capabilities:
27+
drop: ["KILL", "MKNOD", "SETUID", "SETGID"]
28+
runAsNonRoot: true
29+
allowPrivilegeEscalation: false
30+
readOnlyRootFilesystem: false
31+
privileged: false
32+
dnsPolicy: ClusterFirst
33+
restartPolicy: Always
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
apiVersion: v1
3+
kind: Pod
4+
metadata:
5+
creationTimestamp: null
6+
labels:
7+
run: secontextpodcat2
8+
app: test
9+
test-network-function.com/generic: target
10+
test-network-function.com/container: target
11+
name: secontextpodcat2
12+
namespace: tnf
13+
spec:
14+
automountServiceAccountToken: false
15+
securityContext:
16+
runAsUser: 1000900000
17+
runAsGroup: 1000900000
18+
fsGroup: 1000900000
19+
containers:
20+
- image: quay.io/testnetworkfunction/cnf-test-partner:latest
21+
name: test
22+
resources: {}
23+
securityContext:
24+
seLinuxOptions:
25+
level: "s0:c30,c15"
26+
capabilities:
27+
drop: ["KILL", "MKNOD", "SETUID", "SETGID"]
28+
add: ["NET_ADMIN", "NET_RAW"]
29+
allowPrivilegeEscalation: false
30+
readOnlyRootFilesystem: false
31+
privileged: false
32+
dnsPolicy: ClusterFirst
33+
restartPolicy: Always
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
apiVersion: v1
3+
kind: Pod
4+
metadata:
5+
creationTimestamp: null
6+
labels:
7+
run: secontextpodcat3
8+
app: test
9+
test-network-function.com/generic: target
10+
test-network-function.com/container: target
11+
name: secontextpodcat3
12+
namespace: tnf
13+
spec:
14+
automountServiceAccountToken: false
15+
securityContext:
16+
runAsUser: 1000900000
17+
runAsGroup: 1000900000
18+
fsGroup: 1000900000
19+
containers:
20+
- image: quay.io/testnetworkfunction/cnf-test-partner:latest
21+
name: test
22+
resources: {}
23+
securityContext:
24+
seLinuxOptions:
25+
level: "s0:c30,c15"
26+
capabilities:
27+
drop: ["KILL", "MKNOD", "SETUID", "SETGID"]
28+
add: ["NET_ADMIN", "NET_RAW", "IPC_LOCK"]
29+
allowPrivilegeEscalation: false
30+
readOnlyRootFilesystem: false
31+
privileged: false
32+
dnsPolicy: ClusterFirst
33+
restartPolicy: Always

0 commit comments

Comments
 (0)