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
| kubeadm-init | Executes the kubeadm-init workflow, installs the CNI plugin and then copies the kubeconfig file on the host machine. Available options are:<br /> `--use-phases` triggers execution of the init workflow by invoking single phases. <br />`--automatic-copy-certs` instruct kubeadm to use the automatic copy cert feature.|
154
-
| manual-copy-certs | Implement the manual copy of certificates to be shared acress control-plane nodes (n.b. manual means not managed by kubeadm) Available options are:<br /> `--only-node` to execute this action only on a specific node. |
155
-
| kubeadm-join | Executes the kubeadm-join workflow both on secondary control plane nodes and on worker nodes. Available options are:<br /> `--use-phases` triggers execution of the init workflow by invoking single phases.<br />`--automatic-copy-certs` instruct kubeadm to use the automatic copy cert feature.<br /> `--only-node` to execute this action only on a specific node. |
156
-
| kubeadm-upgrade |Executes the kubeadm upgrade workflow and upgrading K8s. Available options are:<br /> `--upgrade-version` for defining the target K8s version.<br />`--only-node` to execute this action only on a specific node. |
157
-
| Kubeadm-reset | Executes the kubeadm-reset workflow on all the nodes. Available options are:<br /> `--only-node` to execute this action only on a specific node. |
158
-
| cluster-info | Returns a summary of cluster info including<br />- List of nodes<br />- list of pods<br />- list of images used by pods<br />- list of etcd members |
159
-
| smoke-test | Implements a non-exhaustive set of tests that aim at ensuring that the most important functions of a Kubernetes cluster work |
160
-
161
-
### kinder exec
162
-
163
-
`kinder exec` provide a topology aware wrapper on docker `docker exec` .
164
-
165
-
```bash
166
-
# check the kubeadm version on all the nodes
167
-
kinder exec @all -- kubeadm version
168
-
169
-
# run kubeadm join on all the worker nodes
170
-
kinder exec @w* -- kubeadm join 172.17.0.2:6443 --token abcdef.0123456789abcdef ...
171
-
172
-
# run kubectl command inside the bootstrap control-plane node
173
-
kinder exec @cp1 -- kubectl --kubeconfig=/etc/kubernetes/admin.conf cluster-info
> Please note that, `docker cp` or `kinder cp` allows you to replace the kubeadm kinary on existing nodes. If you want to replace the kubeadm binary on nodes that you create in future, please check altering node images paragraph
213
-
214
-
## Altering node images
53
+
## Usage
215
54
216
-
Kind can be estremely efficient when the node image contains all the necessary artifacts.
55
+
Read the [kind documentation](https://kind.sigs.k8s.io/docs/user/quick-start/) first.
217
56
218
-
kinder allows kubeadm contributor to exploit this feature by implementing the `kinder build node-variant` command, that takes a node-image and allows to build variants by:
57
+
Then [Prepare for tests](doc/prepare-for-tests.md)
219
58
220
-
- Adding new pre-loaded images that will be made available on all nodes at cluster creation time
221
-
- Replacing the kubeadm binary installed in the cluster, e.g. with a locally build version of kubeadm
222
-
- Adding deb packages for a second Kubernetes version to be used for upgrade testing
223
-
224
-
The above options can be combined toghether in one command, if necessary
225
-
226
-
### Add images
227
-
228
-
```bash
229
-
kinder build node-variant \
230
-
--base-image kindest/node:latest \
231
-
--image kindest/node:PR12345 \
232
-
--with-images $my-local-images/nginx.tar
233
-
```
59
+
Follow the how to guides:
234
60
235
-
Both single file or folder can be used as a arguments for the `--with-images`, but only image tar files will be considered; Image tar file will be placed in a well know folder, and kind(er) will load them during the initialization of each node.
> Please note that, replacing the kubeadm binary in the node-images will have effect on nodes that you create in future; If you want to replace the kubeadm kinary on existing nodes, you should use `docker cp` or `kinder cp` instead.
-[Getting started (test single control-plane)](doc/getting-started.md)
62
+
-[Testing HA](doc/test-HA.md)
63
+
-[Testing upgrades](doc/test-upgrades.md)
64
+
-[Testing X on Y](doc/test-XonY.md)
256
65
257
-
Both single file or folder can be used as a arguments for the `--with-upgrade-packages`, but only deb packages will be considered; deb files will be placed in a well know folder, the kubeadm-upgrade action will use them during the upgrade sequence.
66
+
Or have a look at the [Kinder reference](doc/reference.md)
0 commit comments