Kubernetes(k8s) is an open source system for container orchestration. Kubernetes allows the automatic management of containers. Learn more about Kubernetes here.
|
Note
|
Docker Desktop is no longer free for large companies. Please use Rancer Desktop instead. |
-
Install Rancher Desktop with the DevonIDE
-
Choose a container Runtime containerd or dockerd(moby)
-
containerd is using the nerdctl
-
dockerd is using the docker cli
-
Nerdctl is a "docker-compatible" cli tool for the containerd runtime. It mimics the docker interface in most cases. For the local development, the only difference is shown below.
- Docker
-
Create a locale image from Dockerfile for local kubernetese cluster
docker build -t image_name .
Create objects in the cluter from a configuration file
kubectl apply -f configFile.yaml
- Nerdctl
-
Create a locale image from Dockerfile for local kubernetese cluster
nerdctl build -t image_name --namespace k8s.io .
Create objects in the cluter from a configuration file
kubectl apply -f configFile.yaml
Yaml files define the structure of a kuberentes application. Each object inside the cluster can be described with a yaml file. Kuberentes has lots of different objects. To get startet check out the following:
To create an object inside the cluster run
kubectl apply -f configFile.yaml