snkcld
snkcld

Reputation: 45

enable kubernetes authentication api on gke

It seems that in order to use the vault kubernetes auth backend, the authentication.k8s.io api must be enabled. GKE does not seem to have this enabled (/apis/authentication.k8s.io/ returns a 404)

Any idea why this is not enabled? From what i understand, this is not an alpha feature. I am using kubernetes 1.7.6.

Upvotes: 0

Views: 492

Answers (2)

CJ Cullen
CJ Cullen

Reputation: 5642

You're correct that GKE does not turn on the TokenReview API (if you're managing your own Kubernetes cluster, then Javier's answer is the one to look at).

GKE is planning to turn on the APIs in an upcoming release.

Upvotes: 1

Javier Salmeron
Javier Salmeron

Reputation: 8827

According to https://kubernetes.io/docs/admin/authentication/

Additionally, the API server must enable the authentication.k8s.io/v1beta1 API extensions group (--runtime-config=authentication.k8s.io/v1beta1=true).

I advise you to change that configuration on the api server and restart it.

Upvotes: 0

Related Questions