nginx

by slamdev

Helm chartv0.0.21App 1.19.10

Helm chart to deploy [nginx](https://www.nginx.com). Chart supports environment variables inside of the nginx.conf file.

About this chart

nginx

Helm chart to deploy nginx.

Chart supports environment variables inside of the nginx.conf file.

Homepage: https://github.com/slamdev/helm-charts/tree/master/charts/nginx

Maintainers

NameEmailUrl
slamdev[email protected]

Values

KeyTypeDefaultDescription
additionalLabelsobject{}Custom labels to add into metadata
affinityobject{}affinity for scheduler pod assignment
deploymentAnnotationsobject{}annotations to add to the deployment
dnsmasq.enabledboolfalseenable simple dns server for nginx
envlist[]additional environment variables for the deployment
fullnameOverridestring""full name of the chart.
image.pullPolicystring"IfNotPresent"image pull policy
image.repositorystring"nginx"image repository
image.tagstring""image tag (chart's appVersion value will be used if not set)
imagePullSecretslist[]image pull secret for private images
ingress.annotationsobject{}ingress annotations
ingress.enabledboolfalseenables Ingress for nginx
ingress.hostslist[]ingress accepted hostnames
ingress.tlslist[]ingress TLS configuration
livenessProbe.httpGet.pathstring"/"path for liveness probe
livenessProbe.httpGet.portstring"http"port for liveness probe
nameOverridestring""override name of the chart
nginxConfstring"# nginx version: ENV_NGINX_VERSION_ENV\nuser nginx;\nworker_processes auto;\nerror_log /var/log/nginx/error.log warn;\npid /var/run/nginx.pid;\nevents {\n worker_connections 1024;\n}\nhttp {\n include /etc/nginx/mime.types;\n default_type application/octet-stream;\n log_format main '$remote_addr - $remote_user [$time_local] \"$request\" '\n '$status $body_bytes_sent \"$http_referer\" '\n '\"$http_user_agent\" \"$http_x_forwarded_for\" '\n '$request_time $upstream_response_time $pipe';\n access_log /var/log/nginx/access.log main;\n sendfile on;\n keepalive_timeout 65;\n server {\n listen 80;\n server_name localhost;\n location / {\n default_type text/plain;\n access_log off;\n error_log off;\n return 200 'ok';\n }\n }\n}"nginx config to provision inside of the container
nodeSelectorobject{}node for scheduler pod assignment
podAnnotationsobject{}annotations to add to the pod
podDisruptionBudgetobject{}disruption budget for pod
podSecurityContextobject{}specifies security settings for a pod
readinessProbe.httpGet.pathstring"/"path for readiness probe
readinessProbe.httpGet.portstring"http"port for readiness probe
replicaCountint1number of replicas for nginx deployment.
resourcesobject{}custom resource configuration
securityContextobject{}specifies security settings for a container
service.portint80service port
service.typestring"ClusterIP"service type
serviceAccount.annotationsobject{}annotations to add to the service account
serviceAccount.createboolfalsespecifies whether a service account should be created
serviceAccount.namestringnilthe name of the service account to use; if not set and create is true, a name is generated using the fullname template
tolerationslist[]tolerations for scheduler pod assignment
useDebugBinaryboolfalserun nginx-debug binary instead of normal one
volumeMountslist[]additional volume mounts
volumeslist[]additional volumes

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 v0.0.21 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