example-pod.yaml 572 B

1234567891011121314151617181920
  1. # The example Pod utilizing the profile loaded by the sample daemon.
  2. apiVersion: v1
  3. kind: Pod
  4. metadata:
  5. name: nginx-apparmor
  6. # Note that the Pod does not need to be in the same namespace as the loader.
  7. labels:
  8. app: nginx
  9. annotations:
  10. # Tell Kubernetes to apply the AppArmor profile "k8s-nginx".
  11. # Note that this is ignored if the Kubernetes node is not running version 1.4 or greater.
  12. container.apparmor.security.beta.kubernetes.io/nginx: localhost/k8s-nginx
  13. spec:
  14. containers:
  15. - name: nginx
  16. image: nginx
  17. ports:
  18. - containerPort: 80