Kubernetes

From Piszczynski
Revision as of 15:35, 14 April 2024 by Aleks (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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