NexQloud Knowledge Base

Discover tailored support solutions designed to help you succeed with NexQloud, no matter your question or challenge.

A headphone sitting on top of a desk next to a monitor.
Knowledge Base
How Kubernetes Works: The Declarative Model

How Kubernetes Works: The Declarative Model

Kubernetes operates on a powerful declarative model. Instead of manually scripting how to achieve a state, you declare the desired state of your application in simple YAML or JSON files.

A simplified workflow:

  1. You Declare: You provide a configuration file (a "manifest") that describes what you want. For example: "I want three replicas of my 'frontend' container, each with 1GB of memory, and make them accessible via a load balancer".
  2. Kubernetes Acts: The Kubernetes control plane (the brain) continuously works to make the real-world state of the cluster match your declared desired state.
  3. Automation in Action:
    • If a container crashes, Kubernetes automatically restarts it.
    • If traffic increases, it can create more replicas to handle the load.
    • If a server fails, it reschedules the containers onto healthy nodes.

This self-healing, self-correcting automation is the core value of Kubernetes.