You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting_started.md
+27-37Lines changed: 27 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,30 +90,25 @@ export CLUSTER_CIDR='100.96.0.0/11' # (optional) The cluster CIDR of the m
90
90
EOF
91
91
```
92
92
93
-
With the above environment variable file it is now possible to generate the manifests needed to bootstrap the management cluster. The following command uses Docker to run an image that has all of the necessary templates and tools to generate the YAML manifests. Please note that the example mounts the current directory as the location where the YAML will be generated. Additionally, the `envvars.txt` file created above is mounted inside the the image in order to provide the generation routine with its default values:
93
+
With the above environment variable file it is now possible to generate the manifests needed to bootstrap the management cluster. The following command uses Docker to run an image that has all of the necessary templates and tools to generate the YAML manifests. Additionally, the `envvars.txt` file created above is mounted inside the the image in order to provide the generation routine with its default values:
94
94
95
95
```shell
96
-
# create the output directory for the management cluster manifests,
97
-
# only required for Linux to work around permissions issues on volume mounts
Once `clusterctl` has completed successfully, the file `management-cluster/kubeconfig` may be used to access the new management cluster. This is the **admin**`kubeconfig` for the management cluster, and it may be used to spin up additional clusters with Cluster API. However, the creation of roles with limited access, is recommended before creating additional clusters.
133
+
Once `clusterctl` has completed successfully, the file `./out/management-cluster/kubeconfig` may be used to access the new management cluster. This is the **admin**`kubeconfig` for the management cluster, and it may be used to spin up additional clusters with Cluster API. However, the creation of roles with limited access, is recommended before creating additional clusters.
139
134
140
135
**NOTE**: From this point forward `clusterctl` is no longer required to provision new clusters. Workload clusters should be provisioned by applying Cluster API resources directly on the management cluster using `kubectl`.
141
136
@@ -146,21 +141,16 @@ With your management cluster bootstrapped, it's time to reap the benefits of Clu
146
141
Using the same Docker command as above, generate resources for a new cluster, this time with a different name:
147
142
148
143
```shell
149
-
# create the output directory for the workload cluster manifests,
150
-
# only required for Linux to work around permissions issues on volume mounts
**NOTE**: The above step is not required to manage your Cluster API resources at this point but is used to simplify this guide. You should manage your Cluster API resources in the same way you would manage your Kubernetes application manifests. Please use the generated manifests only as a reference.
162
152
163
-
The Cluster and Machine resource in `workload-cluster-1/cluster.yaml` and `workload-cluster-1/machines.yaml` defines the workload cluster with the initial control plane node:
153
+
The Cluster and Machine resource in `./out/workload-cluster-1/cluster.yaml` and `./out/workload-cluster-1/machines.yaml` defines the workload cluster with the initial control plane node:
164
154
165
155
```yaml
166
156
---
@@ -212,7 +202,7 @@ spec:
212
202
controlPlane: "1.13.6"
213
203
```
214
204
215
-
To add 3 additional worker nodes to your cluster, see the generated machineset file `workload-cluster-1/machineset.yaml`:
205
+
To add 3 additional worker nodes to your cluster, see the generated machineset file `./out/workload-cluster-1/machineset.yaml`:
216
206
217
207
```yaml
218
208
apiVersion: "cluster.k8s.io/v1alpha1"
@@ -258,27 +248,27 @@ Use `kubectl` with the `kubeconfig` for the management cluster to provision the
258
248
1. Export the management cluster's `kubeconfig` file:
The new `workload-cluster-1/kubeconfig` file may now be used to access the workload cluster.
295
+
The new `./out/workload-cluster-1/kubeconfig` file may now be used to access the workload cluster.
306
296
307
297
**NOTE**: Workload clusters do not have any addons applied aside from those added by kubeadm. Nodes in your workload clusters will be in the `NotReady` state until you apply a CNI addon. The `addons.yaml` files generated above have a default Calico addon which you can use, otherwise apply custom addons based on your use-case.
0 commit comments