A Word on CRUD
Explore the core CRUD operations—create, read, update, delete—in Kubernetes API. Learn how these actions are performed using HTTP methods like POST and DELETE and how they enable resource management through secure RESTful interfaces on the control plane.
We'll cover the following...
We'll cover the following...
What is CRUD?
CRUD is an acronym for the four basic functions web APIs use to manipulate and persist objects — create, read, update, delete. As previously mentioned, the Kubernetes API exposes and implements CRUD-style operations via the common HTTP methods.
Let’s consider an example.
The following JSON is from the ns.json file in the api folder. It defines a new Namespace object called shield ...