From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Lesson 3 lab solution: Exploring Kubernetes API resources

Lesson 3 lab solution: Exploring Kubernetes API resources - Kubernetes Tutorial

From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Lesson 3 lab solution: Exploring Kubernetes API resources

- Okay, so this continues on the Ubuntu Virtual Machine that we have set up before, and I'm going to use minikube start, which should be doable at this moment, and that is going to run minikube. So now that we have Kubernetes up and running in minikube, we can use kubectl api resources to show a list of all the different API resources that are available. This list does not fit on screen, so I recommend running it again. Pipe the outputs through the Linux less utility. And there you can see resources like the pods and the services and the deployments and many more. We will talk about quite a few, not all of them, in the remainder of this course. Now, if ever you want to figure out what is going on in a resource, you can use kubectl explain on a resource. Kubectl explain on a pod, for instance, is showing the different fields in the resource specification, of which most important is spec. So if I make that kubectl explain pod.spec, then we can see all the different parameters that you…

Contents