k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/test/images/apparmor-loader/example-pod.yaml (about)

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