Skip to content

Commit deefbec

Browse files
alpebkflynn
andauthored
Update multicluster-using-statefulsets (#1945)
* Update multicluster-using-statefulsets Changed demo repo to https://github.com/linkerd/l2d-k3d-statefulset, which has been updated (linkerdll2d-k3d-statefulset#1) to fit the new multicluster link management in 2.18. Also fixed a couple other errors. * Update linkerd.io/content/2-edge/tasks/multicluster-using-statefulsets.md Co-authored-by: Flynn <kflynn@users.noreply.github.com> --------- Co-authored-by: Flynn <kflynn@users.noreply.github.com>
1 parent c694ae7 commit deefbec

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

linkerd.io/content/2-edge/tasks/multicluster-using-statefulsets.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ on how multi-cluster support for headless services work, check out
3131
- [`smallstep/CLI`](https://github.com/smallstep/cli/releases) to generate
3232
certificates for Linkerd installation.
3333
- [`A recent linkerd release`](https://github.com/linkerd/linkerd2/releases)
34-
(2.11 or older).
34+
(2.18 or newer).
3535

3636
To help with cluster creation and installation, there is a demo repository
3737
available. Throughout the guide, we will be using the scripts from the
@@ -48,7 +48,7 @@ repository on your local machine.
4848

4949
```sh
5050
# clone example repository
51-
$ git clone git@github.com:mateiidavid/l2d-k3d-statefulset.git
51+
$ git clone git@github.com:linkerd/l2d-k3d-statefulset.git
5252
$ cd l2d-k3d-statefulset
5353
```
5454

@@ -71,10 +71,9 @@ west 1/1 0/0 true
7171

7272
Once our clusters are created, we will install Linkerd and the multi-cluster
7373
extension. Finally, once both are installed, we need to link the two clusters
74-
together so their services may be mirrored. To enable support for headless
75-
services, we will pass an additional `--set "enableHeadlessServices=true` flag
76-
to `linkerd multicluster link`. As before, these steps are automated through
77-
the provided scripts, but feel free to have a look!
74+
together so their services may be mirrored. As before, these steps are automated
75+
through the provided scripts; please give them a look and see how the
76+
controllers and links are generated for both clusters.
7877

7978
```sh
8079
# Install Linkerd and multicluster, output to check should be a success
@@ -178,7 +177,7 @@ nginx-set-1 2/2 Running 0 4m58s
178177
nginx-set-2 2/2 Running 0 4m51s
179178
curl-56dc7d945d-s4n8j 0/2 PodInitializing 0 4s
180179

181-
$ kubectl --context=k3d-west exec -it curl-56dc7d945d-s4n8j -c curl -- bin/sh
180+
$ kubectl --context=k3d-west exec -it curl-56dc7d945d-s4n8j -c curl -- sh
182181
/$ # prompt for curl pod
183182
```
184183

@@ -235,7 +234,7 @@ endpoints for `nginx-svc-west` will have the same hostnames, but each hostname
235234
will point to one of the services we see above:
236235

237236
```sh
238-
$ kubectl --context=k3d-east get endpoints nginx-svc-west -o yaml
237+
$ kubectl --context=k3d-east get endpoints nginx-svc-k3d-west -o yaml
239238
subsets:
240239
- addresses:
241240
- hostname: nginx-set-0
@@ -256,12 +255,12 @@ NAME READY STATUS RESTARTS AGE
256255
curl-56dc7d945d-96r6p 2/2 Running 0 23m
257256

258257
# exec and curl
259-
$ kubectl --context=k3d-east exec pod curl-56dc7d945d-96r6p -it -c curl -- bin/sh
258+
$ kubectl --context=k3d-east exec curl-56dc7d945d-96r6p -it -c curl -- sh
260259
# we want to curl the same hostname we see in the endpoints object above.
261260
# however, the service and cluster domain will now be different, since we
262261
# are in a different cluster.
263262
#
264-
/ $ curl nginx-set-0.nginx-svc-west.default.svc.east.cluster.local
263+
/ $ curl nginx-set-0.nginx-svc-k3d-west.default.svc.east.cluster.local
265264
<!DOCTYPE html>
266265
<html>
267266
<head>

0 commit comments

Comments
 (0)