57 lines
1.4 KiB
YAML
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.45.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_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: {}
|