Kubernetes: Difference between revisions

From Piszczynski
(Created page with "==Create Pod== Create pod with the following command:<syntaxhighlight lang="bash"> kubectl apply -f pod.yaml #apply the config in the .yaml file </syntaxhighlight>inspect the pods conents:<syntaxhighlight lang="bash"> ps auxf </syntaxhighlight>use ctl command to see base info:<syntaxhighlight lang="bash"> sudo ctr --namespace=k8s.io containers ls </syntaxhighlight>")
 
No edit summary
 
Line 8: Line 8:
</syntaxhighlight>use ctl command to see base info:<syntaxhighlight lang="bash">
</syntaxhighlight>use ctl command to see base info:<syntaxhighlight lang="bash">
sudo ctr --namespace=k8s.io containers ls
sudo ctr --namespace=k8s.io containers ls
</syntaxhighlight>See running containers in the pod using ctl:<syntaxhighlight lang="bash">
sudo crictl ps


</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 15:35, 14 April 2024

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