You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "dtsong (via GitHub)" <gi...@apache.org> on 2024/06/10 16:20:40 UTC

[I] Cannot execute 'kamel install' to a GKE cluster [camel-k]

dtsong opened a new issue, #5611:
URL: https://github.com/apache/camel-k/issues/5611

   ### What happened?
   
   While I was attempting to run `kamel install` to a GKE cluster, I get the following error:
   
   ```
   ./kamel install --monitoring=true
   Error: cannot get command client: The gcp auth plugin has been removed.
   Please use the "gke-gcloud-auth-plugin" kubectl/client-go credential plugin instead.
   See https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke for further details
   ```
   
   I went through the relevant steps to ensure that the `gke-gcloud-auth-plugin` was installed, but still got the same error. It looks like the `kamel` CLI is using the previous plugin for cluster authentication?
   
   ### Steps to reproduce
   
   1. Have a GKE cluster available to have Camel-k installed with the `kamel` CLI.
   2. Use gcloud to establish cluster connectivity with `gcloud container cluster get-credentials NAME_OF_CLUSTER`
   3. Run `kamel install`
   
   ### Relevant log output
   
   ```shell
   # VM where I am running kamel from
   ./kamel install --monitoring=true
   Error: cannot get command client: The gcp auth plugin has been removed.
   Please use the "gke-gcloud-auth-plugin" kubectl/client-go credential plugin instead.
   See https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke for further details
   ```
   
   
   ### Camel K version
   
   v2.3.3


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Cannot execute 'kamel install' to a GKE cluster [camel-k]

Posted by "dtsong (via GitHub)" <gi...@apache.org>.
dtsong commented on issue #5611:
URL: https://github.com/apache/camel-k/issues/5611#issuecomment-2158815467

   Apologies, disregard, realized that I needed to export this variable to have the local `kubectl` use the GKE Auth plugin.
   
   ```
   export USE_GKE_GCLOUD_AUTH_PLUGIN=True
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Cannot execute 'kamel install' to a GKE cluster [camel-k]

Posted by "dtsong (via GitHub)" <gi...@apache.org>.
dtsong closed issue #5611: Cannot execute 'kamel install' to a GKE cluster
URL: https://github.com/apache/camel-k/issues/5611


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org