1
0
Fork 0

enable openwebui oauth

This commit is contained in:
Massaki Archambault 2024-08-07 22:02:10 -04:00
parent 2806142962
commit 864c871c87
8 changed files with 59 additions and 6 deletions

View File

@ -26,7 +26,7 @@ spec:
nodeSelectorTerms:
- matchExpressions:
# need a zigbee receiver
- key: badjnet.home/zigbee-receiver
- key: badjware.dev/zigbee-receiver
operator: Exists
initContainers:
- image: busybox:1.36.1

View File

@ -12,7 +12,7 @@ commonLabels:
configMapGenerator:
- name: kustomize-generated-config
literals:
- LONGHORN_EXTERNAL_HOST=longhorn.badjnet.home
- LONGHORN_EXTERNAL_HOST=longhorn.badjware.dev
replacements:
- source:

View File

@ -10,8 +10,8 @@ commonLabels:
configMapGenerator:
- name: kustomize-generated-config
literals:
- OLLAMA_EXTERNAL_HOST=ollama.badjnet.home
- OLLAMA_EXTERNAL_URL=http://ollama.badjnet.home
- OLLAMA_EXTERNAL_HOST=ollama.badjware.dev
- OLLAMA_EXTERNAL_URL=http://ollama.badjware.dev
replacements:
- source:

View File

@ -1,5 +1,6 @@
resources:
- openwebui-deployment.yaml
- openwebui-externalsecret.yaml
- openwebui-ingress.yaml
namePrefix: openwebui-

View File

@ -29,6 +29,30 @@ spec:
value: ollama
- name: AUDIO_STT_ENGINE
value: openai
- name: ENABLE_SIGNUP
value: "false"
- name: ENABLE_OAUTH_SIGNUP
value: "true"
- name: OAUTH_CLIENT_ID
valueFrom:
secretKeyRef:
name: server-openid-config
key: oauth_client_id
- name: OAUTH_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: server-openid-config
key: oauth_client_secret
- name: OPENID_PROVIDER_URL
valueFrom:
secretKeyRef:
name: server-openid-config
key: openid_provider_url
- name: OAUTH_PROVIDER_NAME
valueFrom:
secretKeyRef:
name: server-openid-config
key: oauth_provider_name
# - name: GLOBAL_LOG_LEVEL
# value: DEBUG
resources:

View File

@ -0,0 +1,28 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: server-openid-config
spec:
secretStoreRef:
name: aws-parameters-store
kind: ClusterSecretStore
target:
name: server-openid-config
template:
metadata:
labels:
app.kubernetes.io/managed-by: external-secret
annotations: {}
data:
- secretKey: oauth_client_id
remoteRef:
key: /k3s/prod/llm/openwebui/oauth_client_id
- secretKey: oauth_client_secret
remoteRef:
key: /k3s/prod/llm/openwebui/oauth_client_secret
- secretKey: openid_provider_url
remoteRef:
key: /k3s/prod/llm/openwebui/openid_provider_url
- secretKey: oauth_provider_name
remoteRef:
key: /k3s/prod/llm/openwebui/oauth_provider_name

View File

@ -24,7 +24,7 @@ secretGenerator:
configMapGenerator:
- name: kustomize-generated-config
literals:
- PROMETHEUS_EXTERNAL_HOST=prometheus.badjnet.home
- PROMETHEUS_EXTERNAL_HOST=prometheus.badjware.dev
replacements:
- source:

View File

@ -12,7 +12,7 @@ commonLabels:
configMapGenerator:
- name: kustomize-generated-config
literals:
- TRAEFIK_EXTERNAL_HOST=traefik.badjnet.home
- TRAEFIK_EXTERNAL_HOST=traefik.badjware.dev
replacements:
- source: