Why I'm not able to get cluster infor through APIs ?!

Nurhun:
Why I’m not able to get cluster infor through APIs ?!

Nurhun:
Solved by capururing certs from the .kube/config file

client-key-data:
echo -n “LS0…Cg==” | base64 -d > admin.key

client-certificate-data:
echo -n “LS0…Cg==” | base64 -d > admin.crt

certificate-authority-data:
echo -n “LS0…Cg==” | base64 -d > ca.crt

Then, use
curl https://172.26.2.101:6443 --key admin.key --cert admin.crt --cacert ca.crt

Mohamed Ayman:
Yes, you need to add the certs in the command.