Skip to content

Commit

Permalink
removed references to enableHA
Browse files Browse the repository at this point in the history
  • Loading branch information
facchettos committed Jan 30, 2024
1 parent 9ac324b commit eb1f33c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 34 deletions.
21 changes: 5 additions & 16 deletions docs/pages/deploying-vclusters/high-availability.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,15 @@ A distro in vcluster is the Kubernetes distribution that runs inside the virtual
- k8s (a Kubernetes with etcd)
The vcluster HA feature is only supported by the k3s and k8s distros. You need to choose one of those to take advantage of HA.

For this tutorial, we will use the k8s distro.
If you're interested in enabling HA in rootless mode, or using the k3s distro, see some examples at the bottom of this page.
For this tutorial, we will use the k8s distro.
If you're interested in enabling HA in rootless mode, or using the k3s distro, see some examples at the bottom of this page.

# 3. Create a values.yaml file
The values.yaml file is used to specify configuration options for the virtual cluster. In the case of the HA feature, we will specify the number of replicas we want to run for each vCluster component.

Create the file called values.yaml on the computer that the vcluster client is installed on with these contents:

```
# Enable HA mode
enableHA: true
# Scale up syncer replicas
syncer:
replicas: 3
Expand Down Expand Up @@ -68,7 +65,7 @@ NAME STATUS ROLES AGE VERSION
minikube Ready control-plane 2m5s v1.26.3
minikube-m02 Ready <none> 105s v1.26.3
minikube-m03 Ready <none> 93s v1.26.3
minikube-m04 Ready <none> 83s v1.26.3
minikube-m04 Ready <none> 83s v1.26.3
```

# 4. Create the HA virtual cluster
Expand Down Expand Up @@ -174,11 +171,9 @@ In order to run vCluster with k3s as Kubernetes distribution in high availabilit
First create a `values.yaml` in the following form and make sure to change the connection string in `K3S_DATASTORE_ENDPOINT`:

```
# Enable HA mode
enableHA: true
# Scale up k3s replicas
replicas: 2
syncer:
replicas: 2
# Set external datastore endpoint
vcluster:
Expand Down Expand Up @@ -232,9 +227,6 @@ Check the [GitHub repository](https://github.com/loft-sh/vcluster/tree/main/char
In order to run vCluster in high availability mode, create a `values.yaml` in the following form:

```
# Enable HA mode
enableHA: true
# Scale up syncer replicas
syncer:
replicas: 3
Expand Down Expand Up @@ -298,9 +290,6 @@ You can find more about rootless mode [here](../security/rootless-mode.mdx).

Below is HA configuration for running rootless vCluster with vanilla Kubernetes distribution.
```
# Enable HA mode
enableHA: true
# Scale up syncer replicas
syncer:
replicas: 3
Expand Down
7 changes: 2 additions & 5 deletions docs/pages/fragments/high-availability-k3s.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ In order to run vCluster with k3s as Kubernetes distribution in high availabilit
First create a `values.yaml` in the following form and make sure to change the connection string in `K3S_DATASTORE_ENDPOINT`:

```
# Enable HA mode
enableHA: true
# Scale up k3s replicas
replicas: 2
syncer:
replicas: 3
# Set external datastore endpoint
vcluster:
Expand Down
6 changes: 0 additions & 6 deletions docs/pages/fragments/high-availability-k8s.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
In order to run vCluster in high availability mode, create a `values.yaml` in the following form:

```
# Enable HA mode
enableHA: true
# Scale up syncer replicas
syncer:
replicas: 3
Expand Down Expand Up @@ -69,9 +66,6 @@ You can find more about rootless mode [here](../security/rootless-mode.mdx).

Below is HA configuration for running rootless vCluster with vanilla Kubernetes distribution.
```
# Enable HA mode
enableHA: true
# Scale up syncer replicas
syncer:
replicas: 3
Expand Down
4 changes: 0 additions & 4 deletions load-test/ha-k8s.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@

# Enable HA mode
enableHA: true

# Scale up syncer replicas
syncer:
replicas: 3
Expand Down
3 changes: 0 additions & 3 deletions load-test/vcluster-k8s-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ sync:
# will sync all nodes instead of only the ones where some pods are running.
syncAllNodes: true

# Enable HA mode
enableHA: true

# Scale up syncer replicas
syncer:
replicas: 3
Expand Down

0 comments on commit eb1f33c

Please sign in to comment.