Skip to content

Commit d4d3b83

Browse files
claudiolorfra98
authored andcommitted
docs: add declarative peering section
1 parent e6f294e commit d4d3b83

File tree

4 files changed

+455
-7
lines changed

4 files changed

+455
-7
lines changed

docs/_toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ subtrees:
4343
- file: advanced/peering/inter-cluster-network.md
4444
- file: advanced/peering/inter-cluster-authentication.md
4545
- file: advanced/peering/offloading-in-depth.md
46+
- file: advanced/peering/peering-via-cr.md
4647
- file: advanced/use-only-offloading.md
4748
- file: advanced/enable-external-networking.md
4849
- file: advanced/virtualnode-customizations.md

docs/advanced/peering/inter-cluster-authentication.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ As a result of the command, you should be able to see:
208208
NAME TYPE DATA AGE
209209
liqo-signed-nonce Opaque 2 78s
210210
```
211-
211+
212212
```{admonition} Note
213-
If you want to use the [in-band](UsagePeeringInBand) approach, use the `spec.proxyURL` field inside the `Tenant` CRD.
213+
If you want to use the [in-band](UsagePeeringInBand) approach, use the `spec.proxyURL` field inside the `Tenant` CRD.
214214
Check the [Kubernetes API Server Proxy](/advanced/k8s-api-server-proxy.md) page
215215
```
216216

@@ -259,11 +259,11 @@ spec:
259259
status: {}
260260
```
261261
262-
Which can be applied **on the cluster consumer**:
262+
Which can be applied **on the cluster consumer**, making sure that the resource is created in the tenant namespace (`liqo-tenant-cl-consumer` in this case):
263263

264264
```{code-block} bash
265265
:caption: "Cluster consumer"
266-
kubectl apply -f $IDENTITY_RESOURCE_YAML_PATH
266+
kubectl apply -f $IDENTITY_RESOURCE_YAML_PATH -n liqo-tenant-cl-consumer
267267
```
268268

269269
Once the Identity resource is correctly applied, the clusters are able to negotiate the resources for the [offloading](/advanced/peering/offloading-in-depth).
@@ -292,10 +292,10 @@ All in all, these are the steps to be followed by the administrators of each of
292292
liqoctl generate identity --remote-cluster-id $CLUSTER_CONSUMER_ID > identity.yaml
293293
```
294294

295-
4. **Cluster consumer** applies `identity.yaml`:
295+
4. **Cluster consumer** applies `identity.yaml` in the tenant namespace:
296296

297297
```bash
298-
kubectl apply -f identity.yaml
298+
kubectl apply -f identity.yaml -n $TENANT_NAMESPACE
299299
```
300300

301301
You can check whether the procedure completed successfully by checking [the peering status](../../usage/peer.md#check-status-of-peerings).

0 commit comments

Comments
 (0)