Skip to content

Latest commit

 

History

History
73 lines (56 loc) · 2.46 KB

File metadata and controls

73 lines (56 loc) · 2.46 KB

Kubernetes (k8s)

Kubernetes(k8s) is an open source system for container orchestration. Kubernetes allows the automatic management of containers. Learn more about Kubernetes here.

Setup

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)

Commands

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.

Building an image for locale k8s

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

Using Yaml Config files

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

Using Helm

Helm is a commandline tool to help define, install, and upgrade kubernetes applications by automating the deployment of objects.

To get started with helm view this guide

View the example for more details