Skip to content

Instantly share code, notes, and snippets.

@jsturtevant
Last active January 15, 2019 16:51
Show Gist options
  • Save jsturtevant/085fd5c8515c8e8f49858a6b0d092f74 to your computer and use it in GitHub Desktop.
Save jsturtevant/085fd5c8515c8e8f49858a6b0d092f74 to your computer and use it in GitHub Desktop.
dns checks
apiVersion: v1
kind: Pod
metadata:
labels:
test: liveness
name: dns-liveness-windows
spec:
containers:
- name: dns-liveness
image: mcr.microsoft.com/windows/servercore:1809
args:
- powershell
- "-command"
- "while ($true){ Start-Sleep -s 5; echo 'sleeping'}"
livenessProbe:
exec:
command:
- nslookup
- bbc.co.uk
initialDelaySeconds: 5
periodSeconds: 5
nodeSelector:
beta.kubernetes.io/os: windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment