Skip to content

Commit 56cdedb

Browse files
committed
Update kustomization.yaml to include 'tsidp' resource and enable 'ts.net' configuration in CoreDNS for Cilium applications
1 parent 97cc20a commit 56cdedb

File tree

6 files changed

+97
-10
lines changed

6 files changed

+97
-10
lines changed

clusters/common/apps/tailscale-examples/sandbox/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ resources:
66
# - ./derper
77
- ./hello
88
- ./proxyt
9+
- ./tsidp
910
- ./tsflow
1011
# - ./tsdnsproxy
1112
- ./sidecar
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
annotations:
5+
tailscale.com/tailnet-fqdn: ottawa-idp.keiretsu.ts.net
6+
tailscale.com/proxy-group: common-egress
7+
name: ottawa-idp-egress
8+
spec:
9+
externalName: placeholder # any value - will be overwritten by operator
10+
type: ExternalName
11+
ports:
12+
- name: https # any value
13+
port: 443
14+
protocol: TCP
15+
---
16+
apiVersion: v1
17+
kind: Service
18+
metadata:
19+
annotations:
20+
tailscale.com/tailnet-fqdn: robbinsdale-idp.keiretsu.ts.net
21+
tailscale.com/proxy-group: common-egress
22+
name: robbinsdale-idp-egress
23+
spec:
24+
externalName: placeholder # any value - will be overwritten by operator
25+
type: ExternalName
26+
ports:
27+
- name: https # any value
28+
port: 443
29+
protocol: TCP
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
namespace: tailscale
5+
resources:
6+
- manifest.yaml
7+
- egress.yaml
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
apiVersion: apps/v1
2+
kind: StatefulSet
3+
metadata:
4+
name: tsidp
5+
namespace: tailscale
6+
labels:
7+
app: tsidp
8+
spec:
9+
replicas: 1
10+
serviceName: tsidp
11+
selector:
12+
matchLabels:
13+
app: tsidp
14+
volumeClaimTemplates:
15+
- metadata:
16+
name: tsidp-data
17+
spec:
18+
accessModes: ["ReadWriteOnce"]
19+
resources:
20+
requests:
21+
storage: 1Gi
22+
template:
23+
metadata:
24+
labels:
25+
app: tsidp
26+
spec:
27+
containers:
28+
- name: tsidp
29+
image: ghcr.io/tailscale/tsidp:latest
30+
imagePullPolicy: Always
31+
ports:
32+
- containerPort: 443
33+
name: https
34+
env:
35+
- name: TAILSCALE_USE_WIP_CODE
36+
value: "1"
37+
- name: TS_STATE_DIR
38+
value: "/data"
39+
- name: TS_HOSTNAME
40+
value: "${LOCATION}-idp"
41+
- name: TSIDP_ENABLE_STS
42+
value: "1"
43+
- name: TS_AUTHKEY
44+
valueFrom:
45+
secretKeyRef:
46+
name: ts-authkey
47+
key: TS_AUTHKEY
48+
volumeMounts:
49+
- name: tsidp-data
50+
mountPath: /data

clusters/talos-ottawa/apps/cilium/config/coredns.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ data:
3636
cache 30
3737
forward . 10.69.69.51
3838
}
39-
# ts.net {
40-
# errors
41-
# cache 30
42-
# forward . 10.69.69.50
43-
# }
39+
ts.net {
40+
errors
41+
cache 30
42+
forward . 10.69.69.50
43+
}

clusters/talos-robbinsdale/apps/cilium/config/coredns.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ data:
3636
cache 30
3737
forward . 10.69.69.51
3838
}
39-
# ts.net {
40-
# errors
41-
# cache 30
42-
# forward . 10.69.69.50
43-
# }
39+
ts.net {
40+
errors
41+
cache 30
42+
forward . 10.69.69.50
43+
}

0 commit comments

Comments
 (0)