Kubernetes is a declarative system for placing and managing containerized workloads across nodes. The API records desired objects, while scheduling and controller loops work toward the requested state. Kubernetes does not build application source code, supply a database automatically or guarantee application availability without sound workload and infrastructure design. To understand a cluster, distinguish the control plane’s decisions from the node components and the actual application running inside each Pod.
What Kubernetes orchestrates, and what it does not
Deployments represent the most commonly used workload resource in Kubernetes and embody the platform’s core reconciliation philosophy. When you create a Deployment, you specify how many replicas of a pod should be running and what container image those pods should use. The Deployment controller, a component of the Kubernetes control plane, continuously compares the actual state of your pods against this desired state and takes corrective action whenever they diverge. If a node fails and takes three pods with it, the Deployment controller notices the discrepancy and schedules replacement pods on healthy nodes within seconds.
Kubernetes is an orchestration project governed within the CNCF ecosystem, but knowing the project’s institutional home does not replace understanding its control loops. A scheduler assigns eligible Pods to nodes; controllers reconcile observed state toward declared desired state; and kubelet manages the containers assigned to its node. Those components solve different problems, which is why a Pending Pod, a restarting container, and an unavailable Service require different diagnostic starting points. Practical orchestration work begins by identifying which component owns the failing transition instead of restarting everything indiscriminately.
The Kubernetes scheduler is the control plane component responsible for deciding which node should run each new pod, and its decision-making process is more sophisticated than simple round-robin assignment. The scheduler first filters the available nodes to identify those that satisfy the pod’s hard requirements, including sufficient CPU and memory capacity, required node labels, and any affinity or anti-affinity rules the pod specifies. From the filtered set of feasible nodes, the scheduler scores each candidate using multiple criteria including resource utilization balance, pod affinity preferences, and topology spread constraints, then assigns the pod to the highest-scoring node.
Pods, controllers and updates
A Pod is the scheduling unit containing one or more closely coupled containers; it is ephemeral and typically receives an IP address from the cluster network. A Deployment manages a ReplicaSet and replaces eligible Pods to satisfy a requested replica count or rollout policy. A StatefulSet solves different identity and storage coordination needs. If a Pod is Pending, check scheduling constraints and resources; if it is CrashLoopBackOff, check process startup and logs; if it is Ready but unreachable, inspect Service endpoints and the datapath.
The Kubernetes networking model expects Pods to be reachable from other Pods without manual host-port mapping, but the implementation is supplied by the cluster networking setup and may include overlays, NAT or policy enforcement. A Pod IP is not a stable application address across replacement, and NetworkPolicy or cloud routing may deliberately block a flow. Use Services and DNS to find workloads through their intended labels and verify the effective path rather than promising all Pods can always communicate directly.
A replaced Pod normally receives a new network identity, so applications should avoid depending on a particular Pod IP. Services and DNS can provide a stable discovery abstraction for Pods selected by labels, but only when endpoints are Ready and cluster networking is working. A Service does not grant access through NetworkPolicy, fix an unhealthy backend or guarantee a working route from an external client.
Rolling updates are one of the most operationally valuable features provided by Deployments. When you update a Deployment to use a new container image, Kubernetes replaces old pods with new ones gradually rather than terminating everything at once. You can configure the maximum number of pods that may be unavailable during an update and the maximum number of extra pods that may temporarily exist above the desired replica count. This configuration allows you to tune the tradeoff between update speed and application availability based on your specific requirements. If a rolling update introduces problems, rolling back to the previous version is a single command that triggers the same gradual replacement process in reverse.
Services, ingress and network policy solve separate problems
A Service provides a stable way to discover and reach changing Pod endpoints, often through virtual addressing or a compatible dataplane implementation. Not every cluster uses an iptables kube-proxy dataplane: some CNI implementations use alternative mechanisms. Ingress and Gateway API resources describe application-facing traffic routing only when a controller supports them. NetworkPolicy objects have no enforcement effect without a compatible network plugin, and policy should be tested with both allowed and denied flows.
Services and Gateway or Ingress resources solve different exposure and routing problems. Ingress is a stable Kubernetes API for HTTP(S) rules, but it requires a compatible controller and the API is no longer being expanded. Kubernetes recommends Gateway API for new capabilities. Cost and performance depend on the chosen controller, load balancer, cloud service and traffic path; an Ingress object is not automatically cheaper or more flexible in every deployment.
Kubernetes namespaces group namespaced API resources and enable quotas or policy scoping, but they are not security-isolated virtual clusters by themselves. Strong tenant separation requires correctly configured RBAC, network policy, admission and underlying node isolation where appropriate. Every Kubernetes resource exists within a namespace, and namespace-scoped resources are only directly accessible to workloads and users that have been granted access to that specific namespace. This isolation makes namespaces useful for separating the workloads of different teams, applications, or environments within a shared cluster, reducing the operational overhead of maintaining separate clusters while still providing meaningful boundaries between workloads.
An Ingress definition must be implemented by a separately deployed or managed controller; simply creating the API object does not expose traffic. The community-maintained Ingress NGINX project was retired in March 2026 and should not be recommended as a new default. Other supported controllers and Gateway API implementations have different configuration, authentication, TLS and migration requirements; choose one with current security maintenance and test the actual path.
Configuration, secrets and persistent state
A ConfigMap stores nonsensitive application configuration; a Secret is an API object for sensitive values but is not automatically end-to-end encrypted or sufficient security by itself. Apply RBAC least privilege and configure encryption at rest and secret lifecycle according to the environment. PersistentVolumeClaims express storage needs but do not promise a compatible class or available capacity. Stateful workloads require independent attention to backup, restore consistency, database health and failover behavior.
Secrets function similarly to ConfigMaps but are designed for sensitive data like passwords, API keys, and TLS certificates. Kubernetes stores Secrets separately from ConfigMaps and provides access controls that limit which pods and service accounts can read specific Secrets. In practice, the security of Secrets depends heavily on how your cluster is configured; by default, Kubernetes stores Secret values base64-encoded in etcd without encryption, which means cluster access control and etcd encryption at rest are important complementary security measures. Organizations handling genuinely sensitive credentials often integrate Kubernetes with external secret management systems like HashiCorp Vault or cloud provider secret services for stronger security guarantees.
Separating application configuration from container images is a fundamental practice in cloud-native development, and Kubernetes provides two resources specifically designed for this purpose. ConfigMaps store non-sensitive configuration data as key-value pairs or as complete configuration files that pods can consume either as environment variables or as files mounted into the container filesystem. This separation means that the same container image can run with different configurations in development, staging, and production environments without rebuilding the image, which simplifies the deployment pipeline and ensures that what you test in staging is identical to what runs in production except for environment-specific configuration values.
Applying the principle of least privilege to Kubernetes RBAC means giving each user and service account only the permissions they genuinely need rather than defaulting to cluster-admin for convenience. Application pods that need to read ConfigMaps in their own namespace should have a service account bound to a Role that permits only that specific operation, not a broad role that grants read access to all resource types. Regular audits of RBAC configurations identify permission accumulation over time, where accounts that once needed broad access retain those permissions long after the circumstances that justified them have changed. Tight RBAC configuration is one of the most impactful security practices available to Kubernetes operators.
Scheduling, autoscaling and observability
The scheduler evaluates resource requests, affinities, taints and other constraints before binding a Pod to a node. Horizontal Pod Autoscaling needs metrics and suitable workload behavior; scaling replicas does not fix an exhausted database connection pool or a failing dependency. Collect application, container, node and control-plane telemetry, then correlate events with rollout history. Readiness, liveness and startup probes should reflect actual service behavior and avoid restart loops caused by overly aggressive configuration.
Custom metrics extend horizontal autoscaling beyond basic CPU and memory to application-specific signals like request queue depth, active connections, or business metrics exposed through monitoring systems. Scaling a video processing service based on the number of jobs in a processing queue rather than CPU utilization, for instance, often produces more appropriate scaling behavior because queue depth directly reflects the work that needs to be done rather than the current resource consumption of existing workers. Configuring autoscaling thoughtfully requires understanding the lag between when a metric changes and when new pods become ready to serve traffic, which influences how aggressively you configure scale-up and scale-down thresholds.
Prometheus and Grafana are common observability components, but neither is installed automatically by Kubernetes nor required for every cluster. Metrics Server is often used for basic resource metrics; applications may also expose custom metrics and tracing. The important design question is which signals reveal readiness failures, high latency, resource pressure and controller errors, and who receives actionable alerts. Avoid assuming a particular monitoring stack or its market share without deployment-specific evidence.
A safe first deployment and recovery exercise
Choose a small stateless application with a readiness check, resource requests and a controlled rollout strategy. Apply a Deployment and Service, confirm their selectors and endpoints, then change the image tag and watch rollout status. Introduce a deliberate bad image in an isolated test cluster and demonstrate rollback, recording exact commands and observed results rather than claiming a test that was not run. This article focuses on application orchestration; cluster installation and beginner learning plans belong to their own distinct tasks.
Helm charts can package reusable application deployment templates, and values files let a team deliberately vary settings between environments. That reuse can also spread a faulty default or an overly privileged setting to many releases. In a small learning lab, render the manifest, inspect its effective configuration, apply it in a disposable namespace and practice a rollback. Helm helps manage releases; it does not independently validate security, cluster availability or application correctness.