Initial translation for Security Context.

Added the example files.

One small change to fix the broken deployment.
This commit is contained in:
Aris Cahyadi Risdianto
2020-05-12 21:09:27 +08:00
parent b31f2e3bfe
commit cd098561aa
6 changed files with 485 additions and 0 deletions
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Pod
metadata:
name: hello-apparmor
annotations:
# Tell Kubernetes to apply the AppArmor profile "k8s-apparmor-example-deny-write".
# Note that this is ignored if the Kubernetes node is not running version 1.4 or greater.
container.apparmor.security.beta.kubernetes.io/hello: localhost/k8s-apparmor-example-deny-write
spec:
containers:
- name: hello
image: busybox
command: [ "sh", "-c", "echo 'Hello AppArmor!' && sleep 1h" ]