Skip to main content

Posts

Showing posts from April, 2025

Commonly Used Kubernetes Commands

These are the basic commands you’ll use often when working with Kubernetes. Think of them as tools to check , create , change , and fix things inside your Kubernetes system. 1. Viewing What's Running These commands help you see what’s going on inside your Kubernetes cluster. kubectl get pods # shows all running pods kubectl get deployments # shows all deployments kubectl get services # shows all services kubectl get all # shows most resources in the current namespace 2. Getting Detailed Information kubectl describe pod my-pod # details about one pod kubectl describe node my-node # details about one node 3. Creating Things kubectl create -f my-deployment.yaml # create from file 4. Updating Things kubectl apply -f my-deployment.yaml # update using the file 5. Deleting Things kubectl delete pod my-pod # delete a specific pod kubectl delete service my-service # delete a specific service Debugging and Fixing Problems ...

Kubernetes Networking Overview

  Pod Networking Kubernetes Pods share the same network namespace, allowing them to communicate with each other via localhost . Each Pod is assigned a unique IP address to enable communication across different nodes. Service Networking Services provide stable access points to Pods. Some common types include: ClusterIP : Internal access within the cluster. NodePort : Exposes services on a port on each node for external access. LoadBalancer : Exposes services externally with a load balancer. Ingress Networking Ingress controls external access to services based on HTTP/HTTPS rules. Ingress controllers manage routing traffic to the correct services within the cluster. Network Policies Network policies define rules for communication between Pods and external resources. This allows for fine-grained control over network traffic within the cluster....