Lädt...


🔧 Explaining Pods in Kubernetes


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

The aim of this page📝 is to explain the concept of a pod in k8s from the five angles I find useful. A bit of context relating pods to containers and VMs, and the 3 essences of a pod: shared execution environment, scaling unit, and its ephemeral nature.

First/historically, the units of infrastructure scheduling are very in VM, Docker, and Kubernetes (k8s). 

  • A VM environment is a virtual machine
  • In the Docker environment, it is the container
  • In Kubernetes, it is a pod

Yes — k8s run on orchestrated containers. But containers must always run within Pods

What differentiates pods from containers

My acronym is ALP.CC
1. annotation
2. labels (great for service objects <> pods and IP management)
3. policies
4. contraints (resouce)
5. co-scheduling

Essence #1: Shared execution environment

Pod is execution environment == collection of things an app needs to run**

Pod is 

  • a thin wrapper k8s insists all container use
  • shared execution environment
  • IP address
  • Port
  • FS
  • Memory

Every pod is an execution environment

Containers running in it share that environment — IP is shared between containers. 

Inside the pods, if they need to talk to each other - the pod hosting interface

If you have a usecase where >1 container need to share resources, they are in single pods. This is for specialist usecases. 

If not, make a loose coupling with container-per-pod and then connect them over the network

Essence #2: Scaling Unit/Reproduction

The Unit of scaling is the pod - you are adding/removing pods. You do not scale adding containers to existing pods. Scale up - add pods, scale down - remove pods. 

Multi-container pods — service mesh, injecting additional containers into the pod to get enhanced services. Complimentary container augmenting app container. 

Pod deployment is atomic operation — all or nothing job. Pod only ever shows up and running if all containers are up and running. 

All containers are always scheduled to the same node. 

There is a higher-level controller called Replica Set, wrapped into yet another higher-level controller called Deployment.

Once you introduce horizontal scaling, it's more appropriate to talk about the reproductions of pods as replicas. The terms are closely related but not identical.

Essence#3: Mortality. Pods are mortal, pods are cattle. 

Born, live, die. that's it. No magical coming back to life. Self-healing is misleading. A dead pod is not fixed. It's recreated. 

Pods are deployed via deployer - if pods don't bring anything valuable. Why not just containers?

However, that does not mean that they cannot be restarted. Quite the opposite, I often handle a "pod restart loop" situation during my support time.

...

🔧 Explaining Pods in Kubernetes


📈 42.91 Punkte
🔧 Programmierung

🐧 Managing Podman pods with pods-compose


📈 36.51 Punkte
🐧 Linux Tipps

🐧 Was sind Kubernetes Pods?


📈 25.68 Punkte
🐧 Server

🔧 What are Kubernetes Pods? A Deep Dive


📈 25.68 Punkte
🔧 Programmierung

🔧 How to Debug Failing Build Agent Pods in Kubernetes-enabled Jenkins


📈 25.68 Punkte
🔧 Programmierung

🐧 Difference Between Pods and Containers in Kubernetes


📈 25.68 Punkte
🐧 Linux Tipps

🔧 Unlocking the Power of Kubernetes Scheduling: A Deep Dive Into Pods and Nodes


📈 25.68 Punkte
🔧 Programmierung

🔧 Chapter 4 - Kubernetes Pods


📈 25.68 Punkte
🔧 Programmierung

🔧 Debugging ☕ Kubernetes Pods Like A Champ 🦸🏻‍♂️


📈 25.68 Punkte
🔧 Programmierung

🔧 Kubernetes API Primitives: Pods, Nodes, and Beyond


📈 25.68 Punkte
🔧 Programmierung

🔧 A Guide for Delete Pods from Kubernetes Nodes - kubectl delete


📈 25.68 Punkte
🔧 Programmierung

🔧 Kubernetes Networking with Services | Pods | Containers


📈 25.68 Punkte
🔧 Programmierung

📰 Kentik Kube collects metadata across Kubernetes pods, clusters, and services


📈 25.68 Punkte
📰 IT Security Nachrichten

🔧 Static Pods, Manual Scheduling, Labels, and Selectors — Kubernetes


📈 25.68 Punkte
🔧 Programmierung

📰 Event-Streaming: Confluent 7.3 vereinfacht die Arbeit mit Kubernetes-Pods


📈 25.68 Punkte
📰 IT Nachrichten

🐧 List All Pods and Nodes in Kubernetes


📈 25.68 Punkte
🐧 Linux Tipps

🔧 Kubernetes Multi-Container Pods: Sidecar, Adapter and Ambassador Patterns


📈 25.68 Punkte
🔧 Programmierung

🕵️ Secrets Store CSI Driver Vault Plugin on Kubernetes /var/lib/kubelet/pods path traversal


📈 25.68 Punkte
🕵️ Sicherheitslücken

🐧 List All Pods and Nodes in Kubernetes


📈 25.68 Punkte
🐧 Linux Tipps

🔧 Scheduling Pods with Node Affinity in Kubernetes


📈 25.68 Punkte
🔧 Programmierung

🔧 "Mastering Kubernetes Pods: Imperative Commands, YAML Configurations, and Troubleshooting Guide"


📈 25.68 Punkte
🔧 Programmierung

🎥 How Pods and the Pod Lifecycle work in Kubernetes


📈 25.68 Punkte
🎥 Video | Youtube

🔧 Mastering Kubernetes DaemonSets: Deploy Pods Across Your Cluster


📈 25.68 Punkte
🔧 Programmierung

🔧 CKA Full Course 2024: Day 13/40 Static Pods, Manual Scheduling, Labels, and Selectors in Kubernetes


📈 25.68 Punkte
🔧 Programmierung

🔧 Secure traffic between pods using network policies in Azure Kubernetes Service (AKS) | Azure Friday


📈 25.68 Punkte
🔧 Programmierung

🔧 How I used js to dynamically create and delete pods in kubernetes


📈 25.68 Punkte
🔧 Programmierung

🔧 Kubernetes Pods


📈 25.68 Punkte
🔧 Programmierung

🔧 Kubernetes: Understanding Multi-Container Pods


📈 25.68 Punkte
🔧 Programmierung

🐧 Monitoring Resource Usage for Kubernetes Pods


📈 25.68 Punkte
🐧 Linux Tipps

🔧 Understanding Kubernetes Pods and YAML Fundamentals


📈 25.68 Punkte
🔧 Programmierung

🔧 Essential Kubernetes Concepts Explained: Pods, Namespaces, ConfigMaps, Ingress, and Deployments


📈 25.68 Punkte
🔧 Programmierung

🔧 Disable Effects of a Controller On its Pods in Kubernetes


📈 25.68 Punkte
🔧 Programmierung

🔧 Kubernetes PODs with global IPv6


📈 25.68 Punkte
🔧 Programmierung

🔧 Securing Kubernetes Pods For Production Workloads


📈 25.68 Punkte
🔧 Programmierung

🔧 Understanding Kubernetes Architecture: Pods, Nodes and More


📈 25.68 Punkte
🔧 Programmierung

matomo