hello
by cloudecho
A 'Hello World' program written in go lang.
About this chart
Hello
Hello World - A hello-world program written in go lang.
TL;DR;
$ helm repo add cloudecho https://cloudecho.github.io/charts/
$ helm repo update
$ helm install my-hello cloudecho/hello -n default --version=0.1.2
Introduction
This chart deploys hello on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes v1.14+
Installing the Chart
To install the chart with the release name my-hello:
$ helm install my-hello cloudecho/hello -n default --version=0.1.2
The command deploys hello on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-hello:
$ helm delete my-hello -n default
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 hello chart and their default values.
| Parameter | Description | Default |
|---|---|---|
| replicaCount | 1 | |
| image.repository | cloudecho/hello | |
| image.pullPolicy | IfNotPresent | |
| image.tag | Overrides the image tag whose default is the chart appVersion. | "" |
| imagePullSecrets | [] | |
| nameOverride | "" | |
| fullnameOverride | "" | |
| serviceAccount.create | Specifies whether a service account should be created | false |
| serviceAccount.annotations | Annotations to add to the service account | {} |
| serviceAccount.name | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | "" |
| podAnnotations | {} | |
| podSecurityContext | {} | |
| securityContext | {} | |
| service.type | ClusterIP | |
| service.port | 8080 | |
| ingress.enabled | false | |
| ingress.className | "" | |
| ingress.annotations | {} | |
| ingress.tls | [] | |
| resources | {} | |
| autoscaling.enabled | false | |
| autoscaling.minReplicas | 1 | |
| autoscaling.maxReplicas | 100 | |
| autoscaling.targetCPUUtilizationPercentage | 80 | |
| nodeSelector | {} | |
| tolerations | [] | |
| affinity | {} |
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example:
$ helm install my-hello cloudecho/hello -n default --version=0.1.2 --set replicaCount=1
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example:
$ helm install my-hello cloudecho/hello -n default --version=0.1.2 --values values.yaml
Deploy hello with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hello 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 charthello is pinned at v0.1.2 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