Completed upto lesson 28

This commit is contained in:
Mosiur Rahman
2026-08-23 15:29:06 +06:00
parent fb86f0b60a
commit 8e43c00cd6
104 changed files with 1888 additions and 0 deletions

42
lab/lesson-11-answer.yaml Normal file
View File

@@ -0,0 +1,42 @@
apiVersion: v1
kind: Namespace
metadata:
name: runtime-hardening
---
apiVersion: v1
kind: Pod
metadata:
name: event-forwarder
namespace: runtime-hardening
spec:
volumes:
- name: tmp
emptyDir: {}
securityContext:
runAsUser: 1000
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
appArmorProfile:
type: RuntimeDefault
containers:
- name: forwarder
image: busybox:1.37
command: ["sh","-c","sleep 3600"]
volumeMounts:
- name: tmp
mountPath: /tmp
securityContext:
readOnlyRootFilesystem: true
- name: metrics
image: busybox:1.37
command: ["sh","-c","sleep 3600"]
volumeMounts:
- name: tmp
mountPath: /tmp
securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]