Add kustomization, namespace, and service configurations for chat-ui-proxy

This commit is contained in:
2025-07-31 22:29:39 +02:00
parent db1e1d7e4b
commit 394d388e6e
7 changed files with 70 additions and 24 deletions

View File

@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: chat-ui
resources:
- namespace.yaml
- service.yaml

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: chat-ui

View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: chat-ui-proxy
namespace: chat-ui
annotations:
tailscale.com/tailnet-fqdn: ${CHATUI_TAILNET_FQDN}
spec:
type: ExternalName
externalName: placeholder
ports:
- port: ${CHATUI_INTERNAL_PORT}
name: http

View File

@@ -0,0 +1,14 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: chat-ui-ingress
namespace: chat-ui
spec:
entryPoints:
- websecure
routes:
- match: Host(`${CHATUI_DOMAIN}`)
kind: Rule
services:
- name: chat-ui-proxy
port: ${CHATUI_INTERNAL_PORT}

View File

@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: chat-ui
resources:
- ../../base/chat-ui-proxy
- ingress.yaml

View File

@@ -11,6 +11,4 @@ spec:
kind: Rule
services:
- name: llamactl-proxy
port: ${LLAMACTL_INTERNAL_PORT}
middlewares:
- name: "auth-authelia@kubernetescrd"
port: ${LLAMACTL_INTERNAL_PORT}