Rob
Rob

Reputation: 1

how to login to kubernetes using curl without kubectl and no kubeconfig?

Does anybody know how to login to kubernetes using only curl. There is no kubectl on the system and there is also no kubeconfig on the local system.

I wish to obtain a bearertoken so that I can use it to access the kubernetes api. Due to company policies I cannot create a local kubeconfig nor install kubectl.

Any1 know how to do this?

I found plenty of explanations on how to use the kubeapi.

But all the explanations assume you either got a kubeconfig, or use kubectl to create one.

Sadly this is not an option in my situation, hence the question on how to log in with curl using the kubernetes api.

Upvotes: -1

Views: 42

Answers (0)

Related Questions