nginx-ingress-controller

by microfunctionsio

Helm chartv7.5.0App 0.44.0Verified publisher

Chart for the nginx Ingress controller

About this chart

Nginx Ingress Controller

nginx-ingress is an Ingress controller that uses NGINX to manage external access to HTTP services in a Kubernetes cluster.

TL;DR

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/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 nginx-ingress 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. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.1.0

Installing the Chart

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

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/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

The following tables lists the configurable parameters of the Nginx Ingress Controller chart chart and their default values per section/component:

Global parameters

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)

Common parameters

ParameterDescriptionDefault
nameOverrideString to partially override common.names.fullnamenil
fullnameOverrideString to fully override common.names.fullnamenil
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release[] (evaluated as a template)

Nginx Ingress Controller parameters

ParameterDescriptionDefault
image.registryNginx Ingress Controller image registrydocker.io
image.repositoryNginx Ingress Controller image namebitnami/nginx-ingress-controller
image.tagNginx Ingress Controller image tag{TAG_NAME}
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
containerPorts.httpThe port that the controller container listens on for HTTP connections.80
containerPorts.httpsThe port that the controller container listens on for HTTPS connections.443
configNginx ConfigMap entries{}
addHeadersCustom headers to be added before sending responses to the client{}
proxySetHeadersCustom headers to be added before sending request to the backends for NGINX{}
reportNodeInternalIpIf using hostNetwork=true, setting reportNodeInternalIp=true, will pass the flag report-node-internal-ip-address to Nginx Ingress ControllerClusterFirst
defaultBackendServiceDefault 404 backend service; required only if defaultBackend.enabled = false""
electionIDElection ID to use for the status updateingress-controller-leader
ingressClassName of the ingress class to route through this controllernginx
publishService.enabledSet the endpoint records on the Ingress objects to reflect those on the servicefalse
publishService.pathOverrideOverride of the default publish-service name""
hostAliasesAdd deployment host aliases[]
scope.enabledLimit the scope of the ingress controllerfalse (watch all namespaces)
scope.namespaceNamespace to watch for ingress"" (use the release namespace)
configMapNamespaceThe nginx-configmap namespace name""
tcpConfigMapNamespaceThe tcp-services-configmap namespace name""
udpConfigMapNamespaceThe udp-services-configmap namespace name""
dhparamA base64 Diffie-Helman parameternil
tcpTCP service key:value pairs{}
udpUDP service key:value pairs{}
maxmindLicenseKeyMaxmind license key to download GeoLite2 Databases""
commandOverride default container command (useful when using custom images)nil
argsOverride default container args (useful when using custom images)nil
extraArgsAdditional command line arguments to pass to Nginx Ingress container{}
extraEnvVarsExtra environment variables to be set on Nginx Ingress container[]
extraEnvVarsCMName of existing ConfigMap containing extra env varsnil
extraEnvVarsSecretName of existing Secret containing extra env varsnil

Nginx Ingress deployment / daemonset parameters

ParameterDescriptionDefault
kindInstall as Deployment or DaemonSetDeployment
replicaCountDesired number of Controller pods1
daemonset.useHostPortIf kind is DaemonSet, this will enable hostPort for TCP/80 and TCP/443false
daemonset.hostPorts.httpIf daemonset.useHostPort is true and this is non-empty, it sets the hostPort"80"
daemonset.hostPorts.httpsIf daemonset.useHostPort is true and this is non-empty, it sets the hostPort"443"
hostNetworkIf the nginx deployment / daemonset should run on the host's network namespacefalse
dnsPolicyIf using hostNetwork=true, change to ClusterFirstWithHostNetClusterFirst
podSecurityContextController pods' Security ContextCheck values.yaml file
containerSecurityContextController containers' Security ContextCheck values.yaml file
resources.limitsThe resources limits for the Controller container{}
resources.requestsThe requested resources for the Controller container{}
livenessProbeLiveness probe configuration for ControllerCheck values.yaml file
`readines

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 v7.5.0 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