Kubernetes

Kubernetes container orchestration platform basics and concepts

Overview

Kubernetes is an open-source container orchestration platform for automating deployment, scaling, and management of containerized applications.

Basic Concepts

ConceptDescription
PodSmallest deployable unit that can contain one or more containers
NodeWorker machine in the Kubernetes cluster
ClusterSet of nodes that run containerized applications
DeploymentManages the desired state for Pods and ReplicaSets
ServiceDefines a logical set of Pods and a policy to access them
NamespaceVirtual cluster within a physical cluster

Common Commands

CommandDescription
kubectl get podsList all pods in the current namespace
kubectl apply -f file.yamlCreate or update resources from a file
kubectl describe pod <pod-name>Show detailed information about a pod
kubectl logs <pod-name>Print the logs from a container in a pod
kubectl exec -it <pod-name> -- /bin/bashExecute a command in a container

Port Forward Kubernetes

Cấu hình port forward tạo kết nối đến ứng dụng triển khai trên Kubernetes cluster


Last modified March 27, 2025: Edit members.yaml (21070ed)