Hi
I am doing the CKA course and I see the instructor using curl commands like
“curl https://127.0.01:6443/api/version”. However, when I try it I get ‘Unauthorized’ error. Am I missing any setting while running these curl commands.
Regards,
Hi
I am doing the CKA course and I see the instructor using curl commands like
“curl https://127.0.01:6443/api/version”. However, when I try it I get ‘Unauthorized’ error. Am I missing any setting while running these curl commands.
Regards,
To run curl against the API server, you either need to supply a valid token, valid certificates and keys, or you can (easiest) use kubectl proxy which will give you a pre-authenticated URL to query the apiserver. This K8s doc describes how to do these things.