Getting Started with ohMyHelm
Step-by-step guide to your first Kubernetes deployment with ohMyHelm: add the Helm repository, configure the chart, test locally, and deploy.
Getting Started with ohMyHelm
In this guide, you will create a working Kubernetes deployment with ohMyHelm in just a few minutes — from setting up Chart.yaml and rendering locally with helm template to deploying the finished release to your cluster.
Prerequisites
Make sure the following tools are installed and ready to use:
- Helm 3 or newer:
helm version - kubectl with access to a Kubernetes cluster:
kubectl cluster-info
End-to-End Tutorial: Web Application as a Chart Dependency
In production workflows, you include ohMyHelm as a Helm dependency in your own application chart. This keeps your configuration values cleanly versioned in Git.
Step 1: Create the Chart Directory
mkdir acme-demo-chart
cd acme-demo-chart
Step 2: Create Chart.yaml
Create Chart.yaml pointing to the official Helm repository URL:
apiVersion: v2
name: acme-demo
description: Example application with ohMyHelm
type: application
version: 0.1.0
appVersion: "1.0.0"
dependencies:
- name: ohmyhelm
alias: web
repository: https://gitlab.com/api/v4/projects/28993678/packages/helm/stable
version: 1.18.0
Step 3: Create values.yaml
Configure the web alias with Chart mode enabled, container resources, health checks, and a ClusterIP Service:
web:
chart:
enabled: true
fullnameOverride: "acme-web"
replicaCount: 2
container:
image: nginxinc/nginx-unprivileged:1.27-alpine
ports:
- name: http
containerPort: 8080
protocol: TCP
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 250m
memory: 128Mi
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 5
periodSeconds: 5
service:
type: ClusterIP
ports:
- name: http
port: 80
targetPort: http
protocol: TCP
Step 4: Download Dependencies and Test Locally
Download the ohMyHelm chart and render the manifests locally with helm template beforehand:
helm dependency update
helm template acme-demo . --namespace acme-dev
Inspect the generated Kubernetes resources (ServiceAccount, Service, Deployment). All resources use the name acme-web and include the defined probes and resource limits.
Step 5: Install into the Cluster
Install the chart into a dedicated namespace:
helm upgrade --install acme-demo . \
--namespace acme-dev \
--create-namespace
Step 6: Verify the Deployment
Check the status of the Pods and test the Service locally via port forwarding:
kubectl get pods,svc -n acme-dev -l app=acme-web
kubectl port-forward -n acme-dev svc/acme-web 8080:80
Then open http://localhost:8080 in your browser or test the endpoint using curl http://localhost:8080.
Alternative: Direct Installation Without a Custom Chart
For quick tests, you can also install ohMyHelm directly from the Helm repository without creating your own Chart.yaml:
helm repo add ohmyhelm https://gitlab.com/api/v4/projects/28993678/packages/helm/stable
helm repo update
Create a my-values.yaml file (here without an alias level, directly under chart:):
chart:
enabled: true
fullnameOverride: "acme-quicktest"
container:
image: nginxinc/nginx-unprivileged:1.27-alpine
ports:
- name: http
containerPort: 8080
protocol: TCP
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 200m
memory: 128Mi
service:
type: ClusterIP
ports:
- name: http
port: 80
targetPort: http
protocol: TCP
Install the release directly from the repository:
helm upgrade --install acme-quicktest ohmyhelm/ohmyhelm \
--version 1.18.0 \
--namespace acme-dev \
--create-namespace \
-f my-values.yaml
Bundling Multiple Services in One Chart
Using multiple alias entries in the same Chart.yaml, you can combine frontend, backend, and helper resources in a single release:
apiVersion: v2
name: acme-stack
version: 0.1.0
dependencies:
- name: ohmyhelm
alias: frontend
repository: https://gitlab.com/api/v4/projects/28993678/packages/helm/stable
version: 1.18.0
- name: ohmyhelm
alias: api
repository: https://gitlab.com/api/v4/projects/28993678/packages/helm/stable
version: 1.18.0
- name: ohmyhelm
alias: shared-helpers
repository: https://gitlab.com/api/v4/projects/28993678/packages/helm/stable
version: 1.18.0
In values.yaml, configure each alias in its own top-level block (frontend:, api:, shared-helpers:).
Cleanup and Troubleshooting
# Inspect rendered manifests of a release
helm get manifest acme-demo -n acme-dev
# View events and Pod logs if startup issues occur
kubectl describe pod -n acme-dev -l app=acme-web
kubectl logs -n acme-dev -l app=acme-web
# Uninstall the release
helm uninstall acme-demo -n acme-dev
Next Steps
- Usage and Values Reference — All configuration keys in detail
- Examples and Use Cases — Production-ready templates for StatefulSets, Ingress, sidecars, and GitOps
- Chart Mode — Dive deeper into workloads, probes, environment variables, and RBAC
- Helper Functions — Use Secrets, ConfigMaps, Ingress, and
manifests:standalone