Skip to content

Instantly share code, notes, and snippets.

@anfernee
Created January 23, 2021 01:39
Show Gist options
  • Save anfernee/9c3cfe9455b2d315b2a21b60c9752087 to your computer and use it in GitHub Desktop.
Save anfernee/9c3cfe9455b2d315b2a21b60c9752087 to your computer and use it in GitHub Desktop.
Useful k8s yamls
apiVersion: apps/v1
kind: Deployment
metadata:
name: windows-powershell
labels:
app: windows-powershell
spec:
replicas: 1
selector:
matchLabels:
app: windows-powershell
template:
metadata:
labels:
app: windows-powershell
spec:
nodeSelector:
kubernetes.io/os: windows
containers:
- name: test
command:
- powershell.exe
- -command
- "while ($true) { Start-Sleep -Seconds 10; }"
# image: stefanscherer/curl-windows:latest
image: mcr.microsoft.com/windows/servercore:ltsc2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment