when I execute the command `garden plugins kuberne...
# 🤖|ask-kapa
l
@microscopic-river-74022 when I execute the command
garden plugins kubernetes cluster-init
, I'm receiving this output :
Copy code
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 ?
m
Please stand by @limited-crayon-56213 as I search the knowledge base. I normally take about 20 seconds or so. :wave:
---------------------- Garden interacts with your Kubernetes cluster using the Kubernetes API and
kubectl
. 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:
Copy code
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: ----------------------
l
I am using a remote provider as a Kubernetes cluster. Can you give me a real-life example of the project.garden.yml file should look like, when I'm interacting with a remote cluster ?
can you give me a real-life example of the value og kubectlPath ?