Skip to content

Instantly share code, notes, and snippets.

@jeremyje
Created February 5, 2021 08:44
Show Gist options
  • Select an option

  • Save jeremyje/173132cc4308db751d1cc1cd3d2213bb to your computer and use it in GitHub Desktop.

Select an option

Save jeremyje/173132cc4308db751d1cc1cd3d2213bb to your computer and use it in GitHub Desktop.
Windows Containers
# kubectl apply -f https://gist.githubusercontent.com/jeremyje/173132cc4308db751d1cc1cd3d2213bb/raw/simple.yaml
kind: Pod
apiVersion: v1
metadata:
name: windows-pod-test
spec:
containers:
- name: windows-pod-test
image: mcr.microsoft.com/windows/nanoserver:1809
command:
- powershell.exe
args:
- -c
- "while(echo $true){'sleep 30s' ; sleep 30}"
nodeSelector:
kubernetes.io/os: windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment