limited-crayon-56213
09/28/2023, 10:19 AMgarden plugins kubernetes cluster-init
, I'm receiving this output :
Plugins
Garden v0.13 (Bonsai) is a major release with significant changes. Please help us improve it by reporting any issues/bugs here:
https://go.garden.io/report-bonsai
→ Run garden util hide-warning 0.13-bonsai to disable this warning.
ℹ garden → Running in Garden environment remote.flg-hello-dev-nat
Initializing/updating cluster-wide services for remote environment
ℹ providers → Getting status...
ℹ providers → Fetching kubectl...
✖ providers → Failed fetching https://storage.googleapis.com/kubernetes-release/release/v1.23.3/bin/linux/amd64/kubectl (took 131.2 sec)
ℹ providers → Fetching kubectl...
✖ providers → Failed fetching https://storage.googleapis.com/kubernetes-release/release/v1.23.3/bin/linux/amd64/kubectl (took 262.3 sec)
ℹ providers → Fetching kubectl...
why does Garden need to fetch kubectl from a google API ?microscopic-river-74022
09/28/2023, 10:19 AMkubectl
. As per the Garden documentation (), under the hood, Garden uses the Kubernetes API and kubectl
to interact with your Kubernetes cluster.
In your case, it seems Garden is trying to fetch kubectl
from the Google API because it needs kubectl
to interact with your Kubernetes cluster. If kubectl
is not already installed or if the path to kubectl
is not specified, Garden will attempt to download it automatically as required. This is indicated in the Garden documentation () under the providers.kubectlPath
section.
If you want to avoid Garden fetching kubectl
from the Google API, you can set a specific path to a kubectl
binary in your Garden configuration. This can be done by setting the kubectlPath
in your Garden configuration to the path where kubectl
is installed on your system. Here's an example of how you can do this:
yaml
providers:
- name: kubernetes
kubectlPath: ${local.env.GARDEN_KUBECTL_PATH}?
In this example, GARDEN_KUBECTL_PATH
would be an environment variable pointing to the path where kubectl
is installed on your system. Please note that Garden may make some assumptions with respect to the kubectl
version, so it is suggested to only use this when necessary.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------limited-crayon-56213
10/04/2023, 1:35 PM