nginx
Helm chartv1.1.1App 1.1.1
A Nginx Helm chart for Kubernetes
About this chart
nginx Helm chart
The Helm chart perform Nginx deployment to the Kubernetes cluster. With default parameters simple Nginx web-server will be installed and available via ClusterIP within Kubernetes CNI network.
Requirements
- In order to overwrite default nginx config, custom configmap should be created in advance and passed to the chart as
configmap_nameparameter. Example of custom ConfigMap:
apiVersion: v1
kind: ConfigMap
metadata:
name: configmap-nginx
data:
default.conf:
...
- When SSL support is enabled, a chart will be looking for TLS secrets. Secret name is expected in following format:
<domain_name>-tls. For example:
---
apiVersion: v1
kind: Secret
metadata:
name: example.com-tls
type: tls
data:
ca.crt:
...
cat.key:
...
The TLS data will be mounted to container's /etc/nginx/certs/<domain_name> directory.
Usage
In order to install chart: helm install -n nginx ./nginx --namespace mynamespace
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnginx is pinned at v1.1.1 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