mirror of
https://github.com/morten-olsen/homelab-apps.git
synced 2026-02-08 01:36:28 +01:00
add test OIDC client
This commit is contained in:
14
apps/charts/bytestash/templates/oidc.yaml
Normal file
14
apps/charts/bytestash/templates/oidc.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
apiVersion: authentik.homelab.mortenolsen.pro/v1alpha1
|
||||||
|
kind: AuthentikClient
|
||||||
|
metadata:
|
||||||
|
name: "{{ .Release.Name }}"
|
||||||
|
namespace: "{{ .Release.Namespace }}"
|
||||||
|
spec:
|
||||||
|
serverRef:
|
||||||
|
name: authentik
|
||||||
|
namespace: shared
|
||||||
|
name: Bytestash
|
||||||
|
redirectUris:
|
||||||
|
- https://{{ .Values.subdomain }}.{{ .Values.globals.domain }}/api/auth/oidc/callback
|
||||||
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
apiVersion: homelab.mortenolsen.pro/v1
|
|
||||||
kind: ExternalHttpService
|
|
||||||
metadata:
|
|
||||||
name: '{{ .Release.Name }}'
|
|
||||||
spec:
|
|
||||||
environment: '{{ .Values.globals.environment }}'
|
|
||||||
subdomain: '{{ .Values.subdomain }}'
|
|
||||||
destination:
|
|
||||||
host: '{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local'
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
apiVersion: networking.istio.io/v1
|
apiVersion: networking.istio.io/v1
|
||||||
kind: VirtualService
|
kind: VirtualService
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ .Release.Name }}"
|
name: "{{ .Release.Name }}-public"
|
||||||
namespace: "{{ .Release.Namespace }}"
|
namespace: "{{ .Release.Namespace }}"
|
||||||
spec:
|
spec:
|
||||||
gateways:
|
gateways:
|
||||||
- "{{ .Values.globals.istio.gateway }}"
|
- "{{ .Values.globals.istio.gateways.public }}"
|
||||||
- mesh
|
- mesh
|
||||||
hosts:
|
hosts:
|
||||||
- "{{ .Values.subdomain }}.{{ .Values.globals.domain }}"
|
- "{{ .Values.subdomain }}.{{ .Values.globals.domain }}"
|
||||||
@@ -16,3 +16,24 @@ spec:
|
|||||||
host: "{{ .Release.Name }}"
|
host: "{{ .Release.Name }}"
|
||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: networking.istio.io/v1
|
||||||
|
kind: VirtualService
|
||||||
|
metadata:
|
||||||
|
name: "{{ .Release.Name }}-private"
|
||||||
|
namespace: "{{ .Release.Namespace }}"
|
||||||
|
spec:
|
||||||
|
gateways:
|
||||||
|
- "{{ .Values.globals.istio.gateways.private }}"
|
||||||
|
- mesh
|
||||||
|
hosts:
|
||||||
|
- "{{ .Values.subdomain }}.{{ .Values.globals.domain }}"
|
||||||
|
- mesh
|
||||||
|
http:
|
||||||
|
- route:
|
||||||
|
- destination:
|
||||||
|
host: "{{ .Release.Name }}"
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
apiVersion: homelab.mortenolsen.pro/v1
|
|
||||||
kind: ExternalHttpService
|
|
||||||
metadata:
|
|
||||||
name: '{{ .Release.Name }}'
|
|
||||||
spec:
|
|
||||||
environment: '{{ .Values.globals.environment }}'
|
|
||||||
subdomain: '{{ .Values.subdomain }}'
|
|
||||||
destination:
|
|
||||||
host: '{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local'
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
apiVersion: networking.istio.io/v1
|
apiVersion: networking.istio.io/v1
|
||||||
kind: VirtualService
|
kind: VirtualService
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ .Release.Name }}"
|
name: "{{ .Release.Name }}-public"
|
||||||
namespace: "{{ .Release.Namespace }}"
|
namespace: "{{ .Release.Namespace }}"
|
||||||
spec:
|
spec:
|
||||||
gateways:
|
gateways:
|
||||||
- "{{ .Values.globals.istio.gateway }}"
|
- "{{ .Values.globals.istio.gateways.public }}"
|
||||||
- mesh
|
- mesh
|
||||||
hosts:
|
hosts:
|
||||||
- "{{ .Values.subdomain }}.{{ .Values.globals.domain }}"
|
- "{{ .Values.subdomain }}.{{ .Values.globals.domain }}"
|
||||||
@@ -16,3 +16,24 @@ spec:
|
|||||||
host: "{{ .Release.Name }}"
|
host: "{{ .Release.Name }}"
|
||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: networking.istio.io/v1
|
||||||
|
kind: VirtualService
|
||||||
|
metadata:
|
||||||
|
name: "{{ .Release.Name }}-private"
|
||||||
|
namespace: "{{ .Release.Namespace }}"
|
||||||
|
spec:
|
||||||
|
gateways:
|
||||||
|
- "{{ .Values.globals.istio.gateways.private }}"
|
||||||
|
- mesh
|
||||||
|
hosts:
|
||||||
|
- "{{ .Values.subdomain }}.{{ .Values.globals.domain }}"
|
||||||
|
- mesh
|
||||||
|
http:
|
||||||
|
- route:
|
||||||
|
- destination:
|
||||||
|
host: "{{ .Release.Name }}"
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ spec:
|
|||||||
claimName: "{{ .Release.Name }}-library"
|
claimName: "{{ .Release.Name }}-library"
|
||||||
- name: nas
|
- name: nas
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: pictures
|
claimName: images
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
|
|||||||
@@ -20,3 +20,5 @@ shares:
|
|||||||
path: /mnt/HDD/Misc
|
path: /mnt/HDD/Misc
|
||||||
kidsmusic:
|
kidsmusic:
|
||||||
path: /mnt/HDD/Misc/Kids_Music
|
path: /mnt/HDD/Misc/Kids_Music
|
||||||
|
images:
|
||||||
|
path: /mnt/HDD/images
|
||||||
|
|||||||
Reference in New Issue
Block a user