This repository has been archived by the owner on Sep 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix self-hosted calico + cni in k8s 1.6
Closes #494 Note: without changing the way we run `install-cni` containers of `calico-node` pods, E2E fails due to some pods stall in CrashLoopback: ``` + kubectl get po --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system calico-node-060zz 1/2 CrashLoopBackOff 43 3h kube-system calico-node-bs0b9 1/2 CrashLoopBackOff 43 3h kube-system calico-node-k2h0j 1/2 CrashLoopBackOff 42 3h kube-system calico-node-lt4fd 1/2 CrashLoopBackOff 43 3h kube-system calico-node-sqk63 1/2 CrashLoopBackOff 43 3h kube-system calico-policy-controller-279105993-jkqjh 1/1 Running 18 3h kube-system heapster-v1.3.0-124807402-7mj11 2/2 Running 0 3h kube-system kube-apiserver-ip-10-0-0-53.ap-northeast-1.compute.internal 1/1 Running 0 3h kube-system kube-apiserver-ip-10-0-0-96.ap-northeast-1.compute.internal 1/1 Running 0 3h kube-system kube-controller-manager-ip-10-0-0-53.ap-northeast-1.compute.internal 1/1 Running 0 3h kube-system kube-controller-manager-ip-10-0-0-96.ap-northeast-1.compute.internal 1/1 Running 0 3h kube-system kube-dns-782804071-5mb11 2/4 CrashLoopBackOff 110 3h kube-system kube-dns-782804071-xrgdl 2/4 CrashLoopBackOff 110 3h kube-system kube-dns-autoscaler-2813114833-vzk5x 1/1 Running 0 3h kube-system kube-proxy-ip-10-0-0-190.ap-northeast-1.compute.internal 1/1 Running 0 3h kube-system kube-proxy-ip-10-0-0-209.ap-northeast-1.compute.internal 1/1 Running 0 3h kube-system kube-proxy-ip-10-0-0-239.ap-northeast-1.compute.internal 1/1 Running 0 3h kube-system kube-proxy-ip-10-0-0-247.ap-northeast-1.compute.internal 1/1 Running 0 3h kube-system kube-proxy-ip-10-0-0-53.ap-northeast-1.compute.internal 1/1 Running 0 3h kube-system kube-proxy-ip-10-0-0-9.ap-northeast-1.compute.internal 1/1 Running 0 3h kube-system kube-proxy-ip-10-0-0-96.ap-northeast-1.compute.internal 1/1 Running 0 3h kube-system kube-scheduler-ip-10-0-0-53.ap-northeast-1.compute.internal 1/1 Running 0 3h kube-system kube-scheduler-ip-10-0-0-96.ap-northeast-1.compute.internal 1/1 Running 1 3h kube-system kubernetes-dashboard-v1.5.1-67s47 0/1 CrashLoopBackOff 47 3h ``` calico-node fails due to inability to communiate with etcd: ``` + kubectl logs calico-node-060zz --namespace kube-system calico-node time="2017-04-04T12:12:45Z" level=info msg="Creating Calico client" time="2017-04-04T12:12:45Z" level=info msg="Loading config from environment" time="2017-04-04T12:12:45Z" level=info msg="Ensuring datastore is initialized" time="2017-04-04T12:13:15Z" level=info msg="Unhandled error: client: endpoint https://ec2-13-112-48-174.ap-northeast-1.compute.amazonaws.com:2379 exceeded header timeout" time="2017-04-04T12:13:15Z" level=warning msg="Failed to set ready flag" error="client: endpoint https://ec2-13-112-48-174.ap-northeast-1.compute.amazonaws.com:2379 exceeded header timeout" panic: Error initializing datastore: client: endpoint https://ec2-13-112-48-174.ap-northeast-1.compute.amazonaws.com:2379 exceeded header timeout goroutine 1 [running]: panic(0x12fc2e0, 0xc420364260) /usr/local/go/src/runtime/panic.go:500 +0x1a1 main.main() /go/src/github.com/projectcalico/calico-containers/calico_node/startup.go:47 +0x439 Calico node failed to start ```
- Loading branch information
Showing
3 changed files
with
198 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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