deployment
garbetjie/deployment/kubernetes
Terraform Module: Kubernetes Deployments ======================================== A very simple Terraform module used to easily create and manage a deployment consisting of a single container only. Usage ``hcl-terraform module k8s_deployment { name = "my-deployment" namespace = "default" image = "my/image:latest" args = [] } ` Inputs | Name | Description | Type | Default | Required | |------------------|--------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|---------|----------| | name | Name of the deployment. | string | | Yes | | namespace | Namespace in which to create the deployment. | string | | Yes | | image | Image to create the deployment with.
| Name | Type | Description | Default |
|---|---|---|---|
| image | string | required | |
| namespace | string | required | |
| name | string | required | |
| mount_host_paths | map(string) | {} | |
| init_containers | list(object({ args=list(string | [] | |
| mount_secrets | list(object({ secret = string, | [] | |
| cpu | number | 0.1 | |
| wait_for_rollout | bool | true | |
| env_from_secrets | set(string) | [] | |
| tolerations | list(object({ key = string, va | [] | |
| memory | number | 128 | |
| replicas | number | 1 | |
| labels | map(string) | {} | |
| node_selector | map(string) | {} | |
| env | map(string) | {} | |
| args | list(string) | [] |
namelabels