Etcdctl Command Fails if --cert, --cacert, --key flags Are Not Passed

Problem

Etcdctl commands shows cluster unhealthy status, if --cert,--cacert,--key flags are not passed.

Javascript
Copy

Environment

  • Platform9 Managed Kubernetes
  • Kubernetes v1.22

Answer

Starting Kubernetes v1.22, the ETCD insecure port (4001) is disabled. Going forward, need to pass the --cert, --cacert, and the --key flags to all etcdctl commands.

Here is an example below:

Sample Command
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard