Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is API in kubernetes

Shulou Source: shulou.com Published: 2022-06-01 08:10:24 09月12日 Update

This article is about what API is in kubernetes. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

One: architecture

Two: description

Kubernetes API is an important part of the cluster system. The data of various resources (objects) in Kubernetes are submitted to the back-end persistent storage (etcd) through the API interface, and the components in the Kubernetes cluster are decoupled through the API interface. At the same time, kubectl, an important and convenient management tool in the Kubernetes cluster, also realizes its powerful management function by accessing the API interface. Resource objects in Kubernetes API all have common metadata, and resource objects may also have nesting phenomena, such as nesting multiple Container in a Pod. Creating an API object means creating a meaningful record through an API call, and once the record is created, Kubernetes will ensure that the corresponding resource object is automatically created and hosted for maintenance.

In Kubernetes system, in most cases, the definition and implementation of API conform to the standard HTTP REST format, such as querying, creating, modifying and deleting related resource objects through standard HTTP verbs (POST, PUT, GET, DELETE). But at the same time, Kubernetes also implements additional API interfaces for some non-standard REST behaviors, such as Watch a change in a resource, entering the container to perform an operation, and so on. In addition, some API interfaces may violate the strict REST schema because instead of returning a single JSON object, the interface returns other types of data, such as JSON object streams (Stream) or unstructured text log data.

Kubernetes developers believe that any successful system will go through a process of growing and adapting to a variety of changes. Therefore, they expect Kubernetes API to be constantly changing and growing. At the same time, they are consciously compatible with existing customer needs in design and development. In general, new API resources (Resource) and new resource domains do not want to be frequently joined to the system. The deletion of resources or domains requires a rigorous audit process.

Thank you for reading! This is the end of this article on "what is API in kubernetes?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Tags: Resources objects interfaces data systems continuous at the same time standards clusters importance content more articles structure development management good convenient powerful frequent Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia vpn Linux Redmi Shulou Information