Basic Commands
Notes on Kubernetes (K8s) Orchestration Platform
Overview
Kubernetes (K8s): An orchestration platform designed to integrate and extend the capabilities of other products like Docker.
Goal: To provide a scalable, efficient, and flexible solution for managing containerized applications and services.
Key Features and Capabilities
Horizontal Scaling:
Adds more devices/machines to handle increased workload instead of adding more resources (CPU/RAM) to existing machines.
Extensibility:
Allows dynamic modification of clusters without affecting other containers outside the intended group.
Self-Healing:
Automatically restarts, replaces, reschedules, and kills containers based on user-defined health checks to maintain functionality.
Automated Rollouts and Rollbacks:
Gradually rolls out changes to containers, monitors application health during the process, and decides whether to continue the rollout or rollback changes to ensure constant uptime.
Basic Commands for Cluster Management
Starting Clusters:
Ensure all clusters are started using:
Checking Running Pods:
Command to list all running pods:
Getting Deployment Name:
Command to list the deployment name:
Exposed Port of Service:
Command to find the port exposed by a service:
Checking Replica Sets:
Command to list all replica sets deployed in the cluster:
Deleting a Deployment:
Command to delete a specific deployment:
References
Last updated