This commit is contained in:
itumi
2026-02-10 15:38:46 +02:00
parent dbe8b6a046
commit 149cc32c1d

View File

@@ -40,7 +40,6 @@ spec:
labels: labels:
app: grafana app: grafana
spec: spec:
# Grafana official image runs as UID/GID 472
securityContext: securityContext:
fsGroup: 472 fsGroup: 472
containers: containers:
@@ -50,7 +49,6 @@ spec:
ports: ports:
- containerPort: 3000 - containerPort: 3000
name: http name: http
env: env:
# sqlite DB on PVC # sqlite DB on PVC
- name: GF_DATABASE_TYPE - name: GF_DATABASE_TYPE
@@ -58,7 +56,7 @@ spec:
- name: GF_DATABASE_PATH - name: GF_DATABASE_PATH
value: /var/lib/grafana/grafana.db value: /var/lib/grafana/grafana.db
# Ingress URL (important for OAuth callback + absolute links) # Ingress URL (important for OAuth callback + links)
- name: GF_SERVER_ROOT_URL - name: GF_SERVER_ROOT_URL
value: https://grafana-jake.ee-lte-1.codemowers.io/ value: https://grafana-jake.ee-lte-1.codemowers.io/
- name: GF_SERVER_SERVE_FROM_SUB_PATH - name: GF_SERVER_SERVE_FROM_SUB_PATH
@@ -72,35 +70,34 @@ spec:
- name: GF_AUTH_GENERIC_OAUTH_ALLOW_SIGN_UP - name: GF_AUTH_GENERIC_OAUTH_ALLOW_SIGN_UP
value: "true" value: "true"
# pkce=false matches your OIDCClient style # matches OIDCClient pkce: false
- name: GF_AUTH_GENERIC_OAUTH_USE_PKCE - name: GF_AUTH_GENERIC_OAUTH_USE_PKCE
value: "false" value: "false"
# IMPORTANT: # IMPORTANT:
# Replace "grafana-jake-oidc" with the actual Secret created by the OIDCClient controller # After OIDCClient grafana-jake is created successfully,
# (see "What to do next" section below) # set this secret name to the generated one (likely oidc-client-grafana-jake-owner-secrets)
- name: GF_AUTH_GENERIC_OAUTH_CLIENT_ID - name: GF_AUTH_GENERIC_OAUTH_CLIENT_ID
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: grafana-jake-oidc name: oidc-client-grafana-jake-owner-secrets
key: client_id key: OIDC_CLIENT_ID
- name: GF_AUTH_GENERIC_OAUTH_CLIENT_SECRET - name: GF_AUTH_GENERIC_OAUTH_CLIENT_SECRET
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: grafana-jake-oidc name: oidc-client-grafana-jake-owner-secrets
key: client_secret key: OIDC_CLIENT_SECRET
- name: GF_AUTH_GENERIC_OAUTH_SCOPES - name: GF_AUTH_GENERIC_OAUTH_SCOPES
value: "openid profile email" value: "openid profile"
# Passmower issuer base: https://auth.ee-lte-1.codemowers.io/ # From your existing OIDC secret: auth/token/me endpoints
# DO NOT GUESS THE PATHS: fetch .well-known/openid-configuration and paste exact endpoints.
- name: GF_AUTH_GENERIC_OAUTH_AUTH_URL - name: GF_AUTH_GENERIC_OAUTH_AUTH_URL
value: "https://auth.ee-lte-1.codemowers.io/<FILL_FROM_DISCOVERY_AUTHORIZATION_ENDPOINT>" value: "https://auth.ee-lte-1.codemowers.io/auth"
- name: GF_AUTH_GENERIC_OAUTH_TOKEN_URL - name: GF_AUTH_GENERIC_OAUTH_TOKEN_URL
value: "https://auth.ee-lte-1.codemowers.io/<FILL_FROM_DISCOVERY_TOKEN_ENDPOINT>" value: "https://auth.ee-lte-1.codemowers.io/token"
- name: GF_AUTH_GENERIC_OAUTH_API_URL - name: GF_AUTH_GENERIC_OAUTH_API_URL
value: "https://auth.ee-lte-1.codemowers.io/<FILL_FROM_DISCOVERY_USERINFO_ENDPOINT>" value: "https://auth.ee-lte-1.codemowers.io/me"
- name: GF_AUTH_GENERIC_OAUTH_SIGNOUT_REDIRECT_URL - name: GF_AUTH_GENERIC_OAUTH_SIGNOUT_REDIRECT_URL
value: https://grafana-jake.ee-lte-1.codemowers.io/ value: https://grafana-jake.ee-lte-1.codemowers.io/
@@ -111,7 +108,6 @@ spec:
- name: grafana-datasources - name: grafana-datasources
mountPath: /etc/grafana/provisioning/datasources mountPath: /etc/grafana/provisioning/datasources
readOnly: true readOnly: true
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /api/health path: /api/health
@@ -124,12 +120,10 @@ spec:
port: 3000 port: 3000
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 10 periodSeconds: 10
volumes: volumes:
- name: grafana-datasources - name: grafana-datasources
configMap: configMap:
name: grafana-datasources name: grafana-datasources
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:
name: grafana-storage name: grafana-storage
@@ -198,8 +192,6 @@ metadata:
namespace: memelord-jake namespace: memelord-jake
spec: spec:
displayName: Grafana jake displayName: Grafana jake
# Grafana Generic OAuth callback endpoint:
# https://<host>/login/generic_oauth
uri: https://grafana-jake.ee-lte-1.codemowers.io/login/generic_oauth uri: https://grafana-jake.ee-lte-1.codemowers.io/login/generic_oauth
redirectUris: redirectUris:
- https://grafana-jake.ee-lte-1.codemowers.io/login/generic_oauth - https://grafana-jake.ee-lte-1.codemowers.io/login/generic_oauth
@@ -211,5 +203,5 @@ spec:
availableScopes: availableScopes:
- openid - openid
- profile - profile
- email - offline_access
pkce: false pkce: false