add ingress for services jellyfin, kavita nexus

This commit is contained in:
2024-08-26 22:59:42 +10:00
parent 64fa627751
commit f8e417a8bb
10 changed files with 72 additions and 14 deletions

View File

@@ -20,11 +20,6 @@ persistence:
- ReadWriteOnce
volumeName: jellyfin-data
storageClassName: local-path
service:
type: LoadBalancer
annotations:
metallb.universe.tf/address-pool: k3s-cluster-ip-pool
metallb.universe.tf/allow-shared-ip: k3s-cluster
jellyfin:
mediaVolumes:
- name: movies

View File

@@ -0,0 +1,21 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: jellyfin-ingress
namespace: jellyfin
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- host: "jellyfin.cluster.edward.sydney"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: jellyfin
port:
number: 8096

View File

@@ -1,4 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
- ../../base
- ./ingress.yaml

View File

@@ -3,14 +3,11 @@ kind: Service
metadata:
name: kavita
namespace: kavita
annotations:
metallb.universe.tf/address-pool: k3s-cluster-ip-pool
metallb.universe.tf/allow-shared-ip: k3s-cluster
labels:
app.kubernetes.io/name: kavita
app.kubernetes.io/instance: kavita
spec:
type: LoadBalancer
type: ClusterIP
ports:
- port: 5000
targetPort: 5000

View File

@@ -0,0 +1,21 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: kavita-ingress
namespace: kavita
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- host: "kavita.cluster.edward.sydney"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: kavita
port:
number: 5000

View File

@@ -1,4 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
- ../../base
- ./ingress.yaml

View File

@@ -1,6 +1,6 @@
app:
ingress:
enabled: false
enabled: true
hosts:
- k3s-dashboard.cluster.edward.sydney
ingressClassName: nginx

View File

@@ -10,7 +10,7 @@ metadata:
spec:
selector:
app: nexus
type: LoadBalancer
type: ClusterIP
ports:
- port: 8081
targetPort: 8081

21
apps/nexus/env/k3s-cluster/ingress.yaml vendored Normal file
View File

@@ -0,0 +1,21 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nexus-ingress
namespace: nexus
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- host: "nexus.cluster.edward.sydney"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: nexus
port:
number: 8081

View File

@@ -1,4 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
- ../../base
- ./ingress.yaml