|
66 | 66 | To create a cluster, update `clusterConfig` variable and run:
|
67 | 67 |
|
68 | 68 | ```shell
|
69 |
| -kubectl apply --server-side -f examples/capi-quick-start/docker-cluster.yaml |
| 69 | +kubectl apply --server-side -f examples/capi-quick-start/docker-cluster-calico-helm-addon.yaml |
70 | 70 | ```
|
71 | 71 |
|
72 | 72 | Wait until control plane is ready:
|
73 | 73 |
|
74 | 74 | ```shell
|
75 |
| -kubectl wait clusters/docker-quick-start --for=condition=ControlPlaneInitialized --timeout=5m |
| 75 | +kubectl wait clusters/docker-quick-start-helm-addon-calico --for=condition=ControlPlaneInitialized --timeout=5m |
76 | 76 | ```
|
77 | 77 |
|
78 | 78 | To get the kubeconfig for the new cluster, run:
|
79 | 79 |
|
80 | 80 | ```shell
|
81 |
| -clusterctl get kubeconfig docker-quick-start > docker-kubeconfig |
| 81 | +clusterctl get kubeconfig docker-quick-start-helm-addon-calico > docker-kubeconfig |
82 | 82 | ```
|
83 | 83 |
|
84 | 84 | If you are not on Linux, you will also need to fix the generated kubeconfig's `server`, run:
|
85 | 85 |
|
86 | 86 | ```shell
|
87 |
| -kubectl config set-cluster docker-quick-start \ |
| 87 | +kubectl config set-cluster docker-quick-start-helm-addon-calico \ |
88 | 88 | --kubeconfig docker-kubeconfig \
|
89 |
| - --server=https://$(docker port docker-quick-start-lb 6443/tcp) |
| 89 | + --server=https://$(docker port docker-quick-start-helm-addon-calico-lb 6443/tcp) |
90 | 90 | ```
|
91 | 91 |
|
92 | 92 | Wait until all nodes are ready (this indicates that CNI has been deployed successfully):
|
@@ -151,7 +151,7 @@ watch -n 0.5 kubectl --kubeconfig docker-kubeconfig get service/traefik
|
151 | 151 | To delete the workload cluster, run:
|
152 | 152 |
|
153 | 153 | ```shell
|
154 |
| -kubectl delete cluster docker-quick-start |
| 154 | +kubectl delete cluster docker-quick-start-helm-addon-calico |
155 | 155 | ```
|
156 | 156 |
|
157 | 157 | Notice that the traefik service is deleted before the cluster is actually finally deleted.
|
|
0 commit comments