Use implicit mapping for external domains

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2024-03-30 17:14:51 +00:00
parent 6b9e8d42b7
commit 0e692eaf30
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
4 changed files with 9 additions and 25 deletions

View File

@ -20,9 +20,9 @@ spec:
pathType: ImplementationSpecific
backend:
service:
name: auth-proxy-v2
name: tailscale-proxy
port:
name: http
name: auth
---
apiVersion: networking.k8s.io/v1

View File

@ -177,21 +177,3 @@ spec:
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: auth-proxy-v2
namespace: auth-proxy
labels:
app: auth-proxy-v2
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 8181
selector:
app: internal-proxy
type: ClusterIP

View File

@ -22,4 +22,4 @@ spec:
service:
name: tailscale-proxy
port:
name: http
name: non-auth

View File

@ -13,9 +13,7 @@ data:
"loki.auth-proxy.svc": "loki-write.cluster.local",
"loki.auth-proxy.svc:80": "loki-write.cluster.local",
"loki-distributed.auth-proxy.svc": "loki-loki.cluster.local",
"loki-distributed.auth-proxy.svc:80": "loki-loki.cluster.local",
"hello-world.cluster.fun": "hello-world.cluster.fun",
"hello.cluster.fun": "hello.cluster.fun"
"loki-distributed.auth-proxy.svc:80": "loki-loki.cluster.local"
}
---
apiVersion: apps/v1
@ -120,10 +118,14 @@ metadata:
app: internal-proxy
spec:
ports:
- name: http
- name: non-auth
port: 80
protocol: TCP
targetPort: 8080
- name: auth
port: 81
protocol: TCP
targetPort: 8181
selector:
app: internal-proxy
type: ClusterIP