fix(ingress-nginx): expose to Tailscale

This commit is contained in:
JJGadgets
2023-12-17 17:17:16 +08:00
parent 8fc5a5f229
commit 7345ce8e48
4 changed files with 7 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ spec:
externalTrafficPolicy: "Cluster"
annotations:
"io.cilium/lb-ipam-ips": "${APP_IP_NGINX_EXTERNAL}"
tailscale.com/expose: "true"
extraArgs:
default-ssl-certificate: "ingress/short-domain-tls"
ingressClassResource:

View File

@@ -26,6 +26,7 @@ spec:
externalTrafficPolicy: "Cluster"
annotations:
"io.cilium/lb-ipam-ips": "${APP_IP_NGINX_INTERNAL}"
tailscale.com/expose: "true"
extraArgs:
default-ssl-certificate: "ingress/short-domain-tls"
ingressClassResource:

View File

@@ -27,6 +27,7 @@ spec:
externalTrafficPolicy: "Cluster"
annotations:
"io.cilium/lb-ipam-ips": "${APP_IP_NGINX_PUBLIC}"
tailscale.com/expose: "true"
extraArgs:
default-ssl-certificate: "ingress/long-domain-tls"
ingressClassResource:

View File

@@ -42,6 +42,10 @@ spec:
protocol: TCP
- port: "443"
protocol: UDP
# allow traffic from Tailscale within cluster
- fromEndpoints:
- matchLabels:
io.kubernetes.pod.namespace: tailscale
# allow traffic from external-proxy-x
- fromEndpoints:
- matchLabels: