Comment on page
ephemeral-kubernetes
This feature is still experimental and only available in Garden
>=0.13.14
. Please let us know if you have any questions or if any issues come up!The
ephemeral-kubernetes
provider is a specialized version of the kubernetes
provider that allows to deploy applications to one of the ephemeral Kubernetes clusters provided by Garden.For information about using ephemeral Kubernetes clusters, please refer to Ephemeral Kubernetes clusters guide
Below is the full schema reference for the provider configuration. For an introduction to configuring a Garden project with providers, please look at our configuration guide.
The reference is divided into two sections. The first section contains the complete YAML schema, and the second section describes each schema key.
The values in the schema below are the default values.
providers:
- # List other providers that should be resolved before this one.
dependencies: []
# If specified, this provider will only be used in the listed environments. Note that an empty array effectively
# disables the provider. To use a provider in all environments, omit this field.
environments:
# The name of the provider plugin to use.
name: ephemeral-kubernetes
# Specify which namespace to deploy services to (defaults to the project name). Note that the framework generates
# other namespaces as well with this name as a prefix.
namespace:
# A valid Kubernetes namespace name. Must be a valid RFC1035/RFC1123 (DNS) label (may contain lowercase letters,
# numbers and dashes, must start with a letter, and cannot end with a dash) and must not be longer than 63
# characters.
name:
# Map of annotations to apply to the namespace when creating it.
annotations:
# Map of labels to apply to the namespace when creating it.
labels:
# Set this to null or false to skip installing/enabling the `nginx` ingress controller. Note: if you skip
# installing the `nginx` ingress controller for ephemeral cluster, your ingresses may not function properly.
setupIngressController: nginx
Type | Default | Required |
---|---|---|
array[object] | [] | No |
List other providers that should be resolved before this one.
Type | Default | Required |
---|---|---|
array[string] | [] | No |
Example:
providers:
- dependencies:
- exec
If specified, this provider will only be used in the listed environments. Note that an empty array effectively disables the provider. To use a provider in all environments, omit this field.
Type | Required |
---|---|
array[string] | No |
Example:
providers:
- environments:
- dev
- stage
The name of the provider plugin to use.
Type | Default | Required |
---|---|---|
string | "ephemeral-kubernetes" | Yes |
Example:
providers:
- name: "ephemeral-kubernetes"
Specify which namespace to deploy services to (defaults to the project name). Note that the framework generates other namespaces as well with this name as a prefix.
Type | Required |
---|---|
object | string | No |
A valid Kubernetes namespace name. Must be a valid RFC1035/RFC1123 (DNS) label (may contain lowercase letters, numbers and dashes, must start with a letter, and cannot end with a dash) and must not be longer than 63 characters.
Type | Required |
---|---|
string | No |
Map of annotations to apply to the namespace when creating it.
Type | Required |
---|---|
object | No |
Example:
providers:
- namespace: ''
...
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: 'false'
Map of labels to apply to the namespace when creating it.
Type | Required |
---|---|
object | No |
Set this to null or false to skip installing/enabling the
nginx
ingress controller. Note: if you skip installing the nginx
ingress controller for ephemeral cluster, your ingresses may not function properly.Type | Default | Required |
---|---|---|
string | "nginx" | No |
The following keys are available via the
${providers.<provider-name>}
template string key for ephemeral-kubernetes
providers.The primary namespace used for resource deployments.
Type |
---|
string |
The dynamic hostname assigned to the ephemeral cluster automatically, when an ephemeral cluster is created.
Type |
---|
string |
Last modified 1mo ago