This guide provides essential commands and concepts for beginners to effectively use Kubernetes for container orchestration. It covers topics such as checking cluster information, managing pods, deployments, services, ConfigMaps, secrets, and Helm. The document aims to equip users with the foundational knowledge necessary for managing workloads in a Kubernetes environment.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0 ratings0% found this document useful (0 votes)
8 views3 pages
Kubernetes-Beginners- list
This guide provides essential commands and concepts for beginners to effectively use Kubernetes for container orchestration. It covers topics such as checking cluster information, managing pods, deployments, services, ConfigMaps, secrets, and Helm. The document aims to equip users with the foundational knowledge necessary for managing workloads in a Kubernetes environment.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
# Kubernetes Beginner Guide
1. Introduction to Kubernetes
Kubernetes is an open-source container orchestration platform designed to automate the
deployment, scaling, and management of containerized applications. It helps manage workloads
efficiently in a distributed environment.
2. Checking Cluster Information
* View cluster information:
kubect1 cluster-info
+ View nodes in the cluster:
kubect1 get nodes
3. Working with Pods
+ List all pods
kubect1 get pods
+ Get detailed information about a pod:
kubectl describe pod
+ Create a pod using YAML
apiversion: vi
kind: Pod
metadat:
nam
spec:
containers
= name: nginx-container
image: nginx
my-pod
Apply the configuration:
kubectl apply -f pod. yant
+ Delete a pod:
kubectl delete pod
4. Working with Deployments
+ Create a deployment:
kubectl create deployment my-deployment --image=nginx
+ Scale deployment (increase replicas):
kubectl scale deployment my-deployment --replicas=3
+ Update deployment image:kubectl set image deployment/my-deployment nginx=nginx: latest
Delete a deployment:
kubectl delete deployment my-deployment
5. Working with Services
Expose a deployment as a service:
kubectl expose deployment my-deployment --type=NodePort --port=
List all services:
kubect1 get services
Describe a service:
kubect1 describe service
Delete a service:
kubectl delete service
6. ConfigMaps & Secrets
Create a ConfigMap:
kubect1 create configmap my-config --from-Literal=APP_COLOR=blue
View ConfigMaps:
kubect1 get configmap
Create a Secret:
kubect1 create secret generic my-secret --from-
Literal=pB_PASSWORD=mypassword
View Secrets:
kubect1 get secret
7. Logs & Debugging
View logs of a pod:
kubectl logs
Access a pod's terminal:
kubectl exec -it -- /bin/sh
Check events and issues:
kubectl get events
Describe a failed pod:kubect1 describe pod
8. Namespace Management
+ List all namespaces:
kubectl get namespaces
+ Create anew namespace:
kubect1 create namespace my-namespace
+ Usea specific namespace:
kubect1 config set-context --current
namespace=my-namespace
9. Helm (Package Manager for Kubernetes)
* Install Helm chart:
helm install my-app bitnami/nginx
+ List installed Helm releases:
helm List
+ Uninstall Helm release:
helm uninstall my-app
10. Deleting Resources
+ Delete all pods in a namespace:
kubectl delete pods --all -n my-namespace
+ Delete all resources in a namespace:
kubect1 delete all --all -n my-namespace
Conclusion
‘This guide covers the fundamental Kubernetes commands required for beginners to get started with
container orchestration. Understanding these commands will help in managing workloads
effectively in a Kubernetes environment.
‘Now you can use this document to upload to Scribd or any other platform. Let me know if you need