You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More detailed guide how to create your own cluster would be appreciated. What steps to perform and which errors can be ignored. Or way to make it work without errors on first run.
On first ansible-playbook playbook.yml run I got an error
TASK [Check if DNS Cluster Add-on is deployed] **********************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["kubectl", "get", "svc", "-n", "kube-system", "-o", "name", "kube-dns"], "delta": "0:00:30.118517", "end": "2017-12-02 03:23:42.310567", "failed": true, "rc": 1, "start": "2017-12-02 03:23:12.192050", "stderr": "Unable to connect to the server: dial tcp 35.185.244.207:6443: i/o timeout", "stderr_lines": ["Unableto connect to the server: dial tcp 35.185.244.207:6443: i/o timeout"], "stdout": "", "stdout_lines": []}
...ignoring
TASK [Ensure DNS-addon is deployed] *********************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["kubectl", "create", "-f", "https://storage.googleapis.com/kubernetes-the-hard-way/kube-dns.yaml"], "delta": "0:01:30.191404", "end": "2017-12-02 03:25:13.021619", "failed": true, "rc": 1, "start": "2017-12-02 03:23:42.830215", "stderr": "W1202 03:24:13.015961 63660 factory_object_mapping.go:423] Failed to download OpenAPI (Get https://35.185.244.207:6443/swagger-2.0.0.pb-v1: dial tcp 35.185.244.207:6443: i/o timeout), falling back to swagger\nUnable to connect to the server: dial tcp 35.185.244.207:6443: i/o timeout", "stderr_lines": ["W1202 03:24:13.015961 63660 factory_object_mapping.go:423] Failed to download OpenAPI (Get https://35.185.244.207:6443/swagger-2.0.0.pb-v1:dial tcp 35.185.244.207:6443: i/o timeout), falling back to swagger", "Unable to connect to the server: dial tcp 35.185.244.207:6443: i/o timeout"], "stdout": "", "stdout_lines": []}
On second run
TASK [kubernetes-master : Enumerate Kubernates cluster roles and bindings] ******************
failed: [controller-0] (item=kubectl get clusterroles -o name system:kube-apiserver-to-kubelet) => {"changed": false, "cmd": ["kubectl", "get", "clusterroles", "-o", "name", "system:kube-apiserver-to-kubelet"], "delta": "0:00:00.236882", "end": "2017-12-01 23:41:54.409461", "failed": true, "item": "kubectl get clusterroles -o name system:kube-apiserver-to-kubelet", "rc": 1, "start": "2017-12-01 23:41:54.172579", "stderr": "Error from server (NotFound): clusterroles.rbac.authorization.k8s.io \"system:kube-apiserver-to-kubelet\" not found", "stderr_lines": ["Error from server (NotFound): clusterroles.rbac.authorization.k8s.io \"system:kube-apiserver-to-kubelet\" not found"], "stdout": "", "stdout_lines": []}
failed: [controller-1] (item=kubectl get clusterroles -o name system:kube-apiserver-to-kubelet) => {"changed": false, "cmd": ["kubectl", "get", "clusterroles", "-o", "name", "system:kube-apiserver-to-kubelet"], "delta": "0:00:00.267238", "end": "2017-12-01 23:41:54.481845", "failed": true, "item": "kubectl get clusterroles -o name system:kube-apiserver-to-kubelet", "rc": 1, "start": "2017-12-01 23:41:54.214607", "stderr": "Error from server (NotFound): clusterroles.rbac.authorization.k8s.io \"system:kube-apiserver-to-kubelet\" not found", "stderr_lines": ["Error from server (NotFound): clusterroles.rbac.authorization.k8s.io \"system:kube-apiserver-to-kubelet\" not found"], "stdout": "", "stdout_lines": []}
failed: [controller-2] (item=kubectl get clusterroles -o name system:kube-apiserver-to-kubelet) => {"changed": false, "cmd": ["kubectl", "get", "clusterroles", "-o", "name", "system:kube-apiserver-to-kubelet"], "delta": "0:00:00.323809", "end": "2017-12-01 23:41:54.532591", "failed": true, "item": "kubectl get clusterroles -o name system:kube-apiserver-to-kubelet", "rc": 1, "start": "2017-12-01 23:41:54.208782", "stderr": "Error from server (NotFound): clusterroles.rbac.authorization.k8s.io \"system:kube-apiserver-to-kubelet\" not found", "stderr_lines": ["Error from server (NotFound): clusterroles.rbac.authorization.k8s.io \"system:kube-apiserver-to-kubelet\" not found"], "stdout": "", "stdout_lines": []}
...ignoring
failed: [controller-0] (item=kubectl get clusterrolebindings -o name system:kube-apiserver) => {"changed": false, "cmd": ["kubectl", "get", "clusterrolebindings", "-o", "name", "system:kube-apiserver"], "delta": "0:00:00.108817", "end": "2017-12-01 23:41:58.227101", "failed": true, "item": "kubectl get clusterrolebindings -o name system:kube-apiserver", "rc": 1, "start": "2017-12-01 23:41:58.118284", "stderr": "Error from server (NotFound): clusterrolebindings.rbac.authorization.k8s.io \"system:kube-apiserver\" not found", "stderr_lines": ["Error fromserver (NotFound): clusterrolebindings.rbac.authorization.k8s.io \"system:kube-apiserver\" not found"], "stdout": "", "stdout_lines": []}
...ignoring
failed: [controller-1] (item=kubectl get clusterrolebindings -o name system:kube-apiserver) => {"changed": false, "cmd": ["kubectl", "get", "clusterrolebindings", "-o", "name", "system:kube-apiserver"], "delta": "0:00:00.113510", "end": "2017-12-01 23:41:58.334306", "failed": true, "item": "kubectl get clusterrolebindings -o name system:kube-apiserver", "rc": 1, "start": "2017-12-01 23:41:58.220796", "stderr": "Error from server (NotFound): clusterrolebindings.rbac.authorization.k8s.io \"system:kube-apiserver\" not found", "stderr_lines": ["Error fromserver (NotFound): clusterrolebindings.rbac.authorization.k8s.io \"system:kube-apiserver\" not found"], "stdout": "", "stdout_lines": []}
...ignoring
failed: [controller-2] (item=kubectl get clusterrolebindings -o name system:kube-apiserver) => {"changed": false, "cmd": ["kubectl", "get", "clusterrolebindings", "-o", "name", "system:kube-apiserver"], "delta": "0:00:00.115569", "end": "2017-12-01 23:41:58.345573", "failed": true, "item": "kubectl get clusterrolebindings -o name system:kube-apiserver", "rc": 1, "start": "2017-12-01 23:41:58.230004", "stderr": "Error from server (NotFound): clusterrolebindings.rbac.authorization.k8s.io \"system:kube-apiserver\" not found", "stderr_lines": ["Error fromserver (NotFound): clusterrolebindings.rbac.authorization.k8s.io \"system:kube-apiserver\" not found"], "stdout": "", "stdout_lines": []}
Only on third run there was no error. All was green or yellow
The text was updated successfully, but these errors were encountered:
More detailed guide how to create your own cluster would be appreciated. What steps to perform and which errors can be ignored. Or way to make it work without errors on first run.
On first
ansible-playbook playbook.yml
run I got an errorOn second run
Only on third run there was no error. All was green or yellow
The text was updated successfully, but these errors were encountered: