stack.basicstack.de/apps/headlamp/deployment.yaml
CTO Agent c6993d337c Fix Headlamp OIDC callback URL generation
Set HEADLAMP_CONFIG_BASE_URL to https://headlamp.basicstack.de to ensure
the OIDC callback URL is generated correctly with HTTPS scheme. When
running behind Traefik without explicit base URL, Headlamp may generate
http:// callback URLs instead of https://, causing OIDC flow failures.

Also added traefik.ingress.kubernetes.io/preserve-host annotation to
ensure proper header forwarding.

Fixes: DEV-324

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-07-18 08:39:12 +00:00

57 lines
1.5 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.43.0
imagePullPolicy: IfNotPresent
args:
- "-in-cluster"
- "-plugins-dir=/headlamp/plugins"
ports:
- containerPort: 4466
name: http
protocol: TCP
env:
- name: HEADLAMP_CONFIG_BASE_URL
value: "https://headlamp.basicstack.de"
- name: HEADLAMP_CONFIG_OIDC_IDP_ISSUER_URL
value: https://auth.basicstack.de
- name: HEADLAMP_CONFIG_OIDC_CLIENT_ID
valueFrom:
secretKeyRef:
name: headlamp-oidc
key: client-id
- name: HEADLAMP_CONFIG_OIDC_CLIENT_SECRET
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: {}