kubernetes-application

datarootsio/kubernetes-application/module

Terraform Module HCL MODULE

Terraform module for a kubernetes application

Install
module "kubernetes-application" {
source = "datarootsio/kubernetes-application/module"
version = "0.1.14"
}
plain text: /constructs/tfmod-datarootsio-kubernetes-application-module/install.txt
⭐ Source on GitHub 📦 Registry page
README

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. ![maintained by dataroots](https://dataroots.io) ![Terraform 0.12](https://www.terraform.io) ![Terraform Registry](https://registry.terraform.io/modules/datarootsio/kubernetes-application/module/) ![tests](https://github.com/datarootsio/terraform-module-kubernetes-application/actions) ![Go Report Card](https://goreportcard.com/report/github.com/datarootsio/terraform-module-kubernetes-application) Modules variables considerations This m

Inputs (29)
NameTypeDescriptionDefault
liveness_probesanyMap of liveness probes per container. Pass the regular terraform object as is : required
readiness_probesanyMap of readiness probes per container. Pass the regular terraform object as is : required
namespacestringThe namespace where this deployment will live. Must exists. required
namestringThe name of the deployment. Will be used for all other resources required
imageanyThe image to deploy. required
image_pull_secretslist(string)List of image pull secrets to use with the containers[]
pod_affinityany{}
environment_variables_from_secretanyMap of environment variables to inject in containers, from existing secrets.{}
portsanyMap of ports to expose, and associated settings.{}
max_surgestring"25%"
annotationsmap(string)Map of annotations to add on containers.{}
node_selectormap(string)Map of labels and values for node selection{}
image_pull_policystringPull policy for the images, see https://kubernetes.io/docs/concepts/containers/i"IfNotPresent"
commandanyCommand that the container will run{}
environment_variablesanyMap of environment variables to inject in containers.{}
strategystring"RollingUpdate"
argsanyArguments to pass to the container{}
replicasnumberThe number of replicas.1
inject_linkerdboolAdd the necessary annotations for linkerd injectionfalse
resources_limitsmapMap of resources limits to assign to the container{ "cpu": "0.2", "memory": "256Mi" }
resources_requestsmapMap of resources requests to assign to the container{ "cpu": "0.1", "memory": "128Mi" }
pod_anti_affinityany{}
hpaanysettings for the horizontal pod autoscaler{ "enabled": false, "max_replicas":
host_aliasesmap(list(string)){}
volume_mountsanyMap of volumes to mount.{}
Resources (5)
kubernetes_deploymentkubernetes_horizontal_pod_autoscalerkubernetes_ingresskubernetes_servicekubernetes_service_account
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.14
Cloud MODULE
★ Stars15
Forks9
Total downloads8.5k
Inputs29
Resources5
LicenseMIT
Namespacedatarootsio
Updated