Created
November 5, 2020 20:08
-
-
Save jsturtevant/b51830b788fdd9c0ffe501a2597d87dd to your computer and use it in GitHub Desktop.
dns startup in windows containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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