Sunday, April 16, 2023

What is Kubernetes Workloads API

Kubernetes is all about managing your container infrastructure

n Kubernetes, there is no object, component, and any kind of construct called a “workload”. However, the term is often used as a general category for tasks and services you want running on your cluster. It might be synonymous with microservices, applications, containers, or processes. Workloads are often long-lived processes, but can also be short-lived on demand or batch jobs.

Workload Building Blocks

Pods are the most basic building block in Kubernetes when it comes to workloads. A Pod consists of one or more containers. The containers within a pod share networking and host storage, but are isolated in terms of cgroups and kernel namespaces ( not to confuse with Kubernetes namespaces ).

How many containers should you have in your Pod? There is no limit or restriction, but it’s generally a good practice to only have a single container in your pod when you are first getting started. As you’ll see later on, many Kubernetes constructs allow you to scale Pods, so the fewer containers you put in your Pods, the more granular control you have over scaling your infrastructure. 

As you advance your Kubernetes expertise, you can experiment with init and sidecar containers

references:

https://www.suse.com/c/rancher_blog/introduction-to-kubernetes-workloads/


No comments:

Post a Comment