Skip to content

Instantly share code, notes, and snippets.

@lanoxx
Created April 27, 2019 10:10
Show Gist options
  • Select an option

  • Save lanoxx/5e3540c1698dbb7e48101113b4c93090 to your computer and use it in GitHub Desktop.

Select an option

Save lanoxx/5e3540c1698dbb7e48101113b4c93090 to your computer and use it in GitHub Desktop.
kubectl describe pod win-webserver-d6f9ff4bf-ckl76
Name: win-webserver-d6f9ff4bf-ckl76
Namespace: default
Node: windowsnode/192.168.254.9
Start Time: Sat, 27 Apr 2019 10:02:50 +0200
Labels: app=win-webserver
name=win-webserver
pod-template-hash=d6f9ff4bf
Annotations: ovn: {"ip_address":"10.245.10.4/24", "mac_address":"0a:00:00:00:00:17", "gateway_ip": "10.245.10.1"}
Status: Pending
IP:
Controlled By: ReplicaSet/win-webserver-d6f9ff4bf
Containers:
windowswebserver:
Container ID:
Image: mcr.microsoft.com/windows/servercore:1809
Image ID:
Port: <none>
Host Port: <none>
Command:
powershell.exe
-command
<#code used from https://gist.github.com/wagnerandrade/5424431#> ; $$listener = New-Object System.Net.HttpListener ; $$listener.Prefixes.Add('http://*:80/') ; $$listener.Start() ; $$callerCounts = @{} ; Write-Host('Listening at http://*:80/') ; while ($$listener.IsListening) { ;$$context = $$listener.GetContext() ;$$requestUrl = $$context.Request.Url ;$$clientIP = $$context.Request.RemoteEndPoint.Address ;$$response = $$context.Response ;Write-Host '' ;Write-Host('> {0}' -f $$requestUrl) ; ;$$count = 1 ;$$k=$$callerCounts.Get_Item($$clientIP) ;if ($$k -ne $$null) { $$count += $$k } ;$$callerCounts.Set_Item($$clientIP, $$count) ;$$ip=(Get-NetAdapter | Get-NetIpAddress); $$header='<html><body><H1>Windows Container Web Server</H1>' ;$$callerCountsString='' ;$$callerCounts.Keys | % { $$callerCountsString+='<p>IP {0} callerCount {1} ' -f $$ip[1].IPAddress,$$callerCounts.Item($$_) } ;$$footer='</body></html>' ;$$content='{0}{1}{2}' -f $$header,$$callerCountsString,$$footer ;Write-Output $$content ;$$buffer = [System.Text.Encoding]::UTF8.GetBytes($$content) ;$$response.ContentLength64 = $$buffer.Length ;$$response.OutputStream.Write($$buffer, 0, $$buffer.Length) ;$$response.Close() ;$$responseStatus = $$response.StatusCode ;Write-Host('< {0}' -f $$responseStatus) } ;
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-65525 (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
default-token-65525:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-65525
Optional: false
QoS Class: BestEffort
Node-Selectors: beta.kubernetes.io/os=windows
Tolerations: os=windows:NoSchedule
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedCreatePodSandBox 29m (x4126 over 124m) kubelet, windowsnode (combined from similar events): Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "db58317b1945196ab30b913a3f981e39832fadc11a3e77ba0ce63702804e420a" network for pod "win-webserver-d6f9ff4bf-ckl76": NetworkPlugin cni failed to set up pod "win-webserver-d6f9ff4bf-ckl76_default" network: CNI request failed with status 400: 'Nil response to CNI request
'
Normal SandboxChanged 14m (x4799 over 124m) kubelet, windowsnode Pod sandbox changed, it will be killed and re-created.
Warning FailedSync 9m34s kubelet, windowsnode error determining status: rpc error: code = Unknown desc = Error: No such container: 1b11c1f1ceaf5664226ab2b66c6d62db2ab78c780dd0cc3f55b7d36d67f921b9
Warning FailedCreatePodSandBox 9m31s kubelet, windowsnode Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "b7330c5cedd7efeeb541cb9e3a2b36a363e95b6a162fa0e1d3c8bbbabda2c92c" network for pod "win-webserver-d6f9ff4bf-ckl76": NetworkPlugin cni failed to set up pod "win-webserver-d6f9ff4bf-ckl76_default" network: CNI request failed with status 400: 'Nil response to CNI request
'
Warning FailedCreatePodSandBox 9m29s kubelet, windowsnode Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "e4e398ccd81f33cec3ce78fa41e8a7ff8fff47c85fdf34a8eace3ca11644fbdb" network for pod "win-webserver-d6f9ff4bf-ckl76": NetworkPlugin cni failed to set up pod "win-webserver-d6f9ff4bf-ckl76_default" network: CNI request failed with status 400: 'Nil response to CNI request
'
Warning FailedCreatePodSandBox 9m28s kubelet, windowsnode Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "02ce35f552135e24a69008c6868aac8754a418ca27a275f5649a018263c8f579" network for pod "win-webserver-d6f9ff4bf-ckl76": NetworkPlugin cni failed to set up pod "win-webserver-d6f9ff4bf-ckl76_default" network: CNI request failed with status 400: 'Nil response to CNI request
'
Warning FailedCreatePodSandBox 9m26s kubelet, windowsnode Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "005da7b6a335767ba483a5c84eea3f94687f4950e4047f4cbb0c9b9e8109b462" network for pod "win-webserver-d6f9ff4bf-ckl76": NetworkPlugin cni failed to set up pod "win-webserver-d6f9ff4bf-ckl76_default" network: CNI request failed with status 400: 'Nil response to CNI request
'
Warning FailedCreatePodSandBox 9m25s kubelet, windowsnode Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "4c0d172207e330c01ed2f9839249021abc2050e94376ee7618d6b1135970c39b" network for pod "win-webserver-d6f9ff4bf-ckl76": NetworkPlugin cni failed to set up pod "win-webserver-d6f9ff4bf-ckl76_default" network: CNI request failed with status 400: 'Nil response to CNI request
'
Warning FailedCreatePodSandBox 9m24s kubelet, windowsnode Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "04e27ec3f6656f493741a79e212b1e2db4c8bd70f45dd0bcf7483d470aa87629" network for pod "win-webserver-d6f9ff4bf-ckl76": NetworkPlugin cni failed to set up pod "win-webserver-d6f9ff4bf-ckl76_default" network: CNI request failed with status 400: 'Nil response to CNI request
'
Warning FailedCreatePodSandBox 9m21s kubelet, windowsnode Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "fffeb4ab59e06e10b577e2b9f547dcc8575bbc0e19625a12958bf1903bb3623e" network for pod "win-webserver-d6f9ff4bf-ckl76": NetworkPlugin cni failed to set up pod "win-webserver-d6f9ff4bf-ckl76_default" network: CNI request failed with status 400: 'Nil response to CNI request
'
Warning FailedCreatePodSandBox 9m20s kubelet, windowsnode Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "416e8f4c3f5f62efc7972dc2d249dbf1c0d1a4a052b47f4c9b2373709a296ff7" network for pod "win-webserver-d6f9ff4bf-ckl76": NetworkPlugin cni failed to set up pod "win-webserver-d6f9ff4bf-ckl76_default" network: CNI request failed with status 400: 'Nil response to CNI request
'
Warning FailedCreatePodSandBox 9m18s kubelet, windowsnode Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "b2b7bcc615710f76366bfca2d6eb784f2ebf7700aba00e4fce15b7c13004317c" network for pod "win-webserver-d6f9ff4bf-ckl76": NetworkPlugin cni failed to set up pod "win-webserver-d6f9ff4bf-ckl76_default" network: CNI request failed with status 400: 'Nil response to CNI request
'
Warning FailedCreatePodSandBox 9m14s (x3 over 9m17s) kubelet, windowsnode (combined from similar events): Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "61c4a74e98e97e85722deff3739c86e8bfb04e9146eb16c835b2f30de33284b9" network for pod "win-webserver-d6f9ff4bf-ckl76": NetworkPlugin cni failed to set up pod "win-webserver-d6f9ff4bf-ckl76_default" network: CNI request failed with status 400: 'Nil response to CNI request
'
Normal SandboxChanged 4m34s (x188 over 9m32s) kubelet, windowsnode Pod sandbox changed, it will be killed and re-created.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment