Skip to content

Commit 8b0b7b2

Browse files
committed
Add a Layer 3 tailscale service for the proxy API
1 parent f6bbe01 commit 8b0b7b2

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

bases/stalwart-migration-proxy/service.yaml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ spec:
5858
externalName: "" # Populate with Kustomize
5959

6060
---
61-
# Exposes the Stalwart migration proxy admin API internally for Tailscale to grant human access
61+
# Exposes the Stalwart migration proxy admin API internally for private programmatic access
6262
apiVersion: v1
6363
kind: Service
6464
metadata:
@@ -74,6 +74,20 @@ spec:
7474
port: 8080
7575
targetPort: proxy-api
7676

77-
# ---
78-
# Potentially we need another service here to expose 8080 for Legacy Accounts, but only if Accounts
79-
# is not migrated before we start sending traffic through this proxy.
77+
---
78+
# Exposes the Stalwart migration proxy admin API as a Layer 3 Tailscale service
79+
apiVersion: v1
80+
kind: Service
81+
metadata:
82+
name: stalwart-migration-proxy-api-tailscale
83+
annotations:
84+
argocd.argoproj.io/sync-wave: "2"
85+
spec:
86+
type: LoadBalancer
87+
loadBalancerClass: tailscale
88+
selector:
89+
app: stalwart-migration-proxy
90+
ports:
91+
- name: proxy-api
92+
port: 8080
93+
targetPort: proxy-api

0 commit comments

Comments
 (0)