kubernetes-application
datarootsio/kubernetes-application/module
Terraform module for a kubernetes application
Terraform module Kubernetes application This is a module that deploys an opinionated kubernetes application, consisting of a Deployment and its associated resources (service, service account, hpa, ingress). The goal is to provide a "Helm like" terraform module, allowing simple k8s deployments with no need to reinvent the wheel or duplicate the code too much.      Modules variables considerations This m
| Name | Type | Description | Default |
|---|---|---|---|
| liveness_probes | any | Map of liveness probes per container. Pass the regular terraform object as is : | required |
| readiness_probes | any | Map of readiness probes per container. Pass the regular terraform object as is : | required |
| namespace | string | The namespace where this deployment will live. Must exists. | required |
| name | string | The name of the deployment. Will be used for all other resources | required |
| image | any | The image to deploy. | required |
| image_pull_secrets | list(string) | List of image pull secrets to use with the containers | [] |
| pod_affinity | any | {} | |
| environment_variables_from_secret | any | Map of environment variables to inject in containers, from existing secrets. | {} |
| ports | any | Map of ports to expose, and associated settings. | {} |
| max_surge | string | "25%" | |
| annotations | map(string) | Map of annotations to add on containers. | {} |
| node_selector | map(string) | Map of labels and values for node selection | {} |
| image_pull_policy | string | Pull policy for the images, see https://kubernetes.io/docs/concepts/containers/i | "IfNotPresent" |
| command | any | Command that the container will run | {} |
| environment_variables | any | Map of environment variables to inject in containers. | {} |
| strategy | string | "RollingUpdate" | |
| args | any | Arguments to pass to the container | {} |
| replicas | number | The number of replicas. | 1 |
| inject_linkerd | bool | Add the necessary annotations for linkerd injection | false |
| resources_limits | map | Map of resources limits to assign to the container | {
"cpu": "0.2",
"memory": "256Mi"
} |
| resources_requests | map | Map of resources requests to assign to the container | {
"cpu": "0.1",
"memory": "128Mi"
} |
| pod_anti_affinity | any | {} | |
| hpa | any | settings for the horizontal pod autoscaler | {
"enabled": false,
"max_replicas": |
| host_aliases | map(list(string)) | {} | |
| volume_mounts | any | Map of volumes to mount. | {} |