github.com/datreeio/datree@v1.9.22-rc/pkg/policy/tests/85/fail/85-fail.yaml (about) 1 apiVersion: v1 2 kind: Pod 3 metadata: 4 name: run-as-username-pod-demo 5 spec: 6 securityContext: 7 windowsOptions: 8 runAsUserName: "ContainerUser" 9 hostProcess: true 10 containers: 11 - name: run-as-username-demo 12 image: mcr.microsoft.com/windows/servercore:ltsc2019 13 command: ["ping", "-t", "localhost"] 14 nodeSelector: 15 kubernetes.io/os: windows