nginx

by KubeSphere

Helm chartv1.3.5App 1.18.0Apache-2.0Verified publisher

nginx is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by Igor Sysoev.

About this chart

Nginx

TL;DR;

helm install ks-main/nginx

Installing

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

helm install --name my-release ks-main/nginx

The command deploys the nginx chart on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Uninstalling

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.

Configuration

The following table lists the configurable parameters of the nginx chart and their default values.

ParameterDescriptionDefault
image.html.repositoryThe image holding static files to serve on Nginx, which locate in /html within the container; if specified, an initContainer will copy files under /html to /usr/share/nginx/html in Nginx containernone
image.html.tagThe tag of the image holding static files to serve on Nginxnone
image.html.pullPolicyThe pull policy of the image holding static files to serve on Nginxnone
image.nginx.repositoryThe image of Nginx containernginx
image.nginx.tagThe tag of the Nginx image1.16.0-alpine
image.nginx.pullPolicyThe pull policy of the Nginx imageIfNotPresent
service.typeThe service type, can be ClusterIP, NodePortClusterIP
service.portThe service port within the pod container80
service.nodePortIf service.type is NodePort, this value will be usednone
extraVolumesExtra volumes[]
extraMountVolumesExtra mount volumes[]
extraInitContainersExtra init containers[]
configurationFileCustom configuration file to override /etc/nginx/nginx.confnone
extraConfigurationFilesCustom configuration files to put under /etc/nginx/conf.dnone

Deploy nginx with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nginx 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 is pinned at v1.3.5 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