hello

by cloudecho

Helm chartv0.1.2App 0.1.0Verified publisher

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.

ParameterDescriptionDefault
replicaCount1
image.repositorycloudecho/hello
image.pullPolicyIfNotPresent
image.tagOverrides the image tag whose default is the chart appVersion.""
imagePullSecrets[]
nameOverride""
fullnameOverride""
serviceAccount.createSpecifies whether a service account should be createdfalse
serviceAccount.annotationsAnnotations to add to the service account{}
serviceAccount.nameThe 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.typeClusterIP
service.port8080
ingress.enabledfalse
ingress.className""
ingress.annotations{}
ingress.tls[]
resources{}
autoscaling.enabledfalse
autoscaling.minReplicas1
autoscaling.maxReplicas100
autoscaling.targetCPUUtilizationPercentage80
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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charthello is pinned at v0.1.2 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