Short hostname "trade" (matches /trade HTTPRoute) instead of "trading-dashboard". This fixes the "Could not resolve host: trading-dashboard" error on tailnet devices while keeping the same annotation style as Grafana.
18 lines
385 B
YAML
18 lines
385 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: trading-dashboard-svc
|
|
namespace: customer1
|
|
annotations:
|
|
tailscale.com/expose: "true"
|
|
tailscale.com/hostname: "trade"
|
|
tailscale.com/tags: "tag:k8s-operator"
|
|
tailscale.com/ports: "http:3000"
|
|
spec:
|
|
selector:
|
|
app: trading-dashboard
|
|
ports:
|
|
- port: 3000
|
|
targetPort: 3000
|
|
name: http
|
|
type: ClusterIP
|