Skip to content

Commit

Permalink
website: Fix allow-all-policy.md (clusterlink-net#646)
Browse files Browse the repository at this point in the history
Remove the tabpane function from the included file.
 
Signed-off-by: Kfir Toledo <[email protected]>
  • Loading branch information
kfirtoledo authored Jun 17, 2024
1 parent 9283022 commit abcd6d9
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 50 deletions.
37 changes: 37 additions & 0 deletions website/content/en/docs/main/tutorials/iperf/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,44 @@ spec:

### Set-up access policies

Create access policies on both clusters to allow connectivity:

*Client cluster*:

{{< tabpane text=true >}}
{{% tab header="File" %}}

```sh
kubectl apply -f $TEST_FILES/clusterlink/allow-policy.yaml
```

{{% /tab %}}
{{% tab header="Full CR" %}}

{{% readfile file="/static/files/tutorials/allow-all-policy.md" %}}

{{% /tab %}}
{{< /tabpane >}}

*Server cluster*:

{{< tabpane text=true >}}
{{% tab header="File" %}}

```sh
kubectl apply -f $TEST_FILES/clusterlink/allow-policy.yaml
```

{{% /tab %}}
{{% tab header="Full CR" %}}

{{% readfile file="/static/files/tutorials/allow-all-policy.md" %}}

{{% /tab %}}
{{< /tabpane >}}

For more details regarding policy configuration, see [policies][] documentation.

## Test service connectivity

Test the iperf3 connectivity between the clusters:
Expand Down Expand Up @@ -249,3 +285,4 @@ iperf Done.

[kind]: https://kind.sigs.k8s.io/
[kind installation guide]: https://kind.sigs.k8s.io/docs/user/quick-start
[policies]: {{< relref "../../concepts/policies/_index.md" >}}
37 changes: 37 additions & 0 deletions website/content/en/docs/main/tutorials/nginx/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,44 @@ spec:

### Set-up access policies

Create access policies on both clusters to allow connectivity:

*Client cluster*:

{{< tabpane text=true >}}
{{% tab header="File" %}}

```sh
kubectl apply -f $TEST_FILES/clusterlink/allow-policy.yaml
```

{{% /tab %}}
{{% tab header="Full CR" %}}

{{% readfile file="/static/files/tutorials/allow-all-policy.md" %}}

{{% /tab %}}
{{< /tabpane >}}

*Server cluster*:

{{< tabpane text=true >}}
{{% tab header="File" %}}

```sh
kubectl apply -f $TEST_FILES/clusterlink/allow-policy.yaml
```

{{% /tab %}}
{{% tab header="Full CR" %}}

{{% readfile file="/static/files/tutorials/allow-all-policy.md" %}}

{{% /tab %}}
{{< /tabpane >}}

For more details regarding policy configuration, see [policies][] documentation.

## Test service connectivity

Test the connectivity between the clusters with a batch job of the ```curl``` command:
Expand Down Expand Up @@ -229,3 +265,4 @@ kubectl logs jobs/curl-nginx-homepage

[kind]: https://kind.sigs.k8s.io/
[kind installation guide]: https://kind.sigs.k8s.io/docs/user/quick-start
[policies]: {{< relref "../../concepts/policies/_index.md" >}}
37 changes: 37 additions & 0 deletions website/content/en/docs/v0.3/tutorials/iperf/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,44 @@ spec:

### Set-up access policies

Create access policies on both clusters to allow connectivity:

*Client cluster*:

{{< tabpane text=true >}}
{{% tab header="File" %}}

```sh
kubectl apply -f $TEST_FILES/clusterlink/allow-policy.yaml
```

{{% /tab %}}
{{% tab header="Full CR" %}}

{{% readfile file="/static/files/tutorials/allow-all-policy.md" %}}

{{% /tab %}}
{{< /tabpane >}}

*Server cluster*:

{{< tabpane text=true >}}
{{% tab header="File" %}}

```sh
kubectl apply -f $TEST_FILES/clusterlink/allow-policy.yaml
```

{{% /tab %}}
{{% tab header="Full CR" %}}

{{% readfile file="/static/files/tutorials/allow-all-policy.md" %}}

{{% /tab %}}
{{< /tabpane >}}

For more details regarding policy configuration, see [policies][] documentation.

## Test service connectivity

Test the iperf3 connectivity between the clusters:
Expand Down Expand Up @@ -249,3 +285,4 @@ iperf Done.

[kind]: https://kind.sigs.k8s.io/
[kind installation guide]: https://kind.sigs.k8s.io/docs/user/quick-start
[policies]: {{< relref "../../concepts/policies/_index.md" >}}
37 changes: 37 additions & 0 deletions website/content/en/docs/v0.3/tutorials/nginx/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,44 @@ spec:

### Set-up access policies

Create access policies on both clusters to allow connectivity:

*Client cluster*:

{{< tabpane text=true >}}
{{% tab header="File" %}}

```sh
kubectl apply -f $TEST_FILES/clusterlink/allow-policy.yaml
```

{{% /tab %}}
{{% tab header="Full CR" %}}

{{% readfile file="/static/files/tutorials/allow-all-policy.md" %}}

{{% /tab %}}
{{< /tabpane >}}

*Server cluster*:

{{< tabpane text=true >}}
{{% tab header="File" %}}

```sh
kubectl apply -f $TEST_FILES/clusterlink/allow-policy.yaml
```

{{% /tab %}}
{{% tab header="Full CR" %}}

{{% readfile file="/static/files/tutorials/allow-all-policy.md" %}}

{{% /tab %}}
{{< /tabpane >}}

For more details regarding policy configuration, see [policies][] documentation.

## Test service connectivity

Test the connectivity between the clusters with a batch job of the ```curl``` command:
Expand Down Expand Up @@ -229,3 +265,4 @@ kubectl logs jobs/curl-nginx-homepage

[kind]: https://kind.sigs.k8s.io/
[kind installation guide]: https://kind.sigs.k8s.io/docs/user/quick-start
[policies]: {{< relref "../../concepts/policies/_index.md" >}}
50 changes: 0 additions & 50 deletions website/static/files/tutorials/allow-all-policy.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,4 @@

Create access policies on both clusters to allow connectivity:

*Client cluster*:

{{< tabpane text=true >}}
{{% tab header="File" %}}

```sh
kubectl apply -f $TEST_FILES/clusterlink/allow-policy.yaml
```

{{% /tab %}}
{{% tab header="Full CR" %}}

```sh
echo "
apiVersion: clusterlink.net/v1alpha1
kind: AccessPolicy
metadata:
name: allow-policy
namespace: default
spec:
action: allow
from:
- workloadSelector: {}
to:
- workloadSelector: {}
" | kubectl apply -f -
```

{{% /tab %}}
{{< /tabpane >}}

*Server cluster*:

{{< tabpane text=true >}}
{{% tab header="File" %}}

```sh
kubectl apply -f $TEST_FILES/clusterlink/allow-policy.yaml
```

{{% /tab %}}
{{% tab header="Full CR" %}}

```sh
echo "
apiVersion: clusterlink.net/v1alpha1
Expand All @@ -59,8 +14,3 @@ spec:
- workloadSelector: {}
" | kubectl apply -f -
```

{{% /tab %}}
{{< /tabpane >}}

For more details regarding policy configuration, see [policies](../../concepts/policies) documentation.

0 comments on commit abcd6d9

Please sign in to comment.