From the course: Certified Kubernetes Administrator (CKA) Cert Prep (2024)
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Using crictl to manage node containers - Kubernetes Tutorial
From the course: Certified Kubernetes Administrator (CKA) Cert Prep (2024)
Using crictl to manage node containers
- A useful utility to manage node containers is crictl. So why would you want to use it? Well, all Pods are started as containers on the nodes, and crictl is a generic tool that communicates to the container runtime to get information about running containers. And as such, you can use it as a replacement for generic tools like Docker and Podman. So that means that for basic container management and investigation, you don't need Docker and Podman, you just need crictl. To use it, you'll need to set a runtime-endpoint and an image-endpoint. The most convenient way to do so is by defining the /etc/crictl.yaml file on the nodes where you want to run crictl. In the course, git repository, I'm providing an example of this YAML file. Probably you want to fetch this YAML file so that you don't have to create it for yourself. All right, let me continue and let me show you some crictl. Here on the slide, you can see the commands that I'm going to run for you. So let me start with sudo crictl…
Contents
-
-
-
-
-
-
-
-
(Locked)
Module 3: Managing Kubernetes clusters introduction35s
-
(Locked)
Learning objectives38s
-
(Locked)
Analyzing cluster nodes5m 21s
-
(Locked)
Using crictl to manage node containers5m 29s
-
(Locked)
Running static Pods3m 35s
-
(Locked)
Managing node state8m 12s
-
(Locked)
Managing node services4m 24s
-
(Locked)
Lesson 6 lab: Running static Pods20s
-
(Locked)
Lesson 6 lab solution: Running static Pods1m 58s
-
(Locked)
-
-
-
-
-
-
-
-