[EKS] [Windows]: iis example
While following along the preview docs ran into the following error:
Failed create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "8e53291f84432583cc8a9e262c7c99295f9b42565a262a5d8cd97656677792e5" network for pod "windows-server-iis-7dcfc7c79b-khh4r": NetworkPlugin cni failed to set up pod "windows-server-iis-7dcfc7c79b-khh4r_default" network: failed to parse Kubernetes args: pod does not have label vpc.amazonaws.com/PrivateIPv4Address, failed to clean up sandbox container "8e53291f84432583cc8a9e262c7c99295f9b42565a262a5d8cd97656677792e5" network for pod "windows-server-iis-7dcfc7c79b-khh4r": NetworkPlugin cni failed to teardown pod "windows-server-iis-7dcfc7c79b-khh4r_default" network: failed to parse Kubernetes args: pod does not have label vpc.amazonaws.com/PrivateIPv4Address]
Also noticed aws-node pods and kube-proxy (vpc-admission-controller is running fine however) pods failing as well:
Failed create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "aws-node-8mrzp": Error response from daemon: network host not found
@cdenneen Thanks a lot for reporting this. Could you please confirm if both the vpc-resource-controller and vpc-admission-webhook pods are running?
The logs from these components should help diagnose the problem.
@vsiddharth yes both are running
vpc-resource-collector
I0329 15:27:52.608532 1 main.go:66] Initializing vpc-resource-controller version beta.
I0329 15:27:52.608976 1 controller.go:73] Creating controller with config &{Client:{master: Kubeconfig:} WorkerCount:4 Resources:map[vpc.amazonaws.com/ENI:0x1e7f7c0 vpc.amazonaws.com/PrivateIPv4Address:0x1e7f800] NodeSelector:map[beta.kubernetes.io/os:windows]}.
I0329 15:27:52.609012 1 controller.go:179] Creating Kubernetes client using in-cluster config.
I0329 15:27:52.612952 1 controller.go:202] Created Kubernetes client.
I0329 15:27:52.618280 1 controller.go:210] Initializing resource provider vpc.amazonaws.com/ENI.
I0329 15:27:52.618298 1 controller.go:210] Initializing resource provider vpc.amazonaws.com/PrivateIPv4Address.
I0329 15:27:52.618347 1 controller.go:131] Controller is starting.
I0329 15:27:52.618368 1 watcher.go:111] Node watcher is starting.
I0329 15:27:52.718525 1 watcher.go:122] Node watcher cache synced.
I0329 15:27:52.718597 1 watcher.go:131] Node watcher worker 1 started.
I0329 15:27:52.718616 1 watcher.go:181] Node watcher processing node ip-10-100-100-100.ec2.internal.
I0329 15:27:52.718628 1 manager.go:106] Node manager adding node ip-10-100-100-100.ec2.internal with instanceID i-xxxxxxxxxxxxxxx.
I0329 15:27:52.718665 1 watcher.go:110] Pod watcher is starting.
I0329 15:27:52.718636 1 manager.go:141] Node manager added node {name:ip-10-100-100-100.ec2.internal instanceID:i-xxxxxxxxxxxxxxx instanceType: os:linux managed:false}.
I0329 15:27:52.718688 1 watcher.go:190] Node watcher completed processing node ip-10-100-100-100.ec2.internal.
I0329 15:27:52.718704 1 watcher.go:181] Node watcher processing node ip-10-100-100-100.ec2.internal.
I0329 15:27:52.718710 1 manager.go:106] Node manager adding node ip-10-100-100-100.ec2.internal with instanceID i-xxxxxxxxxxxxxxx.
I0329 15:27:52.718718 1 manager.go:141] Node manager added node {name:ip-10-100-100-100.ec2.internal instanceID:i-xxxxxxxxxxxxxxx instanceType: os:linux managed:false}.
I0329 15:27:52.718726 1 watcher.go:190] Node watcher completed processing node ip-10-100-100-100.ec2.internal.
I0329 15:27:52.718849 1 watcher.go:181] Node watcher processing node ip-10-100-100-100.ec2.internal.
I0329 15:27:52.718998 1 manager.go:106] Node manager adding node ip-10-100-100-100.ec2.internal with instanceID i-xxxxxxxxxxxxxxx.
I0329 15:27:52.719035 1 manager.go:141] Node manager added node {name:ip-10-100-100-100.ec2.internal instanceID:i-xxxxxxxxxxxxxxx instanceType: os:linux managed:false}.
I0329 15:27:52.719082 1 watcher.go:190] Node watcher completed processing node ip-10-100-100-100.ec2.internal.
I0329 15:27:52.719102 1 watcher.go:181] Node watcher processing node ip-10-100-100-100.ec2.internal.
I0329 15:27:52.719110 1 manager.go:106] Node manager adding node ip-10-100-100-100.ec2.internal with instanceID i-xxxxxxxxxxxxxxx.
I0329 15:27:52.818781 1 watcher.go:121] Pod watcher cache synced.
I0329 15:27:52.818825 1 watcher.go:130] Pod watcher worker 1 started.
I0329 15:27:52.818846 1 manager.go:88] Node manager is starting.
I0329 15:27:52.818891 1 controller.go:155] Controller started.
I0329 15:27:52.894631 1 ipaddress.go:77] IPAddressProvider initialized instance i-xxxxxxxxxxxxxxx resource pool {Capacity:5 InUse:map[10.100.100.100:node] Warm:[10.100.100.100 10.100.100.100 10.100.100.100] Pending:0}.
I0329 15:27:52.894666 1 manager.go:190] Node manager advertising resource vpc.amazonaws.com/PrivateIPv4Address quantity 5 on node ip-10-100-100-100.ec2.internal.
I0329 15:27:52.906238 1 eni.go:69] ENIProvider initialized instance i-xxxxxxxxxxxxxxx resource pool {Capacity:1 InUse:map[eni-xxxxxxxxxxxxxxx:node] Warm:[] Pending:0}.
I0329 15:27:52.906271 1 manager.go:190] Node manager advertising resource vpc.amazonaws.com/ENI quantity 1 on node ip-10-100-100-100.ec2.internal.
I0329 15:27:52.915920 1 manager.go:141] Node manager added node {name:ip-10-100-100-100.ec2.internal instanceID:i-xxxxxxxxxxxxxxx instanceType:t2.medium os:windows managed:true}.
I0329 15:27:52.915957 1 watcher.go:190] Node watcher completed processing node ip-10-100-100-100.ec2.internal.
I0329 15:27:52.915970 1 watcher.go:181] Node watcher processing node ip-10-100-100-100.ec2.internal.
I0329 15:27:52.915983 1 watcher.go:190] Pod watcher ignoring pod portworx-f7xjn on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:52.915996 1 manager.go:106] Node manager adding node ip-10-100-100-100.ec2.internal with instanceID ixxxxxxxxxxxxxxx.
I0329 15:27:53.021013 1 ipaddress.go:77] IPAddressProvider initialized instance ixxxxxxxxxxxxxxx resource pool {Capacity:5 InUse:map[10.100.100.100:node] Warm:[10.100.100.176 10.100.100.225 10.100.100.100] Pending:0}.
I0329 15:27:53.021085 1 manager.go:190] Node manager advertising resource vpc.amazonaws.com/PrivateIPv4Address quantity 5 on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.031326 1 eni.go:69] ENIProvider initialized instance ixxxxxxxxxxxxxxx resource pool {Capacity:1 InUse:map[enixxxxxxxxxxxxxxx:node] Warm:[] Pending:0}.
I0329 15:27:53.031349 1 manager.go:190] Node manager advertising resource vpc.amazonaws.com/ENI quantity 1 on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.041903 1 manager.go:141] Node manager added node {name:ip-10-100-100-100.ec2.internal instanceID:ixxxxxxxxxxxxxxx instanceType:t2.medium os:windows managed:true}.
I0329 15:27:53.041936 1 watcher.go:190] Node watcher completed processing node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.041950 1 watcher.go:181] Node watcher processing node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.041954 1 watcher.go:190] Pod watcher ignoring pod portworx-kgjtb on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.041958 1 manager.go:106] Node manager adding node ip-10-100-100-100.ec2.internal with instanceID ixxxxxxxxxxxxxxx.
I0329 15:27:53.158391 1 eni.go:69] ENIProvider initialized instance ixxxxxxxxxxxxxxx resource pool {Capacity:1 InUse:map[enixxxxxxxxxxxxxxx:node] Warm:[] Pending:0}.
I0329 15:27:53.158420 1 manager.go:190] Node manager advertising resource vpc.amazonaws.com/ENI quantity 1 on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.168204 1 ipaddress.go:77] IPAddressProvider initialized instance ixxxxxxxxxxxxxxx resource pool {Capacity:5 InUse:map[10.100.100.100:node] Warm:[10.100.52.5 10.100.52.150 10.100.100.100] Pending:0}.
I0329 15:27:53.168225 1 manager.go:190] Node manager advertising resource vpc.amazonaws.com/PrivateIPv4Address quantity 5 on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424444 1 manager.go:141] Node manager added node {name:ip-10-100-100-100.ec2.internal instanceID:ixxxxxxxxxxxxxxx instanceType:t2.medium os:windows managed:true}.
I0329 15:27:53.424474 1 watcher.go:190] Node watcher completed processing node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424487 1 watcher.go:194] Pod watcher processing pod portworx-bnnjx on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424494 1 watcher.go:236] Pod watcher completed processing pod portworx-bnnjx.
I0329 15:27:53.424505 1 watcher.go:190] Pod watcher ignoring pod aws-node-44jbk on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424520 1 watcher.go:194] Pod watcher processing pod portworx-vrg5m on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424526 1 watcher.go:236] Pod watcher completed processing pod portworx-vrg5m.
I0329 15:27:53.424533 1 watcher.go:190] Pod watcher ignoring pod datadog-monitoring-nsqxx on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424539 1 watcher.go:194] Pod watcher processing pod kube2ia100-wfngl on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424549 1 watcher.go:236] Pod watcher completed processing pod kube2ia100-wfngl.
I0329 15:27:53.424556 1 watcher.go:190] Pod watcher ignoring pod sensu-client-pnxmj on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424566 1 watcher.go:194] Pod watcher processing pod aws-node-sdm7q on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424580 1 watcher.go:236] Pod watcher completed processing pod aws-node-sdm7q.
I0329 15:27:53.424590 1 watcher.go:194] Pod watcher processing pod aws-node-pf6xs on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424595 1 watcher.go:236] Pod watcher completed processing pod aws-node-pf6xs.
I0329 15:27:53.424601 1 watcher.go:190] Pod watcher ignoring pod stork-scheduler-8c756ddf6-7j6zj on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424608 1 watcher.go:190] Pod watcher ignoring pod stork-scheduler-8c756ddf6-mpgdn on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424615 1 watcher.go:194] Pod watcher processing pod portworx-j4gbz on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424620 1 watcher.go:236] Pod watcher completed processing pod portworx-j4gbz.
I0329 15:27:53.424627 1 watcher.go:190] Pod watcher ignoring pod myingress-nginx-ingress-default-backend-6cd45fddcf-8rjx4 on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424634 1 watcher.go:190] Pod watcher ignoring pod datadog-monitoring-cluster-agent-88664b4b-bkgdf on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424645 1 watcher.go:190] Pod watcher ignoring pod portworx-pvc-controller-76c4cd9cc4-c9sdr on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424652 1 watcher.go:190] Pod watcher ignoring pod kube-proxy-ctcj8 on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424664 1 watcher.go:190] Pod watcher ignoring pod portworx-v59tm on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424671 1 watcher.go:190] Pod watcher ignoring pod kube2ia100-rs8d7 on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424685 1 watcher.go:190] Pod watcher ignoring pod monitoring-influxdb-cc95575b9-hsjdn on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424692 1 watcher.go:190] Pod watcher ignoring pod sensu-client-cxkvq on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424699 1 watcher.go:194] Pod watcher processing pod kube-proxy-4jzzn on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424704 1 watcher.go:236] Pod watcher completed processing pod kube-proxy-4jzzn.
I0329 15:27:53.424712 1 watcher.go:190] Pod watcher ignoring pod gitlab-runner-gitlab-runner-6965646dcc-mswh9 on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424719 1 watcher.go:190] Pod watcher ignoring pod runner-xw3rwuyb-project-675-concurrent-0sptm5 on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424730 1 watcher.go:190] Pod watcher ignoring pod px-lighthouse-774bd64b44-wzp6j on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424737 1 watcher.go:190] Pod watcher ignoring pod kube-proxy-7tr8m on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424750 1 watcher.go:190] Pod watcher ignoring pod prometheus-node-exporter-s4qnq on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.424756 1 watcher.go:194] Pod watcher processing pod windows-server-iis-7dcfc7c79b-4rtgf on node ip-10-100-100-100.ec2.internal.
E0329 15:27:53.424764 1 watcher.go:211] Pod watcher found preallocated resource vpc.amazonaws.com/PrivateIPv4Address 10.100.52.5 for pod windows-server-iis-7dcfc7c79b-4rtgf on node ip-10-100-100-100.ec2.internal
I0329 15:27:53.425322 1 manager.go:234] Node manager allocated resource vpc.amazonaws.com/PrivateIPv4Address 10.100.52.5 for pod windows-server-iis-7dcfc7c79b-4rtgf on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425336 1 watcher.go:236] Pod watcher completed processing pod windows-server-iis-7dcfc7c79b-4rtgf.
I0329 15:27:53.425347 1 watcher.go:194] Pod watcher processing pod kube-proxy-xhsjk on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425353 1 watcher.go:236] Pod watcher completed processing pod kube-proxy-xhsjk.
I0329 15:27:53.425360 1 watcher.go:190] Pod watcher ignoring pod kube-dns-64b69465b4-sgtcs on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425370 1 watcher.go:190] Pod watcher ignoring pod kube2ia100-jx2ft on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425378 1 watcher.go:190] Pod watcher ignoring pod aws-node-mc8hg on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425388 1 watcher.go:190] Pod watcher ignoring pod kubernetes-dashboard-7d5dcdb6d9-9bwgj on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425395 1 watcher.go:194] Pod watcher processing pod prometheus-node-exporter-j9bmf on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425402 1 watcher.go:236] Pod watcher completed processing pod prometheus-node-exporter-j9bmf.
I0329 15:27:53.425409 1 watcher.go:190] Pod watcher ignoring pod prometheus-pushgateway-65f8664579-wsxqp on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425417 1 watcher.go:190] Pod watcher ignoring pod kube2ia100-xq8wn on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425424 1 watcher.go:190] Pod watcher ignoring pod portworx-pvc-controller-76c4cd9cc4-hpwfz on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425435 1 watcher.go:190] Pod watcher ignoring pod prometheus-node-exporter-9rttt on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425446 1 watcher.go:190] Pod watcher ignoring pod fluentd-cloudwatch-2lck8 on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425455 1 watcher.go:190] Pod watcher ignoring pod filebeat-vmd5b on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425463 1 watcher.go:190] Pod watcher ignoring pod portworx-pvc-controller-76c4cd9cc4-d9vng on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425471 1 watcher.go:190] Pod watcher ignoring pod kube-dns-64b69465b4-s92nz on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425478 1 watcher.go:194] Pod watcher processing pod kube2ia100-5nbwz on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425483 1 watcher.go:236] Pod watcher completed processing pod kube2ia100-5nbwz.
I0329 15:27:53.425490 1 watcher.go:190] Pod watcher ignoring pod prometheus-node-exporter-dnrmg on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425497 1 watcher.go:190] Pod watcher ignoring pod filebeat-lbm7v on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425504 1 watcher.go:190] Pod watcher ignoring pod vpc-resource-controller-57b46f69d6-7wlnb on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425515 1 watcher.go:190] Pod watcher ignoring pod kube-proxy-vvd6v on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425522 1 watcher.go:190] Pod watcher ignoring pod tiller-deploy-896746fc9-h6t24 on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425530 1 watcher.go:190] Pod watcher ignoring pod aws-node-cf299 on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425539 1 watcher.go:194] Pod watcher processing pod kube2ia100-lcj5v on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425544 1 watcher.go:236] Pod watcher completed processing pod kube2ia100-lcj5v.
I0329 15:27:53.425552 1 watcher.go:190] Pod watcher ignoring pod prometheus-kube-state-metrics-d89696d76-84b94 on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425560 1 watcher.go:190] Pod watcher ignoring pod heapster-7ff8d6bf9f-6ml4c on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425574 1 watcher.go:190] Pod watcher ignoring pod filebeat-zc9fg on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425582 1 watcher.go:190] Pod watcher ignoring pod stork-scheduler-8c756ddf6-tm66s on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425605 1 watcher.go:190] Pod watcher ignoring pod fluentd-cloudwatch-j2mpm on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425612 1 watcher.go:190] Pod watcher ignoring pod datadog-monitoring-wj9gf on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425622 1 watcher.go:194] Pod watcher processing pod aws-node-zbzzj on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425628 1 watcher.go:236] Pod watcher completed processing pod aws-node-zbzzj.
I0329 15:27:53.425636 1 watcher.go:190] Pod watcher ignoring pod myingress-nginx-ingress-controller-5868f49bf5-s6pvf on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425643 1 watcher.go:190] Pod watcher ignoring pod stork-cf7bf94-mtln7 on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425650 1 watcher.go:190] Pod watcher ignoring pod stork-cf7bf94-fdsfz on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425657 1 watcher.go:194] Pod watcher processing pod prometheus-node-exporter-bmkdg on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425662 1 watcher.go:236] Pod watcher completed processing pod prometheus-node-exporter-bmkdg.
I0329 15:27:53.425669 1 watcher.go:190] Pod watcher ignoring pod prometheus-server-5b965db8c9-9thqm on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425680 1 watcher.go:190] Pod watcher ignoring pod external-dns-5c4fdd8dc4-f67j9 on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425686 1 watcher.go:194] Pod watcher processing pod prometheus-node-exporter-6ftl5 on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425695 1 watcher.go:236] Pod watcher completed processing pod prometheus-node-exporter-6ftl5.
I0329 15:27:53.425702 1 watcher.go:190] Pod watcher ignoring pod sensu-client-q62bk on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425710 1 watcher.go:190] Pod watcher ignoring pod stork-cf7bf94-jgx89 on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425720 1 watcher.go:190] Pod watcher ignoring pod prometheus-alertmanager-58c894fcb8-5xjp2 on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425729 1 watcher.go:190] Pod watcher ignoring pod fluentd-cloudwatch-td4zf on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425735 1 watcher.go:190] Pod watcher ignoring pod vpc-admission-webhook-deployment-66c679d896-j2hnq on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425742 1 watcher.go:194] Pod watcher processing pod datadog-monitoring-kube-state-metrics-657ffc9db5-8r497 on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425751 1 watcher.go:236] Pod watcher completed processing pod datadog-monitoring-kube-state-metrics-657ffc9db5-8r497.
I0329 15:27:53.425758 1 watcher.go:194] Pod watcher processing pod kube-proxy-jjtrw on node ip-10-100-100-100.ec2.internal.
I0329 15:27:53.425764 1 watcher.go:236] Pod watcher completed processing pod kube-proxy-jjtrw.
I0329 15:27:53.425771 1 watcher.go:190] Pod watcher ignoring pod datadog-monitoring-bj8x4 on unmanaged node ip-10-100-100-100.ec2.internal.
I0329 15:28:02.819093 1 reconciler.go:30] Node manager reconciler started.
I0329 15:28:02.819152 1 reconciler.go:102] Reconciler worker 3 starting processing node ip-10-100-100-100.ec2.internal.
I0329 15:28:02.819165 1 reconciler.go:123] Reconciler checking resource vpc.amazonaws.com/PrivateIPv4Address warmpool size 3 desired 3 on node ip-10-100-100-100.ec2.internal.
I0329 15:28:02.819173 1 reconciler.go:123] Reconciler checking resource vpc.amazonaws.com/ENI warmpool size 0 desired 0 on node ip-10-100-100-100.ec2.internal.
I0329 15:28:02.819164 1 reconciler.go:102] Reconciler worker 1 starting processing node ip-10-100-100-100.ec2.internal.
I0329 15:28:02.819187 1 reconciler.go:123] Reconciler checking resource vpc.amazonaws.com/ENI warmpool size 0 desired 0 on node ip-10-100-100-100.ec2.internal.
I0329 15:28:02.819283 1 reconciler.go:123] Reconciler checking resource vpc.amazonaws.com/PrivateIPv4Address warmpool size 2 desired 3 on node ip-10-100-100-100.ec2.internal.
I0329 15:28:02.819294 1 reconciler.go:106] Reconciler worker 1 completed processing node ip-10-100-100-100.ec2.internal.
I0329 15:28:02.819179 1 reconciler.go:106] Reconciler worker 3 completed processing node ip-10-100-100-100.ec2.internal.
I0329 15:28:02.819247 1 reconciler.go:102] Reconciler worker 2 starting processing node ip-10-100-100-100.ec2.internal.
I0329 15:28:02.819319 1 reconciler.go:123] Reconciler checking resource vpc.amazonaws.com/PrivateIPv4Address warmpool size 3 desired 3 on node ip-10-100-100-100.ec2.internal.
I0329 15:28:02.819325 1 reconciler.go:123] Reconciler checking resource vpc.amazonaws.com/ENI warmpool size 0 desired 0 on node ip-10-100-100-100.ec2.internal.
I0329 15:28:02.819329 1 reconciler.go:106] Reconciler worker 2 completed processing node ip-10-100-100-100.ec2.internal.
vpc-admission-webhook
I0329 15:27:46.058871 1 main.go:76] Webhook Server started.
I0329 15:27:50.869155 1 webhook.go:196] AdmissionReview for Kind=/v1, Kind=Pod, Namespace=kube-system Name= () UID=36dc6dae-5237-11e9-a1d2-1241ba0ec9c4 PatchOperation=CREATE UserInfo={system:unsecured [system:masters system:authenticated] map[]}.
I0329 15:27:50.869199 1 webhook.go:233] Skip mutation for as it is on the host network.
I0329 15:27:50.869204 1 webhook.go:200] Skipping mutation for / due to policy check.
I0329 15:29:24.906364 1 webhook.go:196] AdmissionReview for Kind=/v1, Kind=Pod, Namespace=gitlab-ci Name= () UID=6eea33af-5237-11e9-a1d2-1241ba0ec9c4 PatchOperation=CREATE UserInfo={system:serviceaccount:default:gitlab-runner-gitlab-runner 1f445377-4502-11e9-852d-12160725a7a4 [system:serviceaccounts system:serviceaccounts:default system:authenticated] map[]}.
I0329 15:29:24.906396 1 webhook.go:239] Skip mutation for as the target platform is linux.
I0329 15:29:24.906402 1 webhook.go:200] Skipping mutation for gitlab-ci/ due to policy check.
I0329 15:29:25.113684 1 webhook.go:196] AdmissionReview for Kind=/v1, Kind=Pod, Namespace=gitlab-ci Name= () UID=6f09f8f3-5237-11e9-a1d2-1241ba0ec9c4 PatchOperation=CREATE UserInfo={system:serviceaccount:default:gitlab-runner-gitlab-runner 1f445377-4502-11e9-852d-12160725a7a4 [system:serviceaccounts system:serviceaccounts:default system:authenticated] map[]}.
I0329 15:29:25.113718 1 webhook.go:239] Skip mutation for as the target platform is linux.
I0329 15:29:25.113729 1 webhook.go:200] Skipping mutation for gitlab-ci/ due to policy check.
aws-node
Warning FailedCreatePodSandBox 2s (x6 over 39s) kubelet, ip-10-100-100-100.ec2.internal Failed create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "aws-node-jvsqj": Error response from daemon: network host not found
Normal SandboxChanged 1s (x6 over 33s) kubelet, ip-10-100-100-100.ec2.internal Pod sandbox changed, it will be killed and re-created.
After few attempts and deleting vpc* pods the iis one came up "Running" but logs show:
Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
True No Success {Common HTTP Features, Default Documen...
Invoke-WebRequest : The remote name could not be resolved:
'dotnetbinaries.blob.core.windows.net'
At line:1 char:32
+ ... Web-Server; Invoke-WebRequest -UseBasicParsing -Uri 'https://dotnetbi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:Htt
pWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,microsoft.PowerShe
ll.Commands.InvokeWebRequestCommand
C:\Servicemonitor.exe : The term 'C:\Servicemonitor.exe' is not recognized as
the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:311
+ ... ml>' > C:\inetpub\wwwroot\default.html; C:\Servicemonitor.exe 'w3svc' ...
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Servicemonitor.exe:String) [
], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
This shows that the container couldn't resolve the name. Can you check 2 things for me? 1) See whether coredns is running? (kubectl get pod -n kube-system) 2) On your windows worker node (where this pod has been scheduled), can you check whether kube-proxy service is running? (Get-service kube-proxy). If kube-proxy is running, also run Get-HNSPolicyList. Try restarting kube-proxy service (restart-service kube-proxy). Let us know how it goes.
kube-dns is running:
NAME READY STATUS RESTARTS AGE
aws-node-44jbk 1/1 Running 1 2d
aws-node-9r8wz 0/1 ContainerCreating 0 1h
aws-node-cf299 1/1 Running 1 2d
aws-node-jvsqj 0/1 ContainerCreating 0 6h
aws-node-km2d7 0/1 ContainerCreating 0 1h
aws-node-mc8hg 1/1 Running 1 2d
heapster-7ff8d6bf9f-6ml4c 1/1 Running 0 2d
kube-dns-64b69465b4-s92nz 3/3 Running 0 2d
kube-dns-64b69465b4-sgtcs 3/3 Running 0 2d
kube-proxy-58tmn 0/1 ContainerCreating 0 6h
kube-proxy-6x2mh 0/1 ContainerCreating 0 1h
kube-proxy-7tr8m 1/1 Running 0 2d
kube-proxy-ctcj8 1/1 Running 0 2d
kube-proxy-kzfph 0/1 ContainerCreating 0 1h
kube-proxy-vvd6v 1/1 Running 0 2d
kube2iam-6nsx4 0/1 ContainerCreating 0 1h
kube2iam-7k5k5 0/1 ContainerCreating 0 6h
kube2iam-jx2ft 1/1 Running 0 2d
kube2iam-rs8d7 1/1 Running 0 2d
kube2iam-v2qtv 0/1 ContainerCreating 0 1h
kube2iam-xq8wn 1/1 Running 0 2d
kubernetes-dashboard-7d5dcdb6d9-9bwgj 1/1 Running 0 2d
monitoring-influxdb-cc95575b9-hsjdn 1/1 Running 0 2d
portworx-bgmpd 0/1 ContainerCreating 0 6h
portworx-f7xjn 0/1 Running 215 2d
portworx-g67kl 0/1 ContainerCreating 0 1h
portworx-kgjtb 0/1 Running 215 2d
portworx-pvc-controller-76c4cd9cc4-c9sdr 1/1 Running 1 2d
portworx-pvc-controller-76c4cd9cc4-d9vng 1/1 Running 0 2d
portworx-pvc-controller-76c4cd9cc4-hpwfz 1/1 Running 1 2d
portworx-rsfks 0/1 ContainerCreating 0 1h
portworx-v59tm 0/1 Running 222 2d
px-lighthouse-774bd64b44-wzp6j 2/2 Running 0 2d
stork-cf7bf94-fdsfz 1/1 Running 0 2d
stork-cf7bf94-jgx89 1/1 Running 1 2d
stork-cf7bf94-mtln7 1/1 Running 0 2d
stork-scheduler-8c756ddf6-7j6zj 1/1 Running 0 2d
stork-scheduler-8c756ddf6-mpgdn 1/1 Running 1 2d
stork-scheduler-8c756ddf6-tm66s 1/1 Running 0 2d
tiller-deploy-896746fc9-h6t24 1/1 Running 0 2d
vpc-resource-controller-57b46f69d6-7wlnb 1/1 Running 0 6h
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Users\Administrator> Get-service kube-proxy
Status Name DisplayName
------ ---- -----------
Running kube-proxy kube-proxy
PS C:\Users\Administrator> Get-HNSPolicyList
PS C:\Users\Administrator> restart-service kube-proxy
PS C:\Users\Administrator> Get-service kube-proxy
Status Name DisplayName
------ ---- -----------
Running kube-proxy kube-proxy
PS C:\Users\Administrator> Get-HNSPolicyList
PS C:\Users\Administrator>
Windows IIS container error that it can't resolve the host
>> kubectl logs windows-server-iis-7dcfc7c79b-p876x
Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
True No Success {Common HTTP Features, Default Documen...
Invoke-WebRequest : The remote name could not be resolved:
'dotnetbinaries.blob.core.windows.net'
At line:1 char:32
+ ... Web-Server; Invoke-WebRequest -UseBasicParsing -Uri 'https://dotnetbi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:Htt
pWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShe
ll.Commands.InvokeWebRequestCommand
C:\ServiceMonitor.exe : The term 'C:\ServiceMonitor.exe' is not recognized as
the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:311
+ ... ml>' > C:\inetpub\wwwroot\default.html; C:\ServiceMonitor.exe 'w3svc' ...
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\ServiceMonitor.exe:String) [
], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Resolves host fine from the underlying host:
PS C:\Users\Administrator> nslookup dotnetbinaries.blob.core.windows.net
Non-authoritative answer:
Name: blob.byaprdstr14a.store.core.windows.net
Address: 52.239.161.42
Aliases: dotnetbinaries.blob.core.windows.net
PS C:\Users\Administrator>
aws-node and others still ContainerCreating:
Warning FailedCreatePodSandBox 5m7s (x3993 over 115m) kubelet, ip-10-100-100-100.ec2.internal Failed create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "aws-node-9r8wz": Error response from daemon: network host not found
Host will not have problem. Inside the container, the DNS name lookup is not working. Root cause is kube-proxy didn't create policy list (Get-HNSPolicy list returns nothing). Can you check windows event log (kub-proxy) to see what's going on? Alternatively you can send the log to me, I'll investigate. The steps are, 1) Stop the kube-proxy service, 2) clear the windows event log (EKS, source: kube-proxy) , 3) start the service and wait for a minute or two and then save the windows event log and send it to us.
@somujay emailed in the log
@somujay emailed in the log Looked at the log. It looks like the permissions are not applied correctly. Can you please execute the following two commands and share the output?
kubectl get clusterrolebindings -o json | jq -r '.items[] | select(.subjects[0].kind=="Group") | select(.subjects[0].name=="eks:kube-proxy-windows")'
kubectl describe configmap aws-auth -n kube-system
@somujay replied
Got your mail. That explains why you are hitting the issue. Your Windows instance (eks1dev-winnodes1-EKSWindowsWorke-NodeInstanceRole-P12C9RJXQPS0) is missing "eks:kube-proxy-windows". Did you apply the step "5. Enable worker nodes to join the cluster" using the aws-auth-cm-windows.yaml? https://github.com/aws/containers-roadmap/tree/master/preview-programs/eks-windows-preview#5-enable-worker-nodes-to-join-the-cluster .
Wow okay missed that additional line:
- eks:kube-proxy-windows
Will update tomorrow and test again.
Thanks
@somujay thanks that was it... I have my iis container running.
Still have issues with the aws-node and other containers stuck in "ContainerCreating" states on the Windows nodes (DaemonSets affects aws-node, kube-proxy, kube2iam, portworx).
I can open new issue for those.
@somujay from what I have seen, it looks like kube2iam only runs on Linux nodes ... kube2iam Dockerfile. I am trying to get IAM roles assigned to windows pods too.
I would be nice to see this go live: 23
In order to get these Linux only pods to run I had to patch the deployment | pod
kubectl patch deployment tiller-deploy -n kube-system --patch "$(cat lin-nodeselector-patch.yaml)"
where lin-nodeselector-patch.yaml looks like this:
template:
spec:
nodeSelector:
beta.kubernetes.io/os: linux
@cdenneen pods like aws-node should not be scheduled onto windows nodes.
Please update the deployments with nodeSelector to ensure that the pods are scheduled onto valid nodes.
@vsiddharth yeah this was a 1.10 cluster I upgraded to 1.11 and will upgrade to 1.12 once windows ami's are released... just legacy cruft... thanks...
Curious do you know if there is a way to have all deployments go to default nodeGroup instead of requiring a nodeSelector... and then have nodeGroup like windows require an explicit nodeSelector in order to be used?
I could see this being useful for cases like public/private linux/windows standard/hpc...
the nodegroup private/linux/standard should get all deployments except where specified?
I am also facing same issue
What if I don't follow step 4 as I have configured aws and kubectl utils on Windows