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

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Using curl to work with API objects

Using curl to work with API objects

- In this video you'll learn how to use curl to work with API objects. So to access the API using curl, you start the kube-proxy on the Kubernetes user workstation. That will be the command kubectl proxy --port= whatever you want, and don't forget the ampersand, because otherwise it'll run in the foreground. Next, if you use curl http://localhost:8001, you have access to the API and you will see all the available API paths and groups providing access to all the exposed functions. And that can be convenient if ever you need to access the API directly. Now, before I'm going to show you, this is not a key skill for CKAD, but this is providing valuable insight, and you know, every now and then it helps if you understand what is going on and that's why I'm going to demonstrate. But don't forget, don't memorize all of this for CKAD, because you won't see this on the exam. So let me use kubectl proxy --port=8001 & you can see it's telling us, Starting to serve on port 8001. Press Enter to…

Contents