The kubectl
commandlet allows to install and use kubernetes.
On Windows WSL 2(Windows Subsystem for Linux) has to be installed properly as a prerequisite.
The setup on windows will then install kubernetes with K3D. K3D will create a cluster with a single node with a default name as "devonfw-cluster"
ATTENTION: Currently this feature is new and therefore experimental. It may change in incompatible ways in the next releases until we reach a stable state. We hope that all is working fine for you. However, do not expect everything to work out of the box. In case you are facing issues (e.g. network problems with Cisco AnyConnect, etc.) please give us feedback so we can improve.
The arguments (devon kubectl «args»
) are explained by the following table:
devon kubectl
Argument(s) | Meaning |
---|---|
|
setup Kubernetes (install and verify) as per above flow. |
|
call kubectl with the specified arguments. Call |
Please note that on Windows and macOS, Kubernetes support comes together with Docker Desktop
that is installed via docker commandlet.
When you have installed and launched Docker Desktop
, you can once enable Kubernetes in the Preferences.
On Linux however, Kubernetes is installed separately by this commandlet.
Once installed via setup, you can run kubectl
directly from any shell of your OS directly.
Run kubectl help
to get started and use the online documentations and resources on the web to get familiar with Kubernetes.
It is not our intention to repeat this here.
Please note that the kubectl
commandlet is a command wrapper.