CentOS Stream 10: Deploy Pods
Learn basic Kubernetes pod operations including create, scale, expose, and delete pods on CentOS Stream 10.
May 24, 2026 • 5 min read
centoscentos-stream-10kubernetesk8scluster
This is the basic operation to create pods and others on Kubernetes Cluster.
Work on Manager Node or Client Hosts with cluster admin file configured.
Create Pods
Create a deployment with nginx image:
kubectl create deployment test-nginx --image=nginx
View running pods:
kubectl get pods
Pod Operations
Show environment variables inside a pod:
kubectl exec test-nginx-b6dfcf6bd-ql4zb -- env
Shell access to a pod:
kubectl exec -it test-nginx-b6dfcf6bd-ql4zb -- bash
View pod logs:
kubectl logs test-nginx-b6dfcf6bd-ql4zb
Scale Pods
Scale the deployment to 3 replicas:
kubectl scale deployment test-nginx --replicas=3
kubectl get pods -o wide
Expose Service
Expose the deployment as a NodePort service:
kubectl expose deployment test-nginx --type="NodePort" --port 80
kubectl get services test-nginx
Port-forward to verify access:
kubectl port-forward service/test-nginx --address 127.0.0.1 8082:80 &
curl localhost:8082
Clean Up
Delete service and deployment:
kubectl delete services test-nginx
kubectl delete deployment test-nginx