Log in to Corewide IaC registry

Once you have a Corewide Solutions Portal account, this one-time action will use your browser session to retrieve credentials:

 shellterraform login solutions.corewide.com
Provision instructions

Initialize mandatory providers:

Copy and paste into your Terraform configuration and insert the variables:

 hclmodule "tf_k8s_ingress_nginx" {
  source  = "solutions.corewide.com/kubernetes/tf-k8s-ingress-nginx/helm"
  version = "~> 5.3.1"

  # specify module inputs here or try one of the examples below
  ...
}

Initialize the setup:

 shellterraform init
Define update strategy

Corewide DevOps team strictly follows Semantic Versioning Specification to provide our clients with products that have predictable upgrades between versions. We recommend pinning patch versions of our modules using pessimistic constraint operator (~>) to prevent breaking changes during upgrades.

To get new features during the upgrades (without breaking compatibility), use ~> 5.3 and run terraform init -upgrade

For the safest setup, use strict pinning with version = "5.3.1"

v5.3.1 released 1 month, 1 week ago
New version approx. every 6 weeks

Deploy Ingress Nginx with cert-manager and required parameters only:

 hclmodule "ingress" {
  source  = "solutions.corewide.com/kubernetes/tf-k8s-ingress-nginx/helm"
  version = "~> 5.3"

  acme_email = "[email protected]"
}

NOTE: Values of annotations and labels must always be passed as strings regardless of their actual type.

Deploy Ingress Nginx with custom configuration and cert-manager:

 hclmodule "ingress" {
  source  = "solutions.corewide.com/kubernetes/tf-k8s-ingress-nginx/helm"
  version = "~> 5.3"

  acme_email = "[email protected]"

  cert_manager = {
    version = "1.10.0"
  }

  ingress_nginx = {
    name         = "ingress"
    namespace    = "ingress"
    replicas     = 3
    helm_timeout = 600

    custom_values = [
      {
        name  = "controller.metrics.serviceMonitor.additionalLabels\\.app\\.kubernetes\\.io/name"
        value = "ingress"
      },
    ]
  }
}
Variable Description Type Default Required Sensitive
acme_email E-mail that Let's Encrypt cluster issuer will use to request certificates string yes no
k8s_flavor Name of managed Kubernetes to enable cloud-specific adjustments. Applicable values are: aks or eks string yes no
cert_manager Cert-manager parameters. The parameters are passed to tf-k8s-cert-manager module any {} no no
ingress_nginx Ingress Nginx parameters object {} no no
ingress_nginx.create_namespace Indicates creation of dedicated namespace for Ingress Nginx deployment bool true no no
ingress_nginx.custom_values A list of custom values for Ingress Nginx Helm Chart list(object) no no
ingress_nginx.custom_values[*].name Full name of the custom value to be set string yes no
ingress_nginx.custom_values[*].type Type of the value to be set (valid options are auto and string) string auto no no
ingress_nginx.custom_values[*].value Value of the custom value to be set any yes no
ingress_nginx.enable_metrics Enable Prometheus metrics of Ingress Nginx bool true no no
ingress_nginx.enable_real_ip_detection Enable/disable Ingress Nginx Real IP detection bool true no no
ingress_nginx.helm_timeout Time in seconds for Helm resource to install in Kubernetes number 600 no no
ingress_nginx.name Name to override Ingress Nginx release name string ingress-nginx no no
ingress_nginx.namespace Namespace to install Ingress Nginx into string ingress-nginx no no
ingress_nginx.replicas Number of Ingress Nginx controller replicas number 2 no no
ingress_nginx.version Version of Ingress Nginx Helm chart string 4.6.1 no no
Output Description Type Sensitive
ingress_class Name of Ingress Class of Ingress Nginx attribute no
ingress_hostname Hostname of Ingress Nginx Load Balancer computed no
ingress_ip External IP of Ingress Nginx Load Balancer computed no
ingress_nginx_hostname Hostname of Ingress Nginx Load Balancer computed no
ingress_nginx_ip External IP of Ingress Nginx Load Balancer computed no
Dependency Version Kind
terraform >= 1.3 CLI
hashicorp/helm ~> 2.5 provider
hashicorp/kubernetes ~> 2.9 provider
tf-k8s-cert-manager ~> 1.0 module

Not sure where to start?
Let's find your perfect match.