Enable Kubernetes
and save.microk8s
configuration to your ~/.kube/config
so that Garden knows how to access your cluster. We recommend exporting the config like this:.bashrc
/.zshrc
:microk8s
group:kind
with Garden you may need to start your cluster with extra port mappings to allow ingress controllers to run (see their docs for more info):setupIngressController: null
in your local-kubernetes
provider configuration and start the cluster without the above customization.local-kubernetes
plugin attempts to automatically detect which flavor of local Kubernetes is installed, and set the appropriate context for connecting to the local Kubernetes instance. In most cases you should not have to update your garden.yml
, since it uses the local-kubernetes
plugin by default, but you can configure it explicitly in your project-levelgarden.yml
as follows:garden
will choose whichever one is configured as the current context in your kubectl
configuration. If neither is set as the current context, the first available context is used.