go-hello-world-chart

by wasilak

Helm chartv1.8.3App 1.8.3Verified publisher

A Helm chart for go-hello-world

About this chart

go-hello-world-chart

A Helm chart for go-hello-world

Overview

go-hello-world is a reference implementation for Kubernetes deployment patterns. It includes:

  • Multiple HTTP routing framework implementations (chi, echo, fiber, gin, gorilla)
  • Integrated observability with OpenTelemetry
  • Prometheus metrics collection
  • Structured logging with slog
  • Docker container support with multi-architecture builds
  • Comprehensive CLI arguments for flexible configuration

This Helm chart simplifies deployment to Kubernetes and makes the application discoverable through container registries.

Installation

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.0+

Quick Start - OCI Registry

Install directly from GitHub Container Registry (GHCR):

helm install go-hello-world oci://ghcr.io/wasilak/go-hello-world-chart

Install with Custom Values

helm install go-hello-world oci://ghcr.io/wasilak/go-hello-world-chart \
  --set replicaCount=3 \
  --set service.type=LoadBalancer

Install from Local Chart

If developing locally:

helm install go-hello-world ./charts/go-hello-world

Specify Version

Install a specific chart version:

helm install go-hello-world oci://ghcr.io/wasilak/go-hello-world-chart:0.5.2

Configuration

The following table lists the configurable parameters of the go-hello-world chart and their default values.

Example: Custom Replica Count

replicaCount: 3

Example: LoadBalancer Service

service:
  type: LoadBalancer

Example: Enable OpenTelemetry

args:
  - "-listen-addr=:3000"
  - "-log-format=json"
  - "-log-level=info"
  - "-otel-enabled"

env:
  - name: "OTEL_SERVICE_NAME"
    value: "go-hello-world"
  - name: NODE_IP
    valueFrom:
      fieldRef:
        fieldPath: status.hostIP
  - name: "OTEL_EXPORTER_OTLP_ENDPOINT"
    value: "http://$(NODE_IP):4318"

Example: Custom Logging Configuration

args:
  - "-listen-addr=:3000"
  - "-log-format=json"
  - "-log-level=debug"

Maintainers

NameEmailUrl
wasilak[email protected]

Values

KeyTypeDefaultDescription
annotationsobject{}
args[0]string"-listen-addr=:3000"
args[1]string"-log-format=json"
args[2]string"-log-level=info"
env[0].namestring"OTEL_SERVICE_NAME"
env[0].valuestring"go-hello-world"
env[1].namestring"NODE_IP"
env[1].valueFrom.fieldRef.fieldPathstring"status.hostIP"
env[2].namestring"OTEL_EXPORTER_OTLP_ENDPOINT"
env[2].valuestring"http://$(NODE_IP):4318"
image.pullPolicystring"IfNotPresent"
image.repositorystring"ghcr.io/wasilak/go-hello-world"
image.tagstring"{{ .Chart.AppVersion }}"
imagePullPolicystring"Always"
podAnnotationsobject{}
replicaCountstring"1"
service.namestring"go-hello-world"
service.portint3000
service.targetPortint3000
service.typestring"ClusterIP"

Accessing the Application

After installation, you can access the application in several ways:

Port Forward (for testing)

kubectl port-forward svc/go-hello-world 3000:3000

Then open http://localhost:3000 in your browser.

Via Ingress

Create an ingress resource to expose the application:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: go-hello-world
spec:
  ingressClassName: nginx
  rules:
    - host: go-hello-world.example.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: go-hello-world
                port:
                  number: 3000

Via LoadBalancer

If you set service.type=LoadBalancer:

kubectl get svc go-hello-world

Use the external IP to access the application.

Application Arguments

The application supports the following command-line arguments:

ArgumentDefaultDescription
-listen-addr:3000Address to listen on
-log-formatjsonLog format (json, text)
-log-levelinfoLog level (debug, info, warn, error)
-otel-enabledfalseEnable OpenTelemetry instrumentation

Upgrading

To upgrade an existing installation:

helm upgrade go-hello-world oci://ghcr.io/wasilak/go-hello-world-chart

With custom values:

helm upgrade go-hello-world oci://ghcr.io/wasilak/go-hello-world-chart \
  --set replicaCount=5

Uninstalling

To remove the release:

helm uninstall go-hello-world

Troubleshooting

Pod is not starting

Check pod status and logs:

# Check pod status
kubectl get pods -l app=go-hello-world

# View pod logs
kubectl logs -l app=go-hello-world

# Describe pod for events
kubectl describe pod -l app=go-hello-world

Application is not accessible

Verify service is running:

kubectl get svc go-hello-world
kubectl get endpoints go-hello-world

Test connectivity:

kubectl run -it --rm debug --image=busybox --restart=Never -- wget -O- http://go-hello-world:3000

Image pull errors

Verify image repository and tag:

# Check image pull policy
kubectl get deployment go-hello-world -o yaml | grep -A5 image

# Pull the image manually to test
docker pull ghcr.io/wasilak/go-hello-world:1.8.2

Support


Autogenerated from chart metadata using helm-docs v1.14.2

Deploy go-hello-world-chart with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has go-hello-world-chart 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 chartgo-hello-world-chart is pinned at v1.8.3 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