-
Choerodon平台版本: 0.6.0
-
遇到问题的执行步骤: 安装私有云单节点ansible-playbook 步骤
[root@localhost inventory]# cat hosts
[all]
choerodon ansible_host=192.168.1.72 ip=192.168.1.72 ansible_user=root ansible_ssh_pass=root ansible_become=true
[kube-master]
choerodon
[etcd]
choerodon
[kube-node]
choerodon
TASK [master : kubeadm | delete old kube-dns service] *************************************************************************************************************************************
Monday 10 December 2018 18:00:16 +0800 (0:00:00.531) 0:00:26.722 *******
fatal: [choerodon]: FAILED! => {“changed”: true, “cmd”: [“kubectl”, “delete”, “svc”, “kube-dns”, “-n”, “kube-system”], “delta”: “0:00:00.111074”, “end”: “2018-12-10 18:00:16.360703”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2018-12-10 18:00:16.249629”, “stderr”: “The connection to the server localhost:8080 was refused - did you specify the right host or port?”, “stderr_lines”: [“The connection to the server localhost:8080 was refused - did you specify the right host or port?”], “stdout”: “”, “stdout_lines”: []}
…ignoring
TASK [master : kubeadm | create kube-dns service] *****************************************************************************************************************************************
Monday 10 December 2018 18:00:16 +0800 (0:00:00.352) 0:00:27.075 *******
fatal: [choerodon]: FAILED! => {“changed”: true, “cmd”: [“kubectl”, “apply”, “-f”, “/etc/kubernetes/kube-dns-service.yml”], “delta”: “0:00:00.089468”, “end”: “2018-12-10 18:00:16.674136”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2018-12-10 18:00:16.584668”, “stderr”: “W1210 18:00:16.671478 10610 factory_object_mapping.go:423] Failed to download OpenAPI (Get http://localhost:8080/swagger-2.0.0.pb-v1: dial tcp 127.0.0.1:8080: getsockopt: connection refused), falling back to swagger\nThe connection to the server localhost:8080 was refused - did you specify the right host or port?”, “stderr_lines”: [“W1210 18:00:16.671478 10610 factory_object_mapping.go:423] Failed to download OpenAPI (Get http://localhost:8080/swagger-2.0.0.pb-v1: dial tcp 127.0.0.1:8080: getsockopt: connection refused), falling back to swagger”, “The connection to the server localhost:8080 was refused - did you specify the right host or port?”], “stdout”: “”, “stdout_lines”: []}
…ignoring
TASK [master : Update kube-proxy command args] ********************************************************************************************************************************************
Monday 10 December 2018 18:00:16 +0800 (0:00:00.300) 0:00:27.375 *******
fatal: [choerodon]: FAILED! => {“changed”: true, “cmd”: “kubectl -n kube-system get ds -l ‘k8s-app=kube-proxy’ -o json | jq '.items[0].spec.template.spec.containers[0].command += [”–masquerade-all"]’ | kubectl apply -f - && kubectl delete pods -n kube-system -l ‘k8s-app=kube-proxy’", “delta”: “0:00:00.119800”, “end”: “2018-12-10 18:00:17.008929”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2018-12-10 18:00:16.889129”, “stderr”: “W1210 18:00:16.998818 10625 factory_object_mapping.go:423] Failed to download OpenAPI (Get http://localhost:8080/swagger-2.0.0.pb-v1: dial tcp 127.0.0.1:8080: getsockopt: connection refused), falling back to swagger\nThe connection to the server localhost:8080 was refused - did you specify the right host or port?\nThe connection to the server localhost:8080 was refused - did you specify the right host or port?”, “stderr_lines”: [“W1210 18:00:16.998818 10625 factory_object_mapping.go:423] Failed to download OpenAPI (Get http://localhost:8080/swagger-2.0.0.pb-v1: dial tcp 127.0.0.1:8080: getsockopt: connection refused), falling back to swagger”, “The connection to the server localhost:8080 was refused - did you specify the right host or port?”, “The connection to the server localhost:8080 was refused - did you specify the right host or port?”], “stdout”: “”, “stdout_lines”: []}
NO MORE HOSTS LEFT ************************************************************************************************************************************************************************
to retry, use: --limit @/root/kubeadm-ansible/cluster.retry
PLAY RECAP ********************************************************************************************************************************************************************************
choerodon : ok=67 changed=10 unreachable=0 failed=1
Monday 10 December 2018 18:00:17 +0800 (0:00:00.303) 0:00:27.679 *******