2026-07-19 13:25:01 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: dozzle
|
|
|
|
|
namespace: dozzle
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
strategy:
|
|
|
|
|
type: Recreate
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: dozzle
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: dozzle
|
|
|
|
|
spec:
|
|
|
|
|
serviceAccountName: dozzle
|
2026-07-19 13:37:36 +00:00
|
|
|
containers:
|
2026-07-19 13:25:01 +00:00
|
|
|
- name: dozzle
|
2026-07-19 13:35:38 +00:00
|
|
|
image: amir20/dozzle:latest
|
2026-07-19 13:25:01 +00:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 8080
|
2026-07-19 13:30:41 +00:00
|
|
|
name: dozzle-http
|
2026-07-19 13:25:01 +00:00
|
|
|
protocol: TCP
|
|
|
|
|
env:
|
|
|
|
|
- name: DOZZLE_LEVEL
|
|
|
|
|
value: "info"
|
|
|
|
|
- name: DOZZLE_AUTH_PROVIDER
|
2026-07-19 13:30:41 +00:00
|
|
|
value: "forward-proxy"
|
|
|
|
|
- name: DOZZLE_AUTH_HEADER_USER
|
|
|
|
|
value: "X-Forwarded-User"
|
|
|
|
|
- name: DOZZLE_AUTH_HEADER_EMAIL
|
|
|
|
|
value: "X-Forwarded-Email"
|
|
|
|
|
- name: DOZZLE_AUTH_HEADER_NAME
|
|
|
|
|
value: "X-Forwarded-Preferred-Username"
|
2026-07-19 13:33:59 +00:00
|
|
|
- name: DOZZLE_NO_ANALYTICS
|
|
|
|
|
value: "true"
|
2026-07-19 13:30:41 +00:00
|
|
|
volumeMounts:
|
|
|
|
|
- name: dozzle-data
|
|
|
|
|
mountPath: /data
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
cpu: 500m
|
|
|
|
|
memory: 512Mi
|
|
|
|
|
requests:
|
|
|
|
|
cpu: 100m
|
|
|
|
|
memory: 128Mi
|
|
|
|
|
- name: oauth2-proxy
|
|
|
|
|
image: quay.io/oauth2-proxy/oauth2-proxy:latest
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 4180
|
|
|
|
|
name: http
|
|
|
|
|
protocol: TCP
|
|
|
|
|
args:
|
|
|
|
|
- --http-address=0.0.0.0:4180
|
|
|
|
|
- --upstream=http://localhost:8080
|
|
|
|
|
- --provider=oidc
|
|
|
|
|
- --oidc-issuer-url=https://auth.basicstack.de
|
|
|
|
|
- --redirect-url=https://dozzle.basicstack.de/oauth2/callback
|
|
|
|
|
- --email-domain=*
|
|
|
|
|
- --pass-user-headers=true
|
|
|
|
|
- --set-xauthrequest=true
|
|
|
|
|
- --pass-access-token=false
|
|
|
|
|
- --cookie-secure=true
|
|
|
|
|
- --cookie-httponly=true
|
|
|
|
|
- --cookie-name=__Host-oauth2-proxy
|
|
|
|
|
- --cookie-expire=12h
|
|
|
|
|
- --code-challenge-method=S256
|
|
|
|
|
env:
|
|
|
|
|
- name: OAUTH2_PROXY_CLIENT_ID
|
2026-07-19 13:25:01 +00:00
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: dozzle-oidc
|
|
|
|
|
key: client-id
|
2026-07-19 13:30:41 +00:00
|
|
|
- name: OAUTH2_PROXY_CLIENT_SECRET
|
2026-07-19 13:25:01 +00:00
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: dozzle-oidc
|
|
|
|
|
key: client-secret
|
2026-07-19 13:30:41 +00:00
|
|
|
- name: OAUTH2_PROXY_COOKIE_SECRET
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: dozzle-oidc
|
|
|
|
|
key: cookie-secret
|
2026-07-19 13:25:01 +00:00
|
|
|
resources:
|
|
|
|
|
limits:
|
2026-07-19 13:30:41 +00:00
|
|
|
cpu: 200m
|
|
|
|
|
memory: 256Mi
|
2026-07-19 13:25:01 +00:00
|
|
|
requests:
|
2026-07-19 13:30:41 +00:00
|
|
|
cpu: 50m
|
|
|
|
|
memory: 64Mi
|
2026-07-19 13:25:01 +00:00
|
|
|
volumes:
|
|
|
|
|
- name: dozzle-data
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: dozzle-data
|