hello3
by ericvh
A Helm chart for Kubernetes
About this chart
NGINX Example packaged for LFEdge
This is a simplified NGINX wrapper as part of a Helm tutorial for LFEdge. If you are really interested in NGINX, we encourage you to use the bitnami chart that this chart depends on.
TL;DR
$ helm repo add lfedge-demo https://ericvh.github.io/lfledge-catalog/charts
$ helm install example lfedge-demo/test3
Overview
This chart is setup to really have a single simple user-overridable value specifying the content of the index.html in the resulting NGINX instance. It can be set in the values.yaml or overridden when installing on the command line. The message is intended to be short and sweet and will be embedded into an HTML file represented by a configmap.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
Uninstalling the Chart
$ helm delete example
Parameters
Common parameters
| Name | Description | Value |
|---|---|---|
| content | Simple text content for web page | "Hello, World!" |
| nginx.service.type | which networking to use for kubernetes | ClusterIP |
Notes
Remember to setup the right networking to access your resulting page. The easiest path might be to use the LoadBalancer nginx.service.type which should allow you to access the resulting page via localhost.
$ helm install --set nginx.service.type=LoadBalancer example lfedge-demo/test3
Deploy hello3 with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hello3 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 charthello3 is pinned at v0.1.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