nginx-test
Chart for the nginx server
About this chart
NGINX
NGINX (pronounced "engine-x") is an open source reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer, HTTP cache, and a web server (origin server).
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
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 Open Source 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 2.11+ or Helm 3.0-beta3+
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
These commands deploy NGINX Open Source 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 Open Source chart and their default values.
| 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) |
image.registry | NGINX image registry | docker.io |
image.repository | NGINX Image name | bitnami/nginx |
image.tag | NGINX Image tag | {TAG_NAME} |
image.pullPolicy | NGINX image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
nameOverride | String to partially override nginx.fullname template | nil |
fullnameOverride | String to fully override nginx.fullname template | nil |
staticSiteConfigmap | Name of existing ConfigMap with the server static content | nil |
staticSitePVC | Name of existing PVC with the server static content | nil |
cloneStaticSiteFromGit.enabled | Get the server static content from a git repository | false |
cloneStaticSiteFromGit.image.registry | Git image registry | docker.io |
cloneStaticSiteFromGit.image.repository | Git image name | bitnami/git |
cloneStaticSiteFromGit.image.tag | Git image tag | {TAG_NAME} |
cloneStaticSiteFromGit.image.pullPolicy | Git image pull policy | Always |
cloneStaticSiteFromGit.image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
cloneStaticSiteFromGit.repository | Repository to clone static content from | nil |
cloneStaticSiteFromGit.branch | Branch inside the git repository | nil |
cloneStaticSiteFromGit.interval | Interval for sidecar container pull from the repository | 60 |
serverBlock | Custom NGINX server block | nil |
existingServerBlockConfigmap | Name of existing PVC with custom NGINX server block | nil |
replicaCount | Number of replicas to deploy | 1 |
podAnnotations | Pod annotations | {} |
affinity | Map of node/pod affinities | {} (The value is evaluated as a template) |
nodeSelector | Node labels for pod assignment | {} (The value is evaluated as a template) |
tolerations | Tolerations for pod assignment | [] (The value is evaluated as a template) |
resources | Resource requests/limit | {} |
livenessProbe | Deployment Liveness Probe | See values.yaml |
readinessProbe | Deployment Readiness Probe | See values.yaml |
service.type | Kubernetes Service type | LoadBalancer |
service.port | Service HTTP port | 80 |
service.httpsPort | Service HTTPS port | 443 |
service.nodePorts.http | Kubernetes http node port | "" |
service.nodePorts.https | Kubernetes https node port | "" |
service.externalTrafficPolicy | Enable client source IP preservation | Cluster |
service.loadBalancerIP | LoadBalancer service IP address | "" |
service.annotations | Service annotations | {} |
ingress.enabled | Enable ingress controller resource | false |
ingress.certManager | Add annotations for cert-manager | false |
ingress.selectors | Ingress selectors for labelSelector option | [] |
ingress.annotations | Ingress annotations | [] |
ingress.hosts[0].name | Hostname to your NGINX installation | nginx.local |
ingress.hosts[0].path | Path within the url structure | / |
ingress.tls[0].hosts[0] | TLS hosts | nginx.local |
ingress.tls[0].secretName | TLS Secret (certificates) | nginx.local-tls |
ingress.secrets[0].name | TLS Secret Name | nil |
ingress.secrets[0].certificate | TLS Secret Certificate | nil |
ingress.secrets[0].key | TLS Secret Key | nil |
metrics.enabled | Start a side-car prometheus exporter | false |
metrics.image.registry | NGINX Prometheus exporter image registry | docker.io |
metrics.image.repository | NGINX Prometheus exporter image name | bitnami/nginx-exporter |
metrics.image.tag | NGINX Prometheus exporter image tag | {TAG_NAME} |
metrics.image.pullPolicy | NGINX Prometheus exporter image pull policy | IfNotPresent |
metrics.image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
metrics.podAnnotations | Additional annotations for NGINX Prometheus exporter pod(s) |
Deploy nginx-test with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nginx-test 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-test is pinned at v5.2.4 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