Skip to content

Commit

Permalink
docs: fix cluster name in README (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoshkin authored Feb 6, 2024
1 parent 741be0b commit 362595f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,27 +66,27 @@ EOF
To create a cluster, update `clusterConfig` variable and run:

```shell
kubectl apply --server-side -f examples/capi-quick-start/docker-cluster.yaml
kubectl apply --server-side -f examples/capi-quick-start/docker-cluster-calico-helm-addon.yaml
```

Wait until control plane is ready:

```shell
kubectl wait clusters/docker-quick-start --for=condition=ControlPlaneInitialized --timeout=5m
kubectl wait clusters/docker-quick-start-helm-addon-calico --for=condition=ControlPlaneInitialized --timeout=5m
```

To get the kubeconfig for the new cluster, run:

```shell
clusterctl get kubeconfig docker-quick-start > docker-kubeconfig
clusterctl get kubeconfig docker-quick-start-helm-addon-calico > docker-kubeconfig
```

If you are not on Linux, you will also need to fix the generated kubeconfig's `server`, run:

```shell
kubectl config set-cluster docker-quick-start \
kubectl config set-cluster docker-quick-start-helm-addon-calico \
--kubeconfig docker-kubeconfig \
--server=https://$(docker port docker-quick-start-lb 6443/tcp)
--server=https://$(docker port docker-quick-start-helm-addon-calico-lb 6443/tcp)
```

Wait until all nodes are ready (this indicates that CNI has been deployed successfully):
Expand Down Expand Up @@ -151,7 +151,7 @@ watch -n 0.5 kubectl --kubeconfig docker-kubeconfig get service/traefik
To delete the workload cluster, run:

```shell
kubectl delete cluster docker-quick-start
kubectl delete cluster docker-quick-start-helm-addon-calico
```

Notice that the traefik service is deleted before the cluster is actually finally deleted.
Expand Down

0 comments on commit 362595f

Please sign in to comment.