Using Remote Kubernetes
Last updated
Was this helpful?
Last updated
Was this helpful?
To use Garden to deploy to and test in a remote Kubernetes cluster you'll need to configure the kubernetes
provider. This requires:
A Kubernetes cluster (obviously).
Permissions to create Namespaces and to create Deployments, Daemonsets, Services and Ingresses within the Namespaces created.
A container registry that Garden can push images to and that your cluster can pull images from.
Ingress and DNS set up.
You can follow our for setting these up if you haven't done so already. In general there are a lot of ways to create these resources so feel free to use whatever approach you find most useful.
In any case, you'll need the following values at hand to configure the provider:
The context for your Kubernetes cluster ().
The name(s) and namespace(s) of the ImagePullSecret(s) used by your cluster ().
The hostname for your services ().
A TLS secret (optional) ().
When you have these values you can configure the kubernetes
provider like so:
Once you have this configured you can start adding actions for deploying K8s resources, installing Helm charts, running tests, and more in your remote cluster.