nginx-ingress-controller
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
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override common.names.fullname | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
namespaceOverride | String to fully override common.names.namespace | "" |
commonLabels | Add labels to all the deployed resources | {} |
commonAnnotations | Add annotations to all the deployed resources | {} |
extraDeploy | Array of extra objects to deploy with the release | [] |
clusterDomain | Kubernetes cluster domain name | cluster.local |
Nginx Ingress Controller parameters
| Name | Description | Value |
|---|---|---|
image.registry | Nginx Ingress Controller image registry | docker.io |
image.repository | Nginx Ingress Controller image repository | bitnami/nginx-ingress-controller |
image.tag | Nginx Ingress Controller image tag (immutable tags are recommended) | 1.3.0-debian-11-r9 |
image.digest | Nginx Ingress Controller image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | Nginx Ingress Controller image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
containerPorts | Controller container ports to open | {} |
hostAliases | Deployment pod host aliases | [] |
config | Custom configuration options for NGINX | {} |
proxySetHeaders | Custom headers before sending traffic to backends | {} |
addHeaders | Custom headers before sending response traffic to the client | {} |
defaultBackendService | Default 404 backend service; required only if defaultBackend.enabled = false | "" |
electionID | Election ID to use for status update | ingress-controller-leader |
reportNodeInternalIp | If using hostNetwork=true, setting reportNodeInternalIp=true, will pass the flag report-node-internal-ip-address to Nginx Ingress Controller | false |
watchIngressWithoutClass | Process Ingress objects without ingressClass annotation/ingressClassName field | false |
ingressClassResource.name | Name of the IngressClass resource | nginx |
ingressClassResource.enabled | Create the IngressClass resource | true |
ingressClassResource.default | Set the created IngressClass resource as default class | false |
ingressClassResource.controllerClass | IngressClass identifier for the controller | k8s.io/ingress-nginx |
ingressClassResource.parameters | Optional parameters for the controller | {} |
publishService.enabled | Set the endpoint records on the Ingress objects to reflect those on the service | false |
publishService.pathOverride | Allows overriding of the publish service to bind to | "" |
scope.enabled | Limit the scope of the controller. | false |
scope.namespace | Scope namespace. Defaults to .Release.Namespace | "" |
configMapNamespace | Allows customization of the configmap / nginx-configmap namespace | "" |
tcpConfigMapNamespace | Allows customization of the tcp-services-configmap namespace | "" |
udpConfigMapNamespace | Allows customization of the udp-services-configmap namespace | "" |
maxmindLicenseKey | License key used to download Geolite2 database | "" |
dhParam | A base64ed Diffie-Hellman parameter | "" |
tcp | TCP service key:value pairs | {} |
udp | UDP service key:value pairs | {} |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
lifecycleHooks | for the %%MAIN_CONTAINER_NAME%% container(s) to automate configuration before or after startup | {} |
extraArgs | Additional command line arguments to pass to nginx-ingress-controller | {} |
extraEnvVars | Extra environment variables to be set on Nginx Ingress container | [] |
extraEnvVarsCM | Name of a existing ConfigMap containing extra environment variables | "" |
extraEnvVarsSecret | Name of a existing Secret containing extra environment variables | "" |
Nginx Ingress deployment / daemonset parameters
| Name | Description | Value |
|---|---|---|
kind | Install as Deployment or DaemonSet | Deployment |
daemonset.useHostPort | If kind is DaemonSet, this will enable hostPort for TCP/80 and TCP/443 | false |
daemonset.hostPorts | HTTP 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnginx-ingress-controller is pinned at v9.3.18 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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