ansible-role-kubernetes/fix_ansible.txt
Adrien 308e7d8e9d
All checks were successful
continuous-integration/drone/push Build is passing
Add log for fix
2020-12-19 12:31:22 +01:00

33 lines
2.4 KiB
Text

TASK [kubernetes : Init Kubernetes on Saturne] **********************************************************************************************************************************************************************
fatal: [Saturne]: FAILED! => changed=true
cmd:
- kubeadm
- init
- --config=/root/kubeadm-config.yaml
delta: '0:00:00.608823'
end: '2020-09-14 00:40:32.622035'
msg: non-zero return code
rc: 1
start: '2020-09-14 00:40:32.013212'
stderr: |-
W0914 00:40:32.046191 87590 common.go:77] your configuration file uses a deprecated API spec: "kubeadm.k8s.io/v1beta1". Please use 'kubeadm config migrate --old-config old.yaml --new-config new.yaml', which will write the new, similar spec using a newer API version.
W0914 00:40:32.048247 87590 strict.go:54] error unmarshaling configuration schema.GroupVersionKind{Group:"kubelet.config.k8s.io", Version:"v1beta1", Kind:"KubeletConfiguration"}: error unmarshaling JSON: while decoding JSON: json: unknown field "containerRuntime"
W0914 00:40:32.486840 87590 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[WARNING Firewalld]: firewalld is active, please ensure ports [6443 10250] are open or your cluster may not function correctly
[WARNING FileExisting-tc]: tc not found in system path
[WARNING Hostname]: hostname "saturne" could not be reached
[WARNING Hostname]: hostname "saturne": lookup saturne on 213.186.33.99:53: no such host
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
stderr_lines: <omitted>
stdout: |-
[config] WARNING: Ignored YAML document with GroupVersionKind kubeadm.k8s.io/v1beta2, Kind=JoinConfiguration
[init] Using Kubernetes version: v1.19.1
[preflight] Running pre-flight checks
stdout_lines: <omitted>
PLAY RECAP **********************************************************************************************************************************************************************************************************
Saturne : ok=85 changed=7 unreachable=0 failed=1 skipped=48 rescued=0 ignored=0