Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you support Google GKE style authentication? #722

Closed
eujungkim opened this issue Jun 15, 2021 · 1 comment
Closed

Do you support Google GKE style authentication? #722

eujungkim opened this issue Jun 15, 2021 · 1 comment

Comments

@eujungkim
Copy link

eujungkim commented Jun 15, 2021

Google GEK disabled authentication with a client certificate.
https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication#disabling_authentication_with_a_client_certificate

Do you support Google GKE style authentication like below? I fail to find the example for this case with kubeconfig.yaml & gsa-key.json.
https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication#environments-without-gcloud

apiVersion: v1
kind: Config
clusters:
- name: CLUSTER_NAME
  cluster:
    server: https://endpoint
    certificate-authority-data: masterAuth.clusterCaCertificate
users:
- name: ci-cd-pipeline-gsa
  user:
    auth-provider:
      name: gcp
contexts:
- context:
    cluster: CLUSTER_NAME
    user: ci-cd-pipeline-gsa
  name: CLUSTER_NAME-ci-cd
current-context: CLUSTER_NAME-ci-cd

For reference, upper config need GOOGLE_APPLICATION_CREDENTAILS envirionment.

export KUBECONFIG=path/to/kubeconfig.yaml
export GOOGLE_APPLICATION_CREDENTIALS=path/to/gsa-key.json
@eujungkim
Copy link
Author

I solved the problem by using "Service in other environments" like below.
https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication#service_in_other_environments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant