deployment
ballj/deployment/kubernetes
Creates an kubernetes deployment resource.
Terraform Kubernetes Deployment This terraform module deploys a deployment on kubernetes and adds a service. Usage `` module "deployment" { source = "ballj/deployment/kubernetes" version = "~> 2.4" image_name = "nginx" image_tag = "latest" namespace = "production" object_prefix = "nginx" ports = [ { name = "http" protocol = "TCP" container_port = "8080" service_port = "80" }, { name = "https" protocol = "TCP" container_port = "8443" service_port = "443" } ] volumes = [{ name = "html" type = "persistent_volume_claim" object_name = "nginx" readonly = false mounts = [{ mount_path = "/usr/share/nginx/html" }] }] labels = { "app.kubernetes.io/part-of" = "nginx" } env = { NGINX_HOST = "example.com", NGINX_ENTRYPOINT_QUIET_LOGS = 1 } env_secret = [{ name = "USERNAME" secret = app-secret key = "us
| Name | Type | Description | Default |
|---|---|---|---|
| image_name | string | Docker image to use | required |
| service_account_name | string | Service account name to add to the pod | "" |
| service_traffic_policy | string | Service external traffic policy | "Local" |
| init_user_image_name | string | Init container image name | "" |
| labels | map(string) | Labels to add | {} |
| ports | any | Ports to expose from container | [] |
| resources_limits_cpu | string | The maximum amount of compute resources allowed | "" |
| startup_probe_timeout | number | Timeout of the probe in seconds | 1 |
| init_connectivity_image_name | string | Tag to use for the init container | "bash" |
| network_policy_ingress | list(any) | Ingress policy to apply to deployment | [] |
| security_context_container_capabilities_add | string | Added capabilities | null |
| security_context_container_capabilities_drop | string | Removed capabilities | null |
| readiness_probe_enabled | bool | Enable the readyness probe | true |
| connectivity_check | list(object({ name = s | Env secrets to use for the init container | [] |
| post_start_scheme | string | Scheme of the http_get request | "HTTP" |
| startup_probe_initial_delay | number | Initial delay of the probe in seconds | 10 |
| startup_probe_period | number | Period of the probe in seconds | 1 |
| timeout_delete | string | Timeout for creating the deployment | "10m" |
| liveness_probe_period | number | Period of the probe in seconds | 10 |
| max_ready_seconds | number | The maximum time in seconds for a deployment to make progress before it is consi | 600 |
| custom_certificate_authority | list(string) | Certificate authorities to add to image | [] |
| … and 10 more inputs | |||
hostnameportsipselector_labels