14 lines
338 B
YAML
14 lines
338 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: run-as-username-pod-demo
|
|
spec:
|
|
securityContext:
|
|
windowsOptions:
|
|
runAsUserName: "ContainerUser"
|
|
containers:
|
|
- name: run-as-username-demo
|
|
image: mcr.microsoft.com/windows/servercore:ltsc2019
|
|
command: ["ping", "-t", "localhost"]
|
|
nodeSelector:
|
|
kubernetes.io/os: windows |