1. Install Local Kubernetes
Last updated
Was this helpful?
Last updated
Was this helpful?
is our recommended option for local Kubernetes on Mac and Windows.
Please refer to their for how to download and install it (which is a pretty simple process).
Note: If you have an older version installed, you may need to update it in order to enable Kubernetes support.
Once installed, open Docker Desktop's preferences, go to the Kubernetes section, tick Enable Kubernetes
and save.
Garden can be used with on supported Linux platforms.
To install it, please follow .
Once installed, you need to add the microk8s
configuration to your ~/.kube/config
so that Garden knows how to access your cluster. We recommend exporting the config like this:
And then adding this to your .bashrc
/.zshrc
:
You also need to ensure microk8s commands can be run by the user that's running Garden, so that Garden can get its status and enable required extensions if necessary. To do this, add your user to the microk8s
group:
Note that in-cluster building is currently not supported with microk8s clusters.
Once Minikube and the appropriate driver for your OS are installed, you can start Minikube by running:
Make sure Minikube is running by typing minikube start
Then run minikube addons configure registry-creds
Select applicable container registry
Enter credentials
Make sure you run minikube addons enable registry-creds
Minikube should now be able to authenticate with your chosen cloud provider.
Alternatively, if you don't need an ingress controller, you can set setupIngressController: null
in your local-kubernetes
provider configuration and start the cluster without the above customization.
Note that in-cluster building is currently not supported with kind clusters.
For Minikube installation instructions, please see the .
You may also want to install a driver to run the Minikube VM. Please follow the and note the name of the driver you use. The driver you choose will likely vary depending on your OS/platform. We recommend for macOS and on most Linux distributions.
If you are working in a team and need to use an external registry, you can such as ECR. Alternatively, you can enable Minikube's registry-creds
addon, by following these steps:
For kind installation instructions, see the .
To use kind
with Garden you may need to start your cluster with extra port mappings to allow ingress controllers to run (see for more info):