@iximiuz: Working with Kubernetes API - ...

@iximiuz
23 views Oct 31, 2025
1
Working with Kubernetes API - đź§µ with resources

Kubernetes API is huge. It has over 100 endpoints, an advanced structure, and a dozen specialized concepts - API Groups, Namespaces, Resources, Kinds, Objects, and whatnot.

However, under the hood, it's a good old REST API.
Media image
2
1. Learn the Main Kubernetes API Constructs

Before jumping to calling the API, familiarize yourself with the main concepts: Resources, Kinds, and Objects. With a clear API structure in mind, it'll be much easier to approach the hands-on problems.

iximiuz.com/en/posts/kuber…
3
2. Call Kubernetes API using cURL

If you sneak-peek at kubectl talking to your cluster using the `-v 8` flag, you'll notice that the API requests it makes look surprisingly simple - it's a good old REST HTTP API. So you can learn how to call it, too!

iximiuz.com/en/posts/kuber…
4
3. Call Kubernetes API from Go

If you made it this far, you already know:

- Main Kubernetes API constructs
- How to authenticate requests
- How to call the API from the command line

Time to learn how to call the API programmatically.

iximiuz.com/en/posts/kuber…
5
4. Practice writing Kubernetes programs

Before jumping to writing Kubernetes controllers with higher-level frameworks like Kubebuilder, it's a good idea to write a few simpler programs using the bare Go client to call the cluster API.

A few examples github.com/iximiuz/client…
6
5. Setting up a Kubernetes development environment

One thing you don't want to do is use your production (or even development) cluster to test your first controllers. An ephemeral (and disposable) Kubernetes cluster would be a much better choice 👇

labs.iximiuz.com/playgrounds/k8…
7
Happy hacking!
Actions
Visual Editor Carousel Maker NEW
Update Thread
What You Can Do
  • Download as PDF
  • Save to Notion
  • Export as Markdown
  • Visual Editor
  • LinkedIn & Instagram Carousel Maker
Create Free Account

Includes 7-day Premium trial