Asking for help? Comment out what you need so we can get more information to help you!
Cluster information:
Kubernetes version: 1.24.2
Cloud being used: (put bare-metal if not on a public cloud)
Installation method: bare-metal
Host OS: Ubuntu 20.04 TLS
CNI and version: CALICO 0.3.1
CRI and version:
I am trying to install and configure ETCD on my cluster and following this tutorial (by the way tried 3 to 4 times to reset my cluster and start from scratch)
Everytime it gives error on this step of the above tutorial
{
systemctl daemon-reload
systemctl enable --now etcd
}
Error is
root@kmaster:~# {
systemctl daemon-reload
systemctl enable --now etcd
}
Synchronizing state of etcd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable etcd
Job for etcd.service failed because the control process exited with error code.
See “systemctl status etcd.service” and “journalctl -xe” for details.
Logs:
- The job identifier is 14246.
Jun 17 13:18:42 kmaster etcd[11336]: {“level”:“info”,“ts”:“2022-06-17T13:18:42.854+0500”,“caller”:“etcdmain/etcd.go:73”,“msg”:“Running: “,“args”:[”/usr/local>
Jun 17 13:18:42 kmaster etcd[11336]: {“level”:“warn”,“ts”:“2022-06-17T13:18:42.854+0500”,“caller”:“etcdmain/etcd.go:105”,“msg”:”‘data-dir’ was empty; using d>
Jun 17 13:18:42 kmaster etcd[11336]: {“level”:“info”,“ts”:“2022-06-17T13:18:42.854+0500”,“caller”:“etcdmain/etcd.go:116”,“msg”:"server has been already initi>
Jun 17 13:18:42 kmaster etcd[11336]: {“level”:“info”,“ts”:“2022-06-17T13:18:42.854+0500”,“caller”:“embed/etcd.go:131”,“msg”:“configuring peer listeners”,"lis>
Jun 17 13:18:42 kmaster etcd[11336]: {“level”:“info”,“ts”:“2022-06-17T13:18:42.854+0500”,“caller”:“embed/etcd.go:479”,“msg”:“starting with peer TLS”,"tls-inf>
Jun 17 13:18:42 kmaster etcd[11336]: {“level”:“info”,“ts”:“2022-06-17T13:18:42.854+0500”,“caller”:“embed/etcd.go:368”,“msg”:“closing etcd server”,“name”:"kma>
Jun 17 13:18:42 kmaster etcd[11336]: {“level”:“info”,“ts”:“2022-06-17T13:18:42.854+0500”,“caller”:“embed/etcd.go:370”,“msg”:“closed etcd server”,“name”:"kmas>
Jun 17 13:18:42 kmaster etcd[11336]: {“level”:“fatal”,“ts”:“2022-06-17T13:18:42.854+0500”,“caller”:“etcdmain/etcd.go:204”,“msg”:“discovery failed”,“error”:"l>
Jun 17 13:18:42 kmaster systemd[1]: etcd.service: Main process exited, code=exited, status=1/FAILURE
– Subject: Unit process exited
– Defined-By: systemd
– Support: Enterprise open source support | Ubuntu
what is the issue I fail to understand please help an how to fix.