Kubernetes: Difference between revisions

From Piszczynski
No edit summary
No edit summary
Line 1: Line 1:
== Install Kubeadm ==
Install Kubeadm with the following steps:
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
==Create Pod==
==Create Pod==
Create pod with the following command:<syntaxhighlight lang="bash">
Create pod with the following command:<syntaxhighlight lang="bash">

Revision as of 17:28, 27 May 2024

Install Kubeadm

Install Kubeadm with the following steps:

https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/

Create Pod

Create pod with the following command:

kubectl apply -f pod.yaml #apply the config in the .yaml file

inspect the pods conents:

ps auxf

use ctl command to see base info:

sudo ctr --namespace=k8s.io containers ls

See running containers in the pod using ctl:

sudo crictl ps