nginx-ingress-controller
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
| Parameter | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker image registry | nil |
global.imagePullSecrets | Global Docker registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
Common parameters
| Parameter | Description | Default |
|---|---|---|
nameOverride | String to partially override common.names.fullname | nil |
fullnameOverride | String to fully override common.names.fullname | nil |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
extraDeploy | Array of extra objects to deploy with the release | [] (evaluated as a template) |
Nginx Ingress Controller parameters
| Parameter | Description | Default |
|---|---|---|
image.registry | Nginx Ingress Controller image registry | docker.io |
image.repository | Nginx Ingress Controller image name | bitnami/nginx-ingress-controller |
image.tag | Nginx Ingress Controller image tag | {TAG_NAME} |
image.pullPolicy | Image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
containerPorts.http | The port that the controller container listens on for HTTP connections. | 80 |
containerPorts.https | The port that the controller container listens on for HTTPS connections. | 443 |
config | Nginx ConfigMap entries | {} |
addHeaders | Custom headers to be added before sending responses to the client | {} |
proxySetHeaders | Custom headers to be added before sending request to the backends for NGINX | {} |
reportNodeInternalIp | If using hostNetwork=true, setting reportNodeInternalIp=true, will pass the flag report-node-internal-ip-address to Nginx Ingress Controller | ClusterFirst |
defaultBackendService | Default 404 backend service; required only if defaultBackend.enabled = false | "" |
electionID | Election ID to use for the status update | ingress-controller-leader |
ingressClass | Name of the ingress class to route through this controller | nginx |
publishService.enabled | Set the endpoint records on the Ingress objects to reflect those on the service | false |
publishService.pathOverride | Override of the default publish-service name | "" |
hostAliases | Add deployment host aliases | [] |
scope.enabled | Limit the scope of the ingress controller | false (watch all namespaces) |
scope.namespace | Namespace to watch for ingress | "" (use the release namespace) |
configMapNamespace | The nginx-configmap namespace name | "" |
tcpConfigMapNamespace | The tcp-services-configmap namespace name | "" |
udpConfigMapNamespace | The udp-services-configmap namespace name | "" |
dhparam | A base64 Diffie-Helman parameter | nil |
tcp | TCP service key:value pairs | {} |
udp | UDP service key:value pairs | {} |
maxmindLicenseKey | Maxmind license key to download GeoLite2 Databases | "" |
command | Override default container command (useful when using custom images) | nil |
args | Override default container args (useful when using custom images) | nil |
extraArgs | Additional command line arguments to pass to Nginx Ingress container | {} |
extraEnvVars | Extra environment variables to be set on Nginx Ingress container | [] |
extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | nil |
extraEnvVarsSecret | Name of existing Secret containing extra env vars | nil |
Nginx Ingress deployment / daemonset parameters
| Parameter | Description | Default |
|---|---|---|
kind | Install as Deployment or DaemonSet | Deployment |
replicaCount | Desired number of Controller pods | 1 |
daemonset.useHostPort | If kind is DaemonSet, this will enable hostPort for TCP/80 and TCP/443 | false |
daemonset.hostPorts.http | If daemonset.useHostPort is true and this is non-empty, it sets the hostPort | "80" |
daemonset.hostPorts.https | If daemonset.useHostPort is true and this is non-empty, it sets the hostPort | "443" |
hostNetwork | If the nginx deployment / daemonset should run on the host's network namespace | false |
dnsPolicy | If using hostNetwork=true, change to ClusterFirstWithHostNet | ClusterFirst |
podSecurityContext | Controller pods' Security Context | Check values.yaml file |
containerSecurityContext | Controller containers' Security Context | Check values.yaml file |
resources.limits | The resources limits for the Controller container | {} |
resources.requests | The requested resources for the Controller container | {} |
livenessProbe | Liveness probe configuration for Controller | Check 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnginx-ingress-controller is pinned at v7.5.0 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