Skip to content

Instantly share code, notes, and snippets.

@jsturtevant
Created November 5, 2020 20:08
Show Gist options
  • Save jsturtevant/b51830b788fdd9c0ffe501a2597d87dd to your computer and use it in GitHub Desktop.
Save jsturtevant/b51830b788fdd9c0ffe501a2597d87dd to your computer and use it in GitHub Desktop.
dns startup in windows containers
apiVersion: v1
kind: Pod
metadata:
name: dns-resolve
spec:
containers:
- name: test-resolve
image: mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019
command: ["powershell.exe"]
args: ["/C", "for ($num = 1 ; $num -le 10000 ; $num++){ resolve-dnsname google.com }"]
restartPolicy: Always
nodeSelector:
"kubernetes.io/os": windows
tolerations:
- key: ""
operator: "Exists"
effect: "NoSchedule"
---
apiVersion: v1
kind: Pod
metadata:
name: dns
spec:
containers:
- name: test
image: mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019
command: ["cmd.exe"]
args: ["/C", "for /l %x in (1, 1, 1000000) do nslookup google.com"]
restartPolicy: Always
nodeSelector:
"kubernetes.io/os": windows
tolerations:
- key: ""
operator: "Exists"
effect: "NoSchedule"
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment