Update home proxy

This commit is contained in:
2024-01-27 12:09:58 +11:00
parent b4b1cc99e5
commit 45ebe480bb
5 changed files with 72 additions and 72 deletions
+71
View File
@@ -0,0 +1,71 @@
apiVersion: v1
kind: Service
metadata:
name: jellyfin
namespace: home-apps
spec:
ports:
- port: 8000
targetPort: 8000
selector:
app: jellyfin
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: jellyfin
spec:
revisionHistoryLimit: 2
selector:
matchLabels:
app: jellyfin
replicas: 1
template:
metadata:
labels:
app: jellyfin
spec:
containers:
- name: jellyfin
image: alpine/socat
args:
- "tcp-listen:8000,fork,reuseaddr"
- "tcp-connect:192.168.1.11:8096"
ports:
- containerPort: 8000
resources:
limits:
cpu: "0.5"
memory: "512Mi"
requests:
cpu: "0.1"
memory: "256Mi"
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: jellyfin-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/auth-url: "https://id.junv.me/oauth2/auth"
nginx.ingress.kubernetes.io/auth-signin: "https://id.junv.me/oauth2/start?rd=https%3A%2F%2F$host$request_uri"
spec:
tls:
- hosts:
- jellyfin.junv.me
secretName: jellyfin-tls
rules:
- host: jellyfin.junv.me
http:
paths:
- backend:
service:
name: jellyfin
port:
number: 8000
path: /
pathType: Prefix
+1 -1
View File
@@ -52,7 +52,7 @@ spec:
- name: TZ
value: Australia/Melbourne
- name: CADDY_LOG_LEVEL
value: INFO
value: WARN
volumeMounts:
- name: caddy-config
mountPath: /etc/caddy
-71
View File
@@ -1,71 +0,0 @@
# apiVersion: v1
# kind: Service
# metadata:
# name: jellyfin
# namespace: home-apps
# spec:
# ports:
# - port: 8000
# targetPort: 8000
# selector:
# app: jellyfin
# ---
# apiVersion: apps/v1
# kind: Deployment
# metadata:
# name: jellyfin
# spec:
# revisionHistoryLimit: 2
# selector:
# matchLabels:
# app: jellyfin
# replicas: 1
# template:
# metadata:
# labels:
# app: jellyfin
# spec:
# containers:
# - name: jellyfin
# image: alpine/socat
# args:
# - "tcp-listen:8000,fork,reuseaddr"
# - "tcp-connect:192.168.1.11:8096"
# ports:
# - containerPort: 8000
# resources:
# limits:
# cpu: "0.5"
# memory: "512Mi"
# requests:
# cpu: "0.1"
# memory: "256Mi"
# ---
# apiVersion: networking.k8s.io/v1
# kind: Ingress
# metadata:
# name: jellyfin-ingress
# annotations:
# kubernetes.io/ingress.class: "nginx"
# kubernetes.io/tls-acme: "true"
# cert-manager.io/cluster-issuer: "letsencrypt-prod"
# nginx.ingress.kubernetes.io/auth-url: "https://id.junv.me/oauth2/auth"
# nginx.ingress.kubernetes.io/auth-signin: "https://id.junv.me/oauth2/start?rd=https%3A%2F%2F$host$request_uri"
# spec:
# tls:
# - hosts:
# - jellyfin.junv.me
# secretName: jellyfin-tls
# rules:
# - host: jellyfin.junv.me
# http:
# paths:
# - backend:
# service:
# name: jellyfin
# port:
# number: 8000
# path: /
# pathType: Prefix