nginx-ingress-controller

by joaquinito2051

Helm chartv9.3.18App 1.4.0

NGINX Ingress Controller is an Ingress controller that manages external access to HTTP services in a Kubernetes cluster using NGINX.

About this chart

NGINX Ingress Controller packaged by Bitnami

NGINX Ingress Controller is an Ingress controller that manages external access to HTTP services in a Kubernetes cluster using NGINX.

Overview of NGINX Ingress Controller

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
$ helm install my-release bitnami-azure/nginx-ingress-controller

Introduction

Bitnami charts for Helm are carefully engineered, actively maintained and are the quickest and easiest way to deploy containers on a Kubernetes cluster that are ready to handle production workloads.

This chart bootstraps a ingress-nginx deployment on a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
$ helm install my-release bitnami-azure/nginx-ingress-controller

These commands deploy nginx-ingress-controller on the Kubernetes cluster in the default configuration.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]

Common parameters

NameDescriptionValue
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
namespaceOverrideString to fully override common.names.namespace""
commonLabelsAdd labels to all the deployed resources{}
commonAnnotationsAdd annotations to all the deployed resources{}
extraDeployArray of extra objects to deploy with the release[]
clusterDomainKubernetes cluster domain namecluster.local

Nginx Ingress Controller parameters

NameDescriptionValue
image.registryNginx Ingress Controller image registrydocker.io
image.repositoryNginx Ingress Controller image repositorybitnami/nginx-ingress-controller
image.tagNginx Ingress Controller image tag (immutable tags are recommended)1.3.0-debian-11-r9
image.digestNginx Ingress Controller image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyNginx Ingress Controller image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
containerPortsController container ports to open{}
hostAliasesDeployment pod host aliases[]
configCustom configuration options for NGINX{}
proxySetHeadersCustom headers before sending traffic to backends{}
addHeadersCustom headers before sending response traffic to the client{}
defaultBackendServiceDefault 404 backend service; required only if defaultBackend.enabled = false""
electionIDElection ID to use for status updateingress-controller-leader
reportNodeInternalIpIf using hostNetwork=true, setting reportNodeInternalIp=true, will pass the flag report-node-internal-ip-address to Nginx Ingress Controllerfalse
watchIngressWithoutClassProcess Ingress objects without ingressClass annotation/ingressClassName fieldfalse
ingressClassResource.nameName of the IngressClass resourcenginx
ingressClassResource.enabledCreate the IngressClass resourcetrue
ingressClassResource.defaultSet the created IngressClass resource as default classfalse
ingressClassResource.controllerClassIngressClass identifier for the controllerk8s.io/ingress-nginx
ingressClassResource.parametersOptional parameters for the controller{}
publishService.enabledSet the endpoint records on the Ingress objects to reflect those on the servicefalse
publishService.pathOverrideAllows overriding of the publish service to bind to""
scope.enabledLimit the scope of the controller.false
scope.namespaceScope namespace. Defaults to .Release.Namespace""
configMapNamespaceAllows customization of the configmap / nginx-configmap namespace""
tcpConfigMapNamespaceAllows customization of the tcp-services-configmap namespace""
udpConfigMapNamespaceAllows customization of the udp-services-configmap namespace""
maxmindLicenseKeyLicense key used to download Geolite2 database""
dhParamA base64ed Diffie-Hellman parameter""
tcpTCP service key:value pairs{}
udpUDP service key:value pairs{}
commandOverride default container command (useful when using custom images)[]
argsOverride default container args (useful when using custom images)[]
lifecycleHooksfor the %%MAIN_CONTAINER_NAME%% container(s) to automate configuration before or after startup{}
extraArgsAdditional command line arguments to pass to nginx-ingress-controller{}
extraEnvVarsExtra environment variables to be set on Nginx Ingress container[]
extraEnvVarsCMName of a existing ConfigMap containing extra environment variables""
extraEnvVarsSecretName of a existing Secret containing extra environment variables""

Nginx Ingress deployment / daemonset parameters

NameDescriptionValue
kindInstall as Deployment or DaemonSetDeployment
daemonset.useHostPortIf kind is DaemonSet, this will enable hostPort for TCP/80 and TCP/443false
daemonset.hostPortsHTTP and HTTP

Deploy nginx-ingress-controller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nginx-ingress-controller on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnginx-ingress-controller is pinned at v9.3.18 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply