if you have access to the etcd server, you can use the following steps to try etcd v3 API to fetch Kubernetes cluster data
- set environment to use v3 API
# set ETCDCTL_API
export ETCDCTL_API=3
- use
etcdctl
tool to fetch all the namespaces
# fetch all the namespaces