Managing Kubernetes is rarely difficult because of a shortage of tools. The challenge is knowing what is happening inside a cluster quickly enough to make the right operational decision. When a Deployment stalls, a Pod restarts repeatedly or a Service has no endpoints, an accessible graphical interface can shorten the time between observing a symptom and finding its cause.
Headlamp is an open-source Kubernetes graphical management application maintained under Kubernetes SIG UI. It works as a desktop client or a browser-based application deployed inside a cluster. In both modes, Kubernetes authentication and role-based access control (RBAC) determine what a user can actually do. The Kubernetes project published a Dashboard-to-Headlamp migration guide in July 2026.
This practical tutorial covers installation on macOS, Ubuntu and Windows, configuration of multiple Kubernetes contexts, deployment with Helm, secure authentication, private EKS access, metrics, plugins and a short Hello World exercise. You do not need to purchase a desktop license to follow it.
Documentation reviewed: November 25, 2026. Commands are based on official documentation and reviewed for consistency, but were not executed against live macOS, Windows or Kubernetes environments for this article. Example output is illustrative. Production settings must be validated against the approved versions and policies of your organization.
1. What is Headlamp and how does it work?
Headlamp provides a graphical resource browser for Kubernetes. Its frontend displays objects and actions, while its backend communicates with the Kubernetes API using the configured identity. It does not replace the Kubernetes API, kubectl, GitOps or a dedicated observability platform.
Typical uses include inspecting Pods, Deployments, Services, Nodes, events, custom resources, resource manifests, container logs and, where authorized, opening terminals or modifying resources. Plugins extend the interface with domain-specific views.

Figure 1. Two deployment models. The Kubernetes API remains the authorization boundary in both cases.
| Capability | Desktop installation | In-cluster installation |
|---|---|---|
| Where it runs | Engineer workstation | Kubernetes Deployment |
| Interface | Desktop GUI | Browser |
| Cluster-side installation | Not required | Required |
| Authentication | kubeconfig and supported exec credentials | User token or OIDC |
| Shared team access | Not intended | Supported |
| Private API connectivity | Workstation must reach API | Headlamp backend must reach API |
| Operational overhead | Local application updates | Workload, access, TLS and release management |
Start with desktop if you already have working kubectl access. Choose the web deployment when a team needs shared browser access or workstations cannot reach a private API directly.
2. Prerequisites and preparation
| Requirement | Why it matters |
|---|---|
| Kubernetes cluster | Local or managed cluster with working API |
| kubectl | Independent connectivity and permission verification |
| kubeconfig | Desktop cluster identity and endpoint configuration |
| Helm | Required only for the Helm-based web installation |
| Network access | Reach the API or approved Headlamp web endpoint |
| Permissions | Read resources or install components as appropriate |
| Metrics API | Optional CPU and memory visibility |
Install kubectl using the official Kubernetes installation guide. Select a client version within the supported version skew of your API server. If you need Helm, use the official Helm installation guide.
Run the following commands before installing Headlamp. They work in Bash, Zsh and PowerShell:
kubectl version --client
kubectl config get-contexts
kubectl config current-context
kubectl cluster-info
kubectl get pods -n default
kubectl auth can-i list pods -n default
Code language: PHP (php)
A read-only identity may not be permitted to list Nodes or system namespaces. Test a namespace you are actually authorized to inspect. A forbidden response is not automatically a networking problem.

Figure 2. Install, authenticate, verify and harden in that order. Complete the lab before exposing a shared dashboard.
3. Install Headlamp on macOS
Step 1: Check the workstation
sw_vers
uname -m
brew --version
arm64 identifies Apple Silicon; x86_64 generally indicates Intel or an emulated shell. If Homebrew is not installed, follow the official Homebrew setup instructions and its shell configuration guidance.
Step 2: Install Headlamp and kubectl
brew update
brew install --cask headlamp
<em># Optional if kubectl is not already installed:</em>
brew install kubernetes-cli
Code language: HTML, XML (xml)
Step 3: Verify installation and launch
brew list --cask headlamp
kubectl config get-contexts
open -a Headlamp
Code language: JavaScript (javascript)
Select an available Kubernetes context on Headlamp’s home screen. Open a namespace you can access and inspect its workloads. You should not need a Headlamp Deployment inside Kubernetes when using the desktop client.
Step 4: Upgrade or remove the desktop application
brew upgrade --cask headlamp
<em># Only when you want to remove the application:</em>
brew uninstall --cask headlamp
Code language: PHP (php)
Removing the desktop application is not the same as deleting cluster workloads.
4. Install Headlamp on Linux (Ubuntu, Debian and Fedora)
Headlamp is available as Flatpak, AppImage and release archives. A desktop graphical session is necessary for the normal desktop application. For a headless administration server, consider kubectl/K9s or the web deployment in Section 8.
Step 1: Install Flatpak
Ubuntu and Debian:
sudo apt update
sudo apt install -y flatpak
Fedora, where Flatpak is available from the configured repositories:
sudo dnf install -y flatpak
Step 2: Enable Flathub and install Headlamp
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub io.kinvolk.Headlamp
flatpak info io.kinvolk.Headlamp
Code language: JavaScript (javascript)
Step 3: Launch and connect
kubectl config get-contexts
flatpak run io.kinvolk.Headlamp
Code language: CSS (css)
Select a context and check that workload resources load.
Step 4: Configure external cloud authentication if necessary
If the kubeconfig invokes AWS CLI, Azure CLI or another host executable, Flatpak sandbox restrictions can interfere with authentication. The official Linux guide describes the host-tool integration permission. For an approved system-wide installation:
sudo flatpak override --talk-name=org.freedesktop.Flatpak io.kinvolk.Headlamp
This changes the application’s isolation boundary. Obtain endpoint security approval before granting it; if the policy does not allow it, use an approved native release package instead. Reopen the application and repeat the connectivity test.
Step 5: Alternative AppImage installation
Download the matching Linux architecture from the official releases page. Verify the artifact using the release verification guide. In a terminal, replace the example filename with the actual downloaded name:
cd ~/Downloads
chmod +x ./Headlamp-VERSION-ARCH.AppImage
./Headlamp-VERSION-ARCH.AppImage
AppImage runtime dependencies vary by distribution. The filename above is a placeholder, not a literal release asset name.
Step 6: Update or uninstall Flatpak installation
flatpak update io.kinvolk.Headlamp
<em># Only when removing Headlamp:</em>
flatpak uninstall io.kinvolk.Headlamp
Code language: HTML, XML (xml)
5. Install Headlamp on Windows 10 or Windows 11
Step 1: Check Windows Package Manager
Open Windows Terminal or PowerShell:
winget --version
[System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture
Code language: CSS (css)
Step 2: Install Headlamp and kubectl
winget search headlamp
winget install headlamp
<em># Optional if kubectl is not already available:</em>
winget install --id Kubernetes.kubectl --exact
Code language: HTML, XML (xml)
If the search returns multiple packages, select the official Headlamp entry and use its exact package ID. Chocolatey users can alternatively install with choco install headlamp -y.
Step 3: Verify the installation
winget list headlamp
kubectl version --client
kubectl config get-contexts
Code language: JavaScript (javascript)
Open Start → Headlamp, then select the desired Kubernetes context.
Step 4: Alternative Windows installer
Download the correct .exe for your architecture from GitHub Releases. Review the official Windows installation and release-verification guidance first. The Headlamp desktop documentation currently warns that some Windows release artifacts may be unsigned. Do not bypass endpoint security policies; verify provenance and use an approved package.
Step 5: Update or remove
winget upgrade headlamp
<em># Only when removing Headlamp:</em>
winget uninstall headlamp
Code language: HTML, XML (xml)
6. Configure kubeconfig and multiple Kubernetes clusters
A kubeconfig contains API endpoints, context names and authentication settings. Treat it as sensitive: it can reference credential files or execute local authentication programs. Only load trusted files.
| OS | Default kubeconfig |
|---|---|
| macOS / Linux | ~/.kube/config |
| Windows | %USERPROFILE%\.kube\config |
Step 1: Inspect the available contexts
kubectl config get-contexts
kubectl config current-context
Code language: JavaScript (javascript)
Step 2: Connect to a particular context without changing the default
kubectl --context dev get pods -n default
Code language: JavaScript (javascript)
Replace dev with your actual context name. Select the same context in Headlamp.
Step 3: Use custom kubeconfig files
On macOS/Linux:
export KUBECONFIG="$HOME/.kube/dev.yaml:$HOME/.kube/stage.yaml"
kubectl config get-contexts
Code language: JavaScript (javascript)
On Windows PowerShell:
$env:KUBECONFIG = "$HOME\.kube\dev.yaml;$HOME\.kube\stage.yaml"
kubectl config get-contexts
Code language: JavaScript (javascript)
Fully quit Headlamp before launching it with the configured environment. A GUI application launched from a menu may not inherit environment variables set in a terminal. Use Headlamp’s kubeconfig import or the documented launch method for your platform if the contexts are missing. For example, on Linux Flatpak, when the sandbox can read the files:
flatpak run --env=KUBECONFIG="$KUBECONFIG" io.kinvolk.Headlamp
Code language: JavaScript (javascript)
Do not merge or overwrite working kubeconfig files without a backup. Keep development and production context names unambiguous.
7. Connect Headlamp to EKS, AKS, GKE and local clusters
These examples assume the cloud CLI and authentication helpers are already installed and your account has appropriate permissions. Replace all example names with actual values.
Amazon EKS
aws sts get-caller-identity
aws eks update-kubeconfig --region ap-northeast-1 --name my-eks-cluster --alias eks-dev
kubectl --context eks-dev get pods -n default
Code language: JavaScript (javascript)
If you use AWS IAM Identity Center, authenticate with the approved profile first (aws sso login --profile development) and pass the profile to aws eks update-kubeconfig. The desktop application must be able to execute the configured AWS authentication command. IAM authentication and Kubernetes authorization are distinct; consult the EKS kubeconfig guide.
Azure AKS
az login
az aks get-credentials --resource-group my-resource-group --name my-aks-cluster
kubectl config get-contexts
kubectl get pods -n default
Code language: JavaScript (javascript)
For applicable Microsoft Entra configurations, use kubelogin convert-kubeconfig -l azurecli with the required kubelogin binary installed. Follow your cluster’s identity policy rather than requesting administrator credentials for convenience.
Google GKE
gcloud auth login
gcloud container clusters get-credentials my-gke-cluster --region asia-northeast1 --project my-project-id
kubectl get pods -n default
Code language: JavaScript (javascript)
Install and configure the GKE authentication plugin where required. For a zonal cluster, use the correct zone instead of a region.
Minikube, Rancher Desktop and Docker Desktop
For an existing Minikube installation:
minikube start
kubectl --context minikube get nodes
Code language: JavaScript (javascript)
For Rancher Desktop or Docker Desktop, enable Kubernetes in the respective application settings and run:
kubectl config get-contexts
<em># Use the appropriate context only:</em>
kubectl --context rancher-desktop get nodes
<em># Or:</em>
kubectl --context docker-desktop get nodes
Code language: HTML, XML (xml)
Open Headlamp and select the corresponding context. You only need one working cluster for the remainder of this tutorial.
8. Install Headlamp inside Kubernetes using Helm
This installation creates an internal service. The first test uses local port forwarding rather than publicly exposing the dashboard. Run it from a non-production cluster as an authorized installer.
Step 1: Verify the target cluster and Helm
kubectl config current-context
kubectl get nodes
helm version
Code language: JavaScript (javascript)
Step 2: Add the official Helm repository
helm repo add headlamp https://kubernetes-sigs.github.io/headlamp/
helm repo update
helm search repo headlamp/headlamp --versions
Code language: JavaScript (javascript)
Record the selected chart version. For a controlled environment, append --version YOUR_APPROVED_CHART_VERSION to the relevant Helm commands after replacing the placeholder. Chart versions and application versions are not necessarily identical.
Step 3: Inspect the chart and prepare values
helm show chart headlamp/headlamp
helm show values headlamp/headlamp > headlamp-default-values.yaml
Code language: JavaScript (javascript)
Create headlamp-values.yaml with the following starting configuration. The same file is included in the publishing package’s configs/ directory.
replicaCount: 1
config:
inCluster: true
unsafeUseServiceAccountToken: false
enableHelm: false
sessionTTL: 3600
service:
type: ClusterIP
port: 80
ingress:
enabled: false
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
Code language: JavaScript (javascript)
| Setting | Reason |
|---|---|
config.inCluster | Connect to the hosting Kubernetes cluster |
config.unsafeUseServiceAccountToken: false | Avoid authenticating everyone as the backend Pod |
config.enableHelm: false | Avoid unnecessary release-management operations |
config.sessionTTL | Example one-hour internal session lifetime |
service.type: ClusterIP | Do not create a public-facing load balancer |
resources | Starting requests and limits; size using actual workload data |
Review the chart’s security defaults, service account and RBAC before installation. Session TTL is not a substitute for identity-provider token expiry. The selected resource limits are examples, not load-tested recommendations.
Step 4: Render and install the chart
From the directory containing your values file:
helm template headlamp headlamp/headlamp -n headlamp -f headlamp-values.yaml > headlamp-rendered.yaml
helm upgrade --install headlamp headlamp/headlamp -n headlamp --create-namespace -f headlamp-values.yaml --wait --timeout 5m
Review headlamp-rendered.yaml before running the second command, particularly ServiceAccounts, bindings, container permissions and service exposure. The commands are intentionally single-line for portability across Bash and PowerShell.
Step 5: Verify the release
helm status headlamp -n headlamp
kubectl get deployments,pods,svc -n headlamp
kubectl rollout status deployment/headlamp -n headlamp --timeout=180s
Code language: JavaScript (javascript)
Expected: a Ready Headlamp Pod and a ClusterIP service named headlamp on port 80, assuming the chart’s standard naming and values.
Step 6: Open the web interface
kubectl port-forward -n headlamp svc/headlamp 8080:80
Keep this terminal running and open http://localhost:8080. You should see a cluster sign-in screen. The localhost tunnel is for testing, not a production publishing method.
9. Configure read-only authentication and Kubernetes RBAC
For the first browser-based session, use a short-lived ServiceAccount token restricted to a dedicated demo namespace. This is deliberately narrower than granting cluster-admin or binding the built-in view role cluster-wide.
Step 1: Create the demo namespace
kubectl create namespace headlamp-demo
Code language: PHP (php)
If it already exists, confirm it is dedicated to this lab before continuing. Do not reuse an unrelated namespace with this name.
Step 2: Create the lab RBAC manifest
Save as lab-rbac.yaml:
apiVersion: v1
kind: ServiceAccount
metadata:
name: headlamp-viewer
namespace: headlamp
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: headlamp-viewer
namespace: headlamp-demo
subjects:
- kind: ServiceAccount
name: headlamp-viewer
namespace: headlamp
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: view
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: headlamp-demo-namespace-discovery
rules:
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: headlamp-demo-namespace-discovery
subjects:
- kind: ServiceAccount
name: headlamp-viewer
namespace: headlamp
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: headlamp-demo-namespace-discovery
Code language: JavaScript (javascript)
The RoleBinding allows viewing supported namespaced resources in headlamp-demo. The additional role permits namespace discovery across the cluster so the UI can populate the namespace selector. It does not grant access to workloads in other namespaces. This means the viewer can see namespace names; if even those are confidential, remove that extra role and binding and test the UI under your stricter policy.
Step 3: Apply and verify the permissions
kubectl apply -f lab-rbac.yaml
kubectl auth can-i list pods -n headlamp-demo --as=system:serviceaccount:headlamp:headlamp-viewer
kubectl auth can-i get pods/log -n headlamp-demo --as=system:serviceaccount:headlamp:headlamp-viewer
kubectl auth can-i delete pods -n headlamp-demo --as=system:serviceaccount:headlamp:headlamp-viewer
kubectl auth can-i list secrets -n headlamp-demo --as=system:serviceaccount:headlamp:headlamp-viewer
kubectl auth can-i list pods -n kube-system --as=system:serviceaccount:headlamp:headlamp-viewer
Code language: PHP (php)
Expected under ordinary default RBAC, with no other grants: yes, yes, no, no, no. The operator needs impersonation permission to run these checks. Aggregated or pre-existing bindings may change the result; investigate any unexpected access before proceeding.
Step 4: Generate a temporary login token
kubectl create token headlamp-viewer -n headlamp --duration=1h
Copy the token into the local Headlamp sign-in form. The API server determines the actual validity period. Do not save the token in Git, a tutorial screenshot, shared chat or a shell command argument. Sign out after testing. Use individual SSO identities for real teams.
Some Headlamp views may show authorization errors because this identity cannot list cluster-wide workload objects or Nodes. Select the authorized headlamp-demo namespace and use its workload pages instead.
10. Hands-on Hello World exercise: verify Headlamp in minutes
This exercise works with both deployment models. For the desktop-only path, create headlamp-demo first if you have not completed Section 9. Use a development identity to create the workload; use the read-only browser identity to inspect it.
Step 1: Deploy a small NGINX application
Save this file as demo.yaml:
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-headlamp
namespace: headlamp-demo
spec:
replicas: 1
selector:
matchLabels:
app: hello-headlamp
template:
metadata:
labels:
app: hello-headlamp
spec:
containers:
- name: nginx
image: nginx:alpine
ports:
- containerPort: 80
readinessProbe:
httpGet:
path: /
port: 80
resources:
requests:
cpu: 25m
memory: 32Mi
limits:
cpu: 200m
memory: 128Mi
---
apiVersion: v1
kind: Service
metadata:
name: hello-headlamp
namespace: headlamp-demo
spec:
selector:
app: hello-headlamp
ports:
- port: 80
targetPort: 80
type: ClusterIP
Code language: PHP (php)
kubectl config current-context
kubectl apply -f demo.yaml
kubectl rollout status deployment/hello-headlamp -n headlamp-demo --timeout=180s
kubectl get pods,deploy,svc -n headlamp-demo
Code language: JavaScript (javascript)
The floating image tag is used for convenience in this disposable lab. Pin an approved image digest for production workloads. The readiness probe verifies that NGINX is responding before marking the Pod ready.
Expected illustrative output:
NAME READY STATUS RESTARTS
pod/hello-headlamp-xxxxxxxxxx-xxxxx 1/1 Running 0
NAME READY AVAILABLE
deployment.apps/hello-headlamp 1/1 1
NAME TYPE PORT(S)
service/hello-headlamp ClusterIP 80/TCP
Step 2: Verify the workload in Headlamp
- Open Headlamp and select the correct cluster.
- Select theÂ
headlamp-demo namespace in the namespace filter. - Open Workloads → Deployments and selectÂ
hello-headlamp. - Open the Pod list and select the running Pod.
- Inspect the container image, readiness state, labels, events and resource YAML.
- Open the Pod’s Logs action or tab. Select the container if necessary.
- FindÂ
hello-headlamp in the Services view and verify port 80.
Labels and layout may vary by Headlamp version and plugins. The preceding steps describe the actual workflow, not a simulated product screenshot.
Step 3: Generate an HTTP request and inspect logs
In another terminal:
kubectl port-forward svc/hello-headlamp 8081:80 -n headlamp-demo
Open http://localhost:8081 in a browser. You should see the NGINX welcome page. Return to Headlamp logs and look for an HTTP request entry. Port 8081 avoids conflict with the Headlamp UI on port 8080.
Step 4: Optional scaling verification
Only use an identity permitted to change the demo Deployment. Stop application port forwarding if desired, then run:
kubectl scale deployment hello-headlamp --replicas=3 -n headlamp-demo
kubectl rollout status deployment/hello-headlamp -n headlamp-demo --timeout=180s
kubectl get pods -n headlamp-demo
Code language: JavaScript (javascript)
Refresh Headlamp and confirm that three replicas become Ready. A read-only user should be able to observe this change but not perform it. This verifies that the interface respects Kubernetes authorization rather than merely rendering static data.
11. Configure CPU and memory monitoring
Step 1: Check existing metrics
Using a sufficiently authorized identity:
kubectl get apiservice v1beta1.metrics.k8s.io
kubectl top nodes
kubectl top pods -n headlamp-demo
Code language: CSS (css)
If metrics are present, do not install another Metrics Server unnecessarily. The lab viewer role above intentionally does not guarantee access to metrics or Nodes; add narrowly scoped metrics.k8s.io read permissions only where required.
Step 2: Install Metrics Server only if needed
For a compatible development cluster, consult the Metrics Server compatibility matrix and choose a release supported by the API server. The upstream quick-start command is:
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
kubectl rollout status deployment/metrics-server -n kube-system --timeout=180s
kubectl top pods -n headlamp-demo
Code language: JavaScript (javascript)
For production, review and pin the manifest version and use the managed service’s supported mechanism when applicable. Do not disable kubelet TLS verification simply to make metrics appear. Some clusters have particular certificate or network prerequisites.
Step 3: Open resource metrics in Headlamp
Use the cluster overview or applicable workload detail views to examine resource usage. Metrics Server provides recent resource utilization, not long-term storage or application-level telemetry. For historical trends, alerts and incident correlation, use a dedicated system such as Prometheus/Grafana or your organization’s observability platform.
12. Configure private HTTPS Ingress for shared access
Proceed only after the localhost test succeeds. A private network path, trusted TLS, authentication and least-privilege RBAC are independent requirements. An internal Ingress alone is not an authorization control.
Step 1: Review the Ingress controller
kubectl get ingressclass
Code language: JavaScript (javascript)
This example assumes an installed internal Traefik controller and a valid certificate for headlamp.example.com. Replace the class and domain with actual values. Restrict the controller’s network exposure according to your organization’s policy.
Step 2: Create or provision the TLS Secret
Where certificate automation is not already in place:
kubectl create secret tls headlamp-tls -n headlamp --cert=tls.crt --key=tls.key
Protect private key files. If cert-manager or your platform provisions certificates, use its approved workflow instead.
Step 3: Prepare Ingress values
Save as ingress-values.yaml:
ingress:
enabled: true
ingressClassName: traefik
hosts:
- host: headlamp.example.com
paths:
- path: /
type: Prefix
tls:
- secretName: headlamp-tls
hosts:
- headlamp.example.com
Code language: PHP (php)
helm template headlamp headlamp/headlamp -n headlamp -f headlamp-values.yaml -f ingress-values.yaml
Once authentication is configured and the private ingress controls are approved, apply the values with the OIDC values from the next section, rather than exposing an unfinished production login flow.
13. Configure OIDC and enterprise SSO
OIDC allows users to sign in with their own organizational identity. A successful sign-in is not sufficient: the Kubernetes API must validate the token’s issuer and audience, and the identity must have the correct RBAC grants.

Figure 3. OIDC authenticates the user; Kubernetes separately decides whether each resource operation is allowed.
Step 1: Register the identity provider application
| Field | Example |
|---|---|
| Application | Headlamp |
| Issuer | https://idp.example.com/realms/engineering |
| Client ID | headlamp |
| Redirect URI | https://headlamp.example.com/oidc-callback |
| User groups | Organization-defined groups such as sre-viewers |
Use your provider’s supported client type, redirect settings, scopes and PKCE options. Configure the cluster to trust the intended issuer and token audience. Managed Kubernetes services have provider-specific authentication rules; the official Headlamp OIDC guide includes important distinctions for managed control planes.
Step 2: Provision OIDC settings as a Kubernetes Secret
The chart supports referencing an existing Secret. Use your approved secret manager or external-secrets workflow to create headlamp-oidc-secret in namespace headlamp. For a conventional confidential client, its environment-compatible keys for the documented backend include OIDC_CLIENT_ID, OIDC_CLIENT_SECRET and OIDC_ISSUER_URL. The current external-Secret chart template uses these exact environment names. To request extra scopes, include OIDC_SCOPES in the Secret and enable config.oidc.externalSecret.hasScopes. By default Headlamp derives the callback from its externally reachable URL; if you configure an explicit callback, verify the corresponding chart option and OIDC_CALLBACK_URL Secret key. Confirm the exact keys and flags against the pinned chart’s deployment template and backend documentation before applying. Do not commit secret values to Git or Helm values.
To check that the Secret exists without printing its contents:
kubectl get secret headlamp-oidc-secret -n headlamp
Code language: JavaScript (javascript)
Save the non-secret Helm overlay as oidc-values.yaml:
config:
unsafeUseServiceAccountToken: false
oidc:
secret:
create: false
externalSecret:
enabled: true
name: headlamp-oidc-secret
Code language: JavaScript (javascript)
Step 3: Grant group-based access to a namespace
Save as oidc-group-rbac.yaml:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: sre-viewers
namespace: headlamp-demo
subjects:
- kind: Group
name: sre-viewers
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: ClusterRole
name: view
apiGroup: rbac.authorization.k8s.io
kubectl apply -f oidc-group-rbac.yaml
Code language: CSS (css)
Replace the group with the actual group claim (including any configured prefix) recognized by Kubernetes. This example uses the same demo namespace; add separately approved namespace-discovery or cluster-level permissions if required.
Step 4: Deploy the secured web configuration
helm template headlamp headlamp/headlamp -n headlamp -f headlamp-values.yaml -f ingress-values.yaml -f oidc-values.yaml
helm upgrade --install headlamp headlamp/headlamp -n headlamp -f headlamp-values.yaml -f ingress-values.yaml -f oidc-values.yaml --wait --timeout 5m
kubectl get ingress,pods -n headlamp
Code language: JavaScript (javascript)
Create the required internal DNS record and open https://headlamp.example.com. Test with a real authorized user and a separate unauthorized or read-only test identity. Confirm that TLS validates, logout works, and forbidden operations remain forbidden. A 401 normally points to authentication; a 403 normally indicates authorization failure. This is a provider-dependent template, not a fully configured SSO deployment.
14. Configure Headlamp on private AWS EKS with an internal ALB
For private EKS clusters, engineers can use a desktop client over approved private connectivity or deploy Headlamp as an internal web service. K9s and kubectl can also run on an authorized SSM-accessible administration host without exposing the API publicly.

Figure 4. Internal ALB terminates approved HTTPS traffic; Headlamp communicates with the private API endpoint. Individual Kubernetes authorization still applies.
Step 1: Verify AWS Load Balancer Controller and Ingress class
kubectl get ingressclass
kubectl get deployment aws-load-balancer-controller -n kube-system
Code language: JavaScript (javascript)
The example assumes AWS Load Balancer Controller, private subnets, an approved security-group configuration, an ACM certificate and internal DNS. EKS Auto Mode or alternative controller environments may require different settings.
Step 2: Prepare the ALB values overlay
Save as alb-values.yaml and replace the example ARN and hostname:
ingress:
enabled: true
ingressClassName: alb
annotations:
alb.ingress.kubernetes.io/scheme: internal
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]'
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:ap-northeast-1:ACCOUNT_ID:certificate/CERTIFICATE_ID
alb.ingress.kubernetes.io/healthcheck-path: /
alb.ingress.kubernetes.io/success-codes: '200'
hosts:
- host: headlamp.internal.example.com
paths:
- path: /
type: Prefix
Code language: PHP (php)
Use the ALB overlay instead of the generic Ingress overlay. Ensure the OIDC callback URL uses the ALB hostname, and confirm the selected health check path returns the configured success status.
Step 3: Install or upgrade
helm template headlamp headlamp/headlamp -n headlamp -f headlamp-values.yaml -f alb-values.yaml -f oidc-values.yaml
helm upgrade --install headlamp headlamp/headlamp -n headlamp -f headlamp-values.yaml -f alb-values.yaml -f oidc-values.yaml --wait --timeout 5m
kubectl get ingress -n headlamp
kubectl describe ingress headlamp -n headlamp
Code language: JavaScript (javascript)
Confirm the ALB is internal, the target groups are healthy, the ACM certificate is valid and the approved client network can reach it. Publish the internal DNS record. For EKS-specific OIDC registration and token audience requirements, follow the Headlamp EKS identity integration guide. AWS IAM authentication used by a desktop kubeconfig does not automatically provide a browser OIDC login.
15. Configure plugins and everyday operational preferences
Headlamp’s Plugin Catalog extends its interface. For desktop, open the catalog, review the plugin description, publisher, version, source and required Kubernetes resources, then install an approved plugin. Confirm it appears in the intended cluster and remove it if unused.
Examples to explore in the official plugin repository include Flux, Karpenter and Cluster API integrations. Availability and dependencies change across releases. A plugin does not install all of its corresponding Kubernetes controllers automatically or grant extra permissions.
For a shared in-cluster deployment, use the documented Helm plugin manager or a reviewed image/plugin provisioning strategy. Desktop installation clicks are not a reproducible server deployment method. Pin versions and review plugin code because extensions operate within a sensitive cluster-management interface.
In application Settings, choose a readable theme and meaningful context names. Differentiate production and development visually where supported. Keep persistent resource configuration in Git if you use Argo CD or Flux; direct GUI edits may be reverted by the reconciliation controller.
16. Headlamp vs K9s vs kubectl

Figure 5. Select complementary tools rather than expecting a single interface to cover every operational task.
| Capability | Headlamp | K9s | kubectl |
|---|---|---|---|
| Interface | Desktop / web GUI | Terminal UI | CLI |
| Cluster browsing | Graphical | Interactive text | Commands |
| Logs and resource inspection | Yes | Yes | Yes |
| Shared web UI | In-cluster option | No | No |
| Scripting and CI | Not primary purpose | Limited | Excellent |
| SSH / SSM terminal workflow | Limited | Excellent | Excellent |
| Plugins or extensions | Yes | Yes | Yes |
| Best use | Visual exploration | Fast interactive operations | Automation and precise administration |
There is no universal winner. Use Headlamp for visual exploration and shared access, K9s for terminal-based troubleshooting, and kubectl for automation. Add Argo CD or Flux for declarative application delivery and an observability platform for historical metrics and alerting.
17. Upgrade, rollback and uninstall Headlamp
Step 1: Review the installed version and history
helm list -n headlamp
helm history headlamp -n headlamp
kubectl get deployment headlamp -n headlamp -o wide
helm repo update
helm search repo headlamp/headlamp --versions
Code language: JavaScript (javascript)
Step 2: Upgrade using a reviewed chart version
helm upgrade headlamp headlamp/headlamp -n headlamp -f headlamp-values.yaml --version YOUR_APPROVED_CHART_VERSION --wait --timeout 5m
Replace the version placeholder. Include all environment-specific values files originally used, especially Ingress and OIDC overlays. Do not inadvertently drop security settings. If an explicit image tag was pinned, make sure it is upgraded deliberately with the chart. Verify a real login and resource view after rollout.
Step 3: Roll back if necessary
helm history headlamp -n headlamp
helm rollback headlamp 1 -n headlamp --wait
Replace revision 1 with the intended known-good revision. Helm rollback does not reverse external identity-provider, DNS or certificate changes.
Step 4: Clean up the disposable lab
Stop port forwarding and sign out first. Only run the following if these resources were created exclusively for this tutorial:
kubectl delete clusterrolebinding headlamp-demo-namespace-discovery --ignore-not-found
kubectl delete clusterrole headlamp-demo-namespace-discovery --ignore-not-found
kubectl delete serviceaccount headlamp-viewer -n headlamp --ignore-not-found
kubectl delete namespace headlamp-demo --ignore-not-found
Code language: JavaScript (javascript)
If you also intend to remove the dedicated Headlamp web deployment:
helm uninstall headlamp -n headlamp
kubectl delete namespace headlamp
Code language: JavaScript (javascript)
The namespace deletion removes all resources in that namespace. Do not execute it on a shared or production namespace. Clean up external DNS, identity-provider registrations and separately managed resources only when no longer used.
18. Troubleshooting and production readiness
| Symptom | First diagnostic | Likely area |
|---|---|---|
| No desktop cluster shown | kubectl config get-contexts | kubeconfig path or import |
| Connection timeout | kubectl cluster-info | DNS, VPN, private API routing |
| Access denied | kubectl auth can-i list pods -n headlamp-demo | RBAC |
| Web deployment not Ready | kubectl get pods -n headlamp | Scheduling, image or startup |
| Login token rejected | Check token expiry and API trust | Authentication |
| CPU/memory not shown | kubectl top pods -n headlamp-demo | Metrics API or RBAC |
| Ingress unavailable | kubectl describe ingress -n headlamp | Controller, DNS, TLS |
For in-cluster diagnostics:
helm status headlamp -n headlamp
kubectl get events -n headlamp --sort-by=.metadata.creationTimestamp
kubectl logs deployment/headlamp -n headlamp --tail=100
kubectl get endpointslices -n headlamp
Code language: JavaScript (javascript)
Avoid exporting logs that contain tokens or private infrastructure details. A successful local port-forward test can isolate an Ingress problem from a backend problem.
Production deployment checklist
- [ ] Approved Headlamp chart and container image versions recorded.
- [ ] Private networking and HTTPS verified; no unnecessary public exposure.
- [ ] Individual authentication and least-privilege RBAC tested.
- [ ] Shared backend ServiceAccount authentication disabled.
- [ ] Sensitive resources, exec, write and Helm operations restricted.
- [ ] Plugin provenance reviewed and versions pinned.
- [ ] Resource limits, availability, Pod scheduling and upgrade behavior validated.
- [ ] Audit logging, alerting and operational ownership defined.
- [ ] Backup and rollback procedures documented for external dependencies and release configuration.
- [ ] Real user login and negative authorization tests completed before launch.
19. Frequently asked questions
Is Headlamp free and open source?
Yes. Headlamp is an open-source Kubernetes SIG UI project; running it still incurs any associated infrastructure or operational costs.
Can I install Headlamp without installing anything in Kubernetes?
Yes. Desktop installation uses the local kubeconfig and reachable Kubernetes API.
Does Headlamp replace Kubernetes Dashboard?
The Kubernetes project recommends it as a migration destination in the 2026 guidance. Existing RBAC and authentication still require review; migration is not merely copying a dashboard URL.
Can Headlamp manage multiple clusters?
Yes. Desktop users can configure multiple kubeconfig contexts. Shared deployments require explicit cluster connectivity and authentication configuration. Experimental cluster-discovery integrations should not be assumed production-stable.
Can I use Headlamp for a private EKS cluster?
Yes, with an approved network path to the private API or an internal web deployment with supported authentication. Do not make the EKS API public solely to use Headlamp.
Does Headlamp require cluster-admin?
No for everyday use. Installation requires suitable administrative permissions, but readers and developers should receive individual roles appropriate to their responsibilities.
Can Headlamp replace Grafana or Prometheus?
No. Resource inspection and metrics integration are useful, but dedicated observability systems provide historical storage, richer queries and alerting.
Can I deploy Headlamp through Argo CD?
Yes. The Helm chart and non-secret values can be maintained declaratively; keep identity-provider credentials in your approved secret management workflow.
Is Headlamp better than K9s?
Headlamp offers a graphical and optional shared browser experience; K9s excels at terminal-based interactive operations. Both complement kubectl.
20. Conclusion
Headlamp is a practical graphical entry point into Kubernetes operations, whether you manage a single local cluster or operate a larger engineering platform. Its most valuable quality is that it builds on the same Kubernetes API and authorization model your organization already uses.
Start with the desktop app or a local Helm port-forward, verify a real workload, test read-only permissions, and only then introduce shared HTTPS access and enterprise SSO. Keep the API private where required and leave long-term observability, automation and GitOps to the tools designed for those responsibilities.
The goal is not simply a dashboard that looks attractive. It is a reliable, secure operational interface that helps engineers understand a cluster and act within well-defined permissions.
Official documentation and references
- Headlamp home and installation overview
- Desktop installation
- Linux installation and external authentication helpers
- Windows installation
- Headlamp GitHub releases
- Release verification
- In-cluster installation
- Official Helm chart configuration
- OIDC authentication
- Headlamp security requirements
- EKS identity integration
- Kubernetes Dashboard migration guide
- Kubernetes RBAC
- Kubernetes ServiceAccount token creation
- Metrics Server
- Headlamp plugins
All technical illustrations are original explanatory assets, not screenshots of live Headlamp sessions. The featured image is an illustrative graphic. Documentation review does not imply live execution of the commands or validation of the example infrastructure.
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals