stack.basicstack.de/apps/headlamp/deployment.yaml
CTO Agent e640db0880 Add Headlamp Kubernetes dashboard deployment
- Deploy Headlamp v0.27.0 in dedicated namespace
- Configure OIDC authentication with Pocket ID
- Grant cluster-admin access via service account
- Expose via Traefik ingress at headlamp.basicstack.de
- Seal OIDC client credentials
- Enable access for andreas.leinen@basicstack.de and admin@basicstack.de

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-07-18 07:37:58 +00:00

57 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: headlamp
namespace: headlamp
spec:
replicas: 1
selector:
matchLabels:
app: headlamp
template:
metadata:
labels:
app: headlamp
spec:
serviceAccountName: headlamp-admin
containers:
- name: headlamp
image: ghcr.io/headlamp-k8s/headlamp:v0.27.0
imagePullPolicy: IfNotPresent
args:
- "-in-cluster"
- "-plugins-dir=/headlamp/plugins"
ports:
- containerPort: 4466
name: http
protocol: TCP
env:
- name: HEADLAMP_CONFIG_BASE_URL
value: ""
- name: HEADLAMP_CONFIG_OIDC_IDPISSUERURL
value: https://auth.basicstack.de
- name: HEADLAMP_CONFIG_OIDC_CLIENTID
valueFrom:
secretKeyRef:
name: headlamp-oidc
key: client-id
- name: HEADLAMP_CONFIG_OIDC_CLIENTSECRET
valueFrom:
secretKeyRef:
name: headlamp-oidc
key: client-secret
- name: HEADLAMP_CONFIG_OIDC_SCOPES
value: "openid,profile,email"
volumeMounts:
- name: headlamp-config
mountPath: /headlamp/config
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
memory: 128Mi
volumes:
- name: headlamp-config
emptyDir: {}