При выполнении
ansible-playbook -i inventory/cluster/inventory.ini -c paramiko cluster.yml
Получаю ошибку.
TASK [kubernetes/control-plane : Upload certificates so they are fresh and not expired] ****************************************************************
fatal: [master0]: FAILED! => {"changed": true, "cmd": ["/usr/local/bin/kubeadm", "init", "phase", "--config", "/etc/kubernetes/kubeadm-config.yaml", "upload-certs", "--upload-certs"], "delta": "0:00:14.716715", "end": "2021-07-08 13:07:43.425353", "msg": "non-zero return code", "rc": 1, "start": "2021-07-08 13:07:28.708638", "stderr": "W0708 13:07:29.108214 10861 utils.go:69] The recommended value for \"clusterDNS\" in \"KubeletConfiguration\" is: [10.233.0.10]; the provided value is: [169.254.25.10]\nerror execution phase upload-certs: error uploading certs: error to get token reference: Get \"https://127.0.0.1:6443/api/v1/namespaces/kube-system/secrets/bootstrap-token-agerk4?timeout=10s\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)\nTo see the stack trace of this error execute with --v=5 or higher", "stderr_lines": ["W0708 13:07:29.108214 10861 utils.go:69] The recommended value for \"clusterDNS\" in \"KubeletConfiguration\" is: [10.233.0.10]; the provided value is: [169.254.25.10]", "error execution phase upload-certs: error uploading certs: error to get token reference: Get \"https://127.0.0.1:6443/api/v1/namespaces/kube-system/secrets/bootstrap-token-agerk4?timeout=10s\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)", "To see the stack trace of this error execute with --v=5 or higher"], "stdout": "[upload-certs] Storing the certificates in Secret \"kubeadm-certs\" in the \"kube-system\" Namespace", "stdout_lines": ["[upload-certs] Storing the certificates in Secret \"kubeadm-certs\" in the \"kube-system\" Namespace"]}
Я так понимаю. что не получается обновить сертификаты\токен.
Подскажите в какую сторону копать?
https://t.me/kubespray
спасибо
Обсуждают сегодня