Updated proxy

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2021-11-07 05:30:13 +00:00
parent 10d80e3452
commit bdc418e0d8
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
2 changed files with 58 additions and 12 deletions

View File

@ -13,7 +13,6 @@ spec:
- downloads.cluster.fun
- argo.cluster.fun
- code.cluster.fun
- home.cluster.fun
- adguard.cluster.fun
- podify.cluster.fun
- jackett.cluster.fun
@ -21,6 +20,7 @@ spec:
- radarr.cluster.fun
- sonarr.cluster.fun
- transmission.cluster.fun
- tekton.cluster.fun
secretName: auth-proxy-ingress
rules:
- host: downloads.cluster.fun
@ -53,16 +53,6 @@ spec:
name: auth-proxy
port:
name: http
- host: home.cluster.fun
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: auth-proxy
port:
name: http
- host: adguard.cluster.fun
http:
paths:
@ -133,3 +123,13 @@ spec:
name: auth-proxy
port:
name: http
- host: tekton.cluster.fun
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: auth-proxy
port:
name: http

View File

@ -8,7 +8,9 @@ metadata:
data:
mapping.json: |
{
"tekton-el.auth-proxy.svc": "tekton-el.cluster.local"
"tekton-el.auth-proxy.svc": "tekton-el.cluster.local",
"home.auth-proxy.svc": "home.cluster.local",
"home.cluster.fun": "home.cluster.local"
}
---
@ -99,3 +101,47 @@ spec:
app: proxy
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: home
namespace: auth-proxy
labels:
app: proxy
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 8080
selector:
app: proxy
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: non-auth-proxy
namespace: auth-proxy
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
spec:
ingressClassName: nginx
tls:
- hosts:
- home.cluster.fun
secretName: non-auth-proxy-ingress
rules:
- host: home.cluster.fun
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: home
port:
name: http