Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a note to enable the Multi-Cluster Services feature gate #576

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/tutorials/access-service-across-clusters.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ Ensure that at least two clusters have been added to Karmada, and the container

Note: In order to prevent routing conflicts, Pod and Service CIDRs of clusters need non-overlapping.

### Enable MultiClusterService in karmada-controller-manager

To enable the MultiClusterService feature in the karmada-controller-manager, run the following command:

```shell
$ kubectl --context karmada-host get deploy karmada-controller-manager -n karmada-system -o yaml | sed '/- --v=4/i \ - --feature-gates=MultiClusterService=true' | kubectl --context karmada-host replace -f -
```

Please note that the MultiClusterService feature is disabled by default and can be enabled using the `--feature-gates=MultiClusterService=true` flag.

If you prefer a more cautious approach, follow these steps:

1. Run `kubectl --context karmada-host edit deploy karmada-controller-manager -n karmada-system`
2. Check if `--feature-gates=MultiClusterService=true` is present in the `spec.template.spec.containers[0].command` field.
3. If not, add `--feature-gates=MultiClusterService=true` to enable the feature.

## Deploy deployment in `member1` cluster

We need to deploy deployment in `member1` cluster:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ Ensure that at least two clusters have been added to Karmada, and the container

Note: In order to prevent routing conflicts, Pod and Service CIDRs of clusters need non-overlapping.

### Enable MultiClusterService in karmada-controller-manager
tpiperatgod marked this conversation as resolved.
Show resolved Hide resolved

To enable the MultiClusterService feature in the karmada-controller-manager, run the following command:

```shell
$ kubectl --context karmada-host get deploy karmada-controller-manager -n karmada-system -o yaml | sed '/- --v=4/i \ - --feature-gates=MultiClusterService=true' | kubectl --context karmada-host replace -f -
```

Please note that the MultiClusterService feature is disabled by default and can be enabled using the `--feature-gates=MultiClusterService=true` flag.

If you prefer a more cautious approach, follow these steps:

1. Run `kubectl --context karmada-host edit deploy karmada-controller-manager -n karmada-system`
2. Check if `--feature-gates=MultiClusterService=true` is present in the `spec.template.spec.containers[0].command` field.
3. If not, add `--feature-gates=MultiClusterService=true` to enable the feature.

## Deploy deployment in `member1` cluster

We need to deploy deployment in `member1` cluster:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ Ensure that at least two clusters have been added to Karmada, and the container

Note: In order to prevent routing conflicts, Pod and Service CIDRs of clusters need non-overlapping.

### Enable MultiClusterService in karmada-controller-manager

To enable the MultiClusterService feature in the karmada-controller-manager, run the following command:

```shell
$ kubectl --context karmada-host get deploy karmada-controller-manager -n karmada-system -o yaml | sed '/- --v=4/i \ - --feature-gates=MultiClusterService=true' | kubectl --context karmada-host replace -f -
```

Please note that the MultiClusterService feature is disabled by default and can be enabled using the `--feature-gates=MultiClusterService=true` flag.

If you prefer a more cautious approach, follow these steps:

1. Run `kubectl --context karmada-host edit deploy karmada-controller-manager -n karmada-system`
2. Check if `--feature-gates=MultiClusterService=true` is present in the `spec.template.spec.containers[0].command` field.
3. If not, add `--feature-gates=MultiClusterService=true` to enable the feature.

## Deploy deployment in `member1` cluster

We need to deploy deployment in `member1` cluster:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ Ensure that at least two clusters have been added to Karmada, and the container

Note: In order to prevent routing conflicts, Pod and Service CIDRs of clusters need non-overlapping.

### Enable MultiClusterService in karmada-controller-manager

To enable the MultiClusterService feature in the karmada-controller-manager, run the following command:

```shell
$ kubectl --context karmada-host get deploy karmada-controller-manager -n karmada-system -o yaml | sed '/- --v=4/i \ - --feature-gates=MultiClusterService=true' | kubectl --context karmada-host replace -f -
```

Please note that the MultiClusterService feature is disabled by default and can be enabled using the `--feature-gates=MultiClusterService=true` flag.

If you prefer a more cautious approach, follow these steps:

1. Run `kubectl --context karmada-host edit deploy karmada-controller-manager -n karmada-system`
2. Check if `--feature-gates=MultiClusterService=true` is present in the `spec.template.spec.containers[0].command` field.
3. If not, add `--feature-gates=MultiClusterService=true` to enable the feature.

## Deploy deployment in `member1` cluster

We need to deploy deployment in `member1` cluster:
Expand Down