kubernetes_commands / kubernetes_commands.csv
chowmean's picture
Upload folder using huggingface_hub
f036581 verified
eng,command,description
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
tell me all pods from namespace system,kubectl get pods -n system,Listing all pods in the namespace system
what are the pods running in namespace testing,kubectl get pods -n testing,Listing all pods in the namespace testing
what are the pods running in namespace production,kubectl get pods -n production,Listing all pods in the namespace production
what are the pods running in namespace development,kubectl get pods -n development,Listing all pods in the namespace development
what are the pods running in namespace stage,kubectl get pods -n stage,Listing all pods in the namespace stage
what are the pods running in namespace stage,kubectl get pods -n stage,Listing all pods in the namespace stage
what are the pods running in namespace testing-dev,kubectl get pods -n testing-dev,Listing all pods in the namespace testing-dev
what are the pods running in namespace stage,kubectl get pods -n stage,Listing all pods in the namespace stage
what are the pods running in namespace production,kubectl get pods -n production,Listing all pods in the namespace production
get all services in all namespaces,kubectl get svc --all-namespaces,Listing all services in all namespaces
what is the command to create a deployment named 'test-deployment' with image 'test-image' in namespace 'dev-ns',kubectl create deployment test-deployment --image=test-image -n dev-ns,Creating a deployment named 'test-deployment' with image 'test-image' in namespace 'dev-ns'
what are the pods running in namespace stage,kubectl get pods -n stage,Listing all pods in the namespace stage
what is the command to create a new namespace named 'dev-ns',kubectl create namespace dev-ns,Creating a new namespace named 'dev-ns'
what are the pods running in namespace testing-dev,kubectl get pods -n testing-dev,Listing all pods in the namespace testing-dev
what are the services running in namespace staging,kubectl get svc -n staging,Listing all services in the namespace staging
"get logs of pod pod1 in namespace prod
kubectl logs pod1 -n prod
Getting logs of pod pod1 in namespace prod",kubectl logs pod1 -n prod,Getting logs of pod pod1 in namespace prod
list all services in namespace dev,kubectl get svc -n dev,Listing all services in namespace dev
rollback deployment backend to revision 1 in namespace prod,kubectl rollout undo deployment backend --to-revision=1 -n prod,Rolling back deployment backend to revision 1 in namespace prod
what is the command to create a service named 'my-service' for deployment 'my-deployment' with port 80,kubectl expose deployment my-deployment --name=my-service --port=80,Exposing deployment 'my-deployment' as a service named 'my-service' on port 80.
list all secrets in namespace default,kubectl get secrets -n default,Listing all secrets in namespace default
list all deployments in namespace default,kubectl get deployments -n default,Listing all deployments in namespace default
what are the services running in namespace test-ns,kubectl get services -n test-ns,kubectl get services -n test-ns
get logs of pod my-app in namespace production,kubectl logs my-app -n production,Getting logs of pod my-app in namespace production
what are the services running in namespace production,kubectl get svc -n production,Listing all services in the namespace production
what is the command to create a new namespace named 'dev-namespace',kubectl create namespace dev-namespace,Creating a new namespace named 'dev-namespace'
what are the pods running in namespace stage,kubectl get pods -n stage,Listing all pods in the namespace stage
list all services in namespace dev,kubectl get svc -n dev,Listing all services in namespace dev
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment nginx-deploy to 3 replicas in namespace dev,kubectl scale deployment nginx-deploy --replicas=3 -n dev,Scaling deployment nginx-deploy to 3 replicas in namespace dev
get logs of pod my-database in namespace staging,kubectl logs my-database -n staging,Listing all my-database in the namespace staging
What are the secrets running in namespace production,kubectl get secrets -n production,Listing all secrets in the namespace production
list all deployments in namespace staging,kubectl get deployments -n staging,Listing all deployments in the namespace staging
get logs of pod my-api in namespace production,kubectl logs my-api -n production,Listing all my-api in the namespace production
what are the deployments running in namespace staging-backend,kubectl get deployments -n staging-backend,Listing all deployments in the namespace staging-backend
list all secrets in namespace dev,kubectl get secrets -n dev,Listing all secrets in the namespace dev
get logs of deployment api-deploy in namespace staging,kubectl logs deployment/api-deploy -n staging,Listing all deployment/api-deploy in the namespace staging
what is the command to delete a service named 'data-service' in namespace 'temp-ns',kubectl delete service data-service -n temp-ns,Listing all service data-service in the namespace temp-ns
get logs of pod my-frontend in namespace staging,kubectl logs my-frontend -n staging,Listing all my-frontend in the namespace staging
what is the command to delete a service named 'my-service' in namespace 'test-ns',kubectl delete service my-service -n test-ns,Listing all service my-service in the namespace test-ns
What is the command to view the logs for pod 'database-pod' in namespace 'production-db'?,kubectl logs database-pod -n production-db,Listing all database-pod in the namespace production-db
get logs of pod my-frontend in namespace staging,kubectl logs my-frontend -n staging,Listing all my-frontend in the namespace staging
What are the services running in namespace production?,kubectl get svc -n production,Listing all svc in the namespace production
get all deployments in namespace staging,kubectl get deployments -n staging,Listing all deployments in the namespace staging
what is the command to view all services in namespace staging-qa,kubectl get services -n staging-qa,Listing all services in the namespace staging-qa
get logs of pod my-database in namespace staging,kubectl logs my-database -n staging,Listing all my-database in the namespace staging
What is the command to delete a secret named 'db-secret' in namespace 'testing-ns',kubectl delete secret db-secret -n testing-ns,Listing all secret db-secret in the namespace testing-ns
get logs of pod my-frontend in namespace staging-qa,kubectl logs my-frontend -n staging-qa,Listing all my-frontend in the namespace staging-qa
What is the command to view the logs of pod 'web-server' in namespace 'backend-test',kubectl logs web-server -n backend-test,Listing all web-server in the namespace backend-test
what is the command to get the status of service 'database-service' in namespace 'backend-staging',kubectl describe service database-service -n backend-staging,Listing all service database-service in the namespace backend-staging
get logs of pod my-database in namespace staging,kubectl logs my-database -n staging,Getting logs of pod my-database in namespace staging
What are the services running in namespace development?,kubectl get svc -n development,Listing all services in the namespace development
list all deployments in namespace staging,kubectl get deployments -n staging,Listing all deployments in the namespace staging
what is the command to get the logs of pod 'data-processor' in namespace 'analytics',kubectl logs data-processor -n analytics,Getting logs of pod 'data-processor' in namespace 'analytics'
What is the command to delete service 'web-service' in namespace 'temp-ns',kubectl delete service web-service -n temp-ns,Deleting service 'web-service' from namespace 'temp-ns'
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node3,kubectl describe node node3,Describing node node3
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment api-deploy in namespace kube-system,kubectl rollout status deployment api-deploy -n kube-system,Checking rollout status of deployment api-deploy in namespace kube-system
rollback deployment frontend to revision 3 in namespace dev,kubectl rollout undo deployment frontend --to-revision=3 -n dev,Rolling back deployment frontend to revision 3 in namespace dev
expose deployment nginx-deploy as service in namespace prod,kubectl expose deployment nginx-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment nginx-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment api-deploy to 3 replicas in namespace dev,kubectl scale deployment api-deploy --replicas=3 -n dev,Scaling deployment api-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node1,kubectl describe node node1,Describing node node1
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment frontend in namespace kube-system,kubectl rollout status deployment frontend -n kube-system,Checking rollout status of deployment frontend in namespace kube-system
rollback deployment nginx-deploy to revision 1 in namespace dev,kubectl rollout undo deployment nginx-deploy --to-revision=1 -n dev,Rolling back deployment nginx-deploy to revision 1 in namespace dev
expose deployment api-deploy as service in namespace prod,kubectl expose deployment api-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment api-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment frontend to 3 replicas in namespace dev,kubectl scale deployment frontend --replicas=3 -n dev,Scaling deployment frontend to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node2,kubectl describe node node2,Describing node node2
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment nginx-deploy in namespace kube-system,kubectl rollout status deployment nginx-deploy -n kube-system,Checking rollout status of deployment nginx-deploy in namespace kube-system
rollback deployment api-deploy to revision 2 in namespace dev,kubectl rollout undo deployment api-deploy --to-revision=2 -n dev,Rolling back deployment api-deploy to revision 2 in namespace dev
expose deployment frontend as service in namespace prod,kubectl expose deployment frontend --type=ClusterIP --port=80 -n prod,Exposing deployment frontend as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment nginx-deploy to 3 replicas in namespace dev,kubectl scale deployment nginx-deploy --replicas=3 -n dev,Scaling deployment nginx-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node3,kubectl describe node node3,Describing node node3
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment api-deploy in namespace kube-system,kubectl rollout status deployment api-deploy -n kube-system,Checking rollout status of deployment api-deploy in namespace kube-system
rollback deployment frontend to revision 3 in namespace dev,kubectl rollout undo deployment frontend --to-revision=3 -n dev,Rolling back deployment frontend to revision 3 in namespace dev
expose deployment nginx-deploy as service in namespace prod,kubectl expose deployment nginx-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment nginx-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment api-deploy to 3 replicas in namespace dev,kubectl scale deployment api-deploy --replicas=3 -n dev,Scaling deployment api-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node1,kubectl describe node node1,Describing node node1
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment frontend in namespace kube-system,kubectl rollout status deployment frontend -n kube-system,Checking rollout status of deployment frontend in namespace kube-system
rollback deployment nginx-deploy to revision 1 in namespace dev,kubectl rollout undo deployment nginx-deploy --to-revision=1 -n dev,Rolling back deployment nginx-deploy to revision 1 in namespace dev
expose deployment api-deploy as service in namespace prod,kubectl expose deployment api-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment api-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment frontend to 3 replicas in namespace dev,kubectl scale deployment frontend --replicas=3 -n dev,Scaling deployment frontend to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node2,kubectl describe node node2,Describing node node2
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment nginx-deploy in namespace kube-system,kubectl rollout status deployment nginx-deploy -n kube-system,Checking rollout status of deployment nginx-deploy in namespace kube-system
rollback deployment api-deploy to revision 2 in namespace dev,kubectl rollout undo deployment api-deploy --to-revision=2 -n dev,Rolling back deployment api-deploy to revision 2 in namespace dev
expose deployment frontend as service in namespace prod,kubectl expose deployment frontend --type=ClusterIP --port=80 -n prod,Exposing deployment frontend as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment nginx-deploy to 3 replicas in namespace dev,kubectl scale deployment nginx-deploy --replicas=3 -n dev,Scaling deployment nginx-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node3,kubectl describe node node3,Describing node node3
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment api-deploy in namespace kube-system,kubectl rollout status deployment api-deploy -n kube-system,Checking rollout status of deployment api-deploy in namespace kube-system
rollback deployment frontend to revision 3 in namespace dev,kubectl rollout undo deployment frontend --to-revision=3 -n dev,Rolling back deployment frontend to revision 3 in namespace dev
expose deployment nginx-deploy as service in namespace prod,kubectl expose deployment nginx-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment nginx-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment api-deploy to 3 replicas in namespace dev,kubectl scale deployment api-deploy --replicas=3 -n dev,Scaling deployment api-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node1,kubectl describe node node1,Describing node node1
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment frontend in namespace kube-system,kubectl rollout status deployment frontend -n kube-system,Checking rollout status of deployment frontend in namespace kube-system
rollback deployment nginx-deploy to revision 1 in namespace dev,kubectl rollout undo deployment nginx-deploy --to-revision=1 -n dev,Rolling back deployment nginx-deploy to revision 1 in namespace dev
expose deployment api-deploy as service in namespace prod,kubectl expose deployment api-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment api-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment frontend to 3 replicas in namespace dev,kubectl scale deployment frontend --replicas=3 -n dev,Scaling deployment frontend to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node2,kubectl describe node node2,Describing node node2
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment nginx-deploy in namespace kube-system,kubectl rollout status deployment nginx-deploy -n kube-system,Checking rollout status of deployment nginx-deploy in namespace kube-system
rollback deployment api-deploy to revision 2 in namespace dev,kubectl rollout undo deployment api-deploy --to-revision=2 -n dev,Rolling back deployment api-deploy to revision 2 in namespace dev
expose deployment frontend as service in namespace prod,kubectl expose deployment frontend --type=ClusterIP --port=80 -n prod,Exposing deployment frontend as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment nginx-deploy to 3 replicas in namespace dev,kubectl scale deployment nginx-deploy --replicas=3 -n dev,Scaling deployment nginx-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node3,kubectl describe node node3,Describing node node3
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment api-deploy in namespace kube-system,kubectl rollout status deployment api-deploy -n kube-system,Checking rollout status of deployment api-deploy in namespace kube-system
rollback deployment frontend to revision 3 in namespace dev,kubectl rollout undo deployment frontend --to-revision=3 -n dev,Rolling back deployment frontend to revision 3 in namespace dev
expose deployment nginx-deploy as service in namespace prod,kubectl expose deployment nginx-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment nginx-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment api-deploy to 3 replicas in namespace dev,kubectl scale deployment api-deploy --replicas=3 -n dev,Scaling deployment api-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node1,kubectl describe node node1,Describing node node1
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment frontend in namespace kube-system,kubectl rollout status deployment frontend -n kube-system,Checking rollout status of deployment frontend in namespace kube-system
rollback deployment nginx-deploy to revision 1 in namespace dev,kubectl rollout undo deployment nginx-deploy --to-revision=1 -n dev,Rolling back deployment nginx-deploy to revision 1 in namespace dev
expose deployment api-deploy as service in namespace prod,kubectl expose deployment api-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment api-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment frontend to 3 replicas in namespace dev,kubectl scale deployment frontend --replicas=3 -n dev,Scaling deployment frontend to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node2,kubectl describe node node2,Describing node node2
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment nginx-deploy in namespace kube-system,kubectl rollout status deployment nginx-deploy -n kube-system,Checking rollout status of deployment nginx-deploy in namespace kube-system
rollback deployment api-deploy to revision 2 in namespace dev,kubectl rollout undo deployment api-deploy --to-revision=2 -n dev,Rolling back deployment api-deploy to revision 2 in namespace dev
expose deployment frontend as service in namespace prod,kubectl expose deployment frontend --type=ClusterIP --port=80 -n prod,Exposing deployment frontend as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment nginx-deploy to 3 replicas in namespace dev,kubectl scale deployment nginx-deploy --replicas=3 -n dev,Scaling deployment nginx-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node3,kubectl describe node node3,Describing node node3
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment api-deploy in namespace kube-system,kubectl rollout status deployment api-deploy -n kube-system,Checking rollout status of deployment api-deploy in namespace kube-system
rollback deployment frontend to revision 3 in namespace dev,kubectl rollout undo deployment frontend --to-revision=3 -n dev,Rolling back deployment frontend to revision 3 in namespace dev
expose deployment nginx-deploy as service in namespace prod,kubectl expose deployment nginx-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment nginx-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment api-deploy to 3 replicas in namespace dev,kubectl scale deployment api-deploy --replicas=3 -n dev,Scaling deployment api-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node1,kubectl describe node node1,Describing node node1
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment frontend in namespace kube-system,kubectl rollout status deployment frontend -n kube-system,Checking rollout status of deployment frontend in namespace kube-system
rollback deployment nginx-deploy to revision 1 in namespace dev,kubectl rollout undo deployment nginx-deploy --to-revision=1 -n dev,Rolling back deployment nginx-deploy to revision 1 in namespace dev
expose deployment api-deploy as service in namespace prod,kubectl expose deployment api-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment api-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment frontend to 3 replicas in namespace dev,kubectl scale deployment frontend --replicas=3 -n dev,Scaling deployment frontend to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node2,kubectl describe node node2,Describing node node2
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment nginx-deploy in namespace kube-system,kubectl rollout status deployment nginx-deploy -n kube-system,Checking rollout status of deployment nginx-deploy in namespace kube-system
rollback deployment api-deploy to revision 2 in namespace dev,kubectl rollout undo deployment api-deploy --to-revision=2 -n dev,Rolling back deployment api-deploy to revision 2 in namespace dev
expose deployment frontend as service in namespace prod,kubectl expose deployment frontend --type=ClusterIP --port=80 -n prod,Exposing deployment frontend as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment nginx-deploy to 3 replicas in namespace dev,kubectl scale deployment nginx-deploy --replicas=3 -n dev,Scaling deployment nginx-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node3,kubectl describe node node3,Describing node node3
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment api-deploy in namespace kube-system,kubectl rollout status deployment api-deploy -n kube-system,Checking rollout status of deployment api-deploy in namespace kube-system
rollback deployment frontend to revision 3 in namespace dev,kubectl rollout undo deployment frontend --to-revision=3 -n dev,Rolling back deployment frontend to revision 3 in namespace dev
expose deployment nginx-deploy as service in namespace prod,kubectl expose deployment nginx-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment nginx-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment api-deploy to 3 replicas in namespace dev,kubectl scale deployment api-deploy --replicas=3 -n dev,Scaling deployment api-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node1,kubectl describe node node1,Describing node node1
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment frontend in namespace kube-system,kubectl rollout status deployment frontend -n kube-system,Checking rollout status of deployment frontend in namespace kube-system
rollback deployment nginx-deploy to revision 1 in namespace dev,kubectl rollout undo deployment nginx-deploy --to-revision=1 -n dev,Rolling back deployment nginx-deploy to revision 1 in namespace dev
expose deployment api-deploy as service in namespace prod,kubectl expose deployment api-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment api-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment frontend to 3 replicas in namespace dev,kubectl scale deployment frontend --replicas=3 -n dev,Scaling deployment frontend to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node2,kubectl describe node node2,Describing node node2
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment nginx-deploy in namespace kube-system,kubectl rollout status deployment nginx-deploy -n kube-system,Checking rollout status of deployment nginx-deploy in namespace kube-system
rollback deployment api-deploy to revision 2 in namespace dev,kubectl rollout undo deployment api-deploy --to-revision=2 -n dev,Rolling back deployment api-deploy to revision 2 in namespace dev
expose deployment frontend as service in namespace prod,kubectl expose deployment frontend --type=ClusterIP --port=80 -n prod,Exposing deployment frontend as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment nginx-deploy to 3 replicas in namespace dev,kubectl scale deployment nginx-deploy --replicas=3 -n dev,Scaling deployment nginx-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node3,kubectl describe node node3,Describing node node3
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment api-deploy in namespace kube-system,kubectl rollout status deployment api-deploy -n kube-system,Checking rollout status of deployment api-deploy in namespace kube-system
rollback deployment frontend to revision 3 in namespace dev,kubectl rollout undo deployment frontend --to-revision=3 -n dev,Rolling back deployment frontend to revision 3 in namespace dev
expose deployment nginx-deploy as service in namespace prod,kubectl expose deployment nginx-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment nginx-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment api-deploy to 3 replicas in namespace dev,kubectl scale deployment api-deploy --replicas=3 -n dev,Scaling deployment api-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node1,kubectl describe node node1,Describing node node1
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment frontend in namespace kube-system,kubectl rollout status deployment frontend -n kube-system,Checking rollout status of deployment frontend in namespace kube-system
rollback deployment nginx-deploy to revision 1 in namespace dev,kubectl rollout undo deployment nginx-deploy --to-revision=1 -n dev,Rolling back deployment nginx-deploy to revision 1 in namespace dev
expose deployment api-deploy as service in namespace prod,kubectl expose deployment api-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment api-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment frontend to 3 replicas in namespace dev,kubectl scale deployment frontend --replicas=3 -n dev,Scaling deployment frontend to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node2,kubectl describe node node2,Describing node node2
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment nginx-deploy in namespace kube-system,kubectl rollout status deployment nginx-deploy -n kube-system,Checking rollout status of deployment nginx-deploy in namespace kube-system
rollback deployment api-deploy to revision 2 in namespace dev,kubectl rollout undo deployment api-deploy --to-revision=2 -n dev,Rolling back deployment api-deploy to revision 2 in namespace dev
expose deployment frontend as service in namespace prod,kubectl expose deployment frontend --type=ClusterIP --port=80 -n prod,Exposing deployment frontend as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment nginx-deploy to 3 replicas in namespace dev,kubectl scale deployment nginx-deploy --replicas=3 -n dev,Scaling deployment nginx-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node3,kubectl describe node node3,Describing node node3
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment api-deploy in namespace kube-system,kubectl rollout status deployment api-deploy -n kube-system,Checking rollout status of deployment api-deploy in namespace kube-system
rollback deployment frontend to revision 3 in namespace dev,kubectl rollout undo deployment frontend --to-revision=3 -n dev,Rolling back deployment frontend to revision 3 in namespace dev
expose deployment nginx-deploy as service in namespace prod,kubectl expose deployment nginx-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment nginx-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment api-deploy to 3 replicas in namespace dev,kubectl scale deployment api-deploy --replicas=3 -n dev,Scaling deployment api-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node1,kubectl describe node node1,Describing node node1
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment frontend in namespace kube-system,kubectl rollout status deployment frontend -n kube-system,Checking rollout status of deployment frontend in namespace kube-system
rollback deployment nginx-deploy to revision 1 in namespace dev,kubectl rollout undo deployment nginx-deploy --to-revision=1 -n dev,Rolling back deployment nginx-deploy to revision 1 in namespace dev
expose deployment api-deploy as service in namespace prod,kubectl expose deployment api-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment api-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment frontend to 3 replicas in namespace dev,kubectl scale deployment frontend --replicas=3 -n dev,Scaling deployment frontend to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node2,kubectl describe node node2,Describing node node2
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment nginx-deploy in namespace kube-system,kubectl rollout status deployment nginx-deploy -n kube-system,Checking rollout status of deployment nginx-deploy in namespace kube-system
rollback deployment api-deploy to revision 2 in namespace dev,kubectl rollout undo deployment api-deploy --to-revision=2 -n dev,Rolling back deployment api-deploy to revision 2 in namespace dev
expose deployment frontend as service in namespace prod,kubectl expose deployment frontend --type=ClusterIP --port=80 -n prod,Exposing deployment frontend as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment nginx-deploy to 3 replicas in namespace dev,kubectl scale deployment nginx-deploy --replicas=3 -n dev,Scaling deployment nginx-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node3,kubectl describe node node3,Describing node node3
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment api-deploy in namespace kube-system,kubectl rollout status deployment api-deploy -n kube-system,Checking rollout status of deployment api-deploy in namespace kube-system
rollback deployment frontend to revision 3 in namespace dev,kubectl rollout undo deployment frontend --to-revision=3 -n dev,Rolling back deployment frontend to revision 3 in namespace dev
expose deployment nginx-deploy as service in namespace prod,kubectl expose deployment nginx-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment nginx-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment api-deploy to 3 replicas in namespace dev,kubectl scale deployment api-deploy --replicas=3 -n dev,Scaling deployment api-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node1,kubectl describe node node1,Describing node node1
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment frontend in namespace kube-system,kubectl rollout status deployment frontend -n kube-system,Checking rollout status of deployment frontend in namespace kube-system
rollback deployment nginx-deploy to revision 1 in namespace dev,kubectl rollout undo deployment nginx-deploy --to-revision=1 -n dev,Rolling back deployment nginx-deploy to revision 1 in namespace dev
expose deployment api-deploy as service in namespace prod,kubectl expose deployment api-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment api-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment frontend to 3 replicas in namespace dev,kubectl scale deployment frontend --replicas=3 -n dev,Scaling deployment frontend to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node2,kubectl describe node node2,Describing node node2
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment nginx-deploy in namespace kube-system,kubectl rollout status deployment nginx-deploy -n kube-system,Checking rollout status of deployment nginx-deploy in namespace kube-system
rollback deployment api-deploy to revision 2 in namespace dev,kubectl rollout undo deployment api-deploy --to-revision=2 -n dev,Rolling back deployment api-deploy to revision 2 in namespace dev
expose deployment frontend as service in namespace prod,kubectl expose deployment frontend --type=ClusterIP --port=80 -n prod,Exposing deployment frontend as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment nginx-deploy to 3 replicas in namespace dev,kubectl scale deployment nginx-deploy --replicas=3 -n dev,Scaling deployment nginx-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node3,kubectl describe node node3,Describing node node3
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment api-deploy in namespace kube-system,kubectl rollout status deployment api-deploy -n kube-system,Checking rollout status of deployment api-deploy in namespace kube-system
rollback deployment frontend to revision 3 in namespace dev,kubectl rollout undo deployment frontend --to-revision=3 -n dev,Rolling back deployment frontend to revision 3 in namespace dev
expose deployment nginx-deploy as service in namespace prod,kubectl expose deployment nginx-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment nginx-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment api-deploy to 3 replicas in namespace dev,kubectl scale deployment api-deploy --replicas=3 -n dev,Scaling deployment api-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node1,kubectl describe node node1,Describing node node1
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment frontend in namespace kube-system,kubectl rollout status deployment frontend -n kube-system,Checking rollout status of deployment frontend in namespace kube-system
rollback deployment nginx-deploy to revision 1 in namespace dev,kubectl rollout undo deployment nginx-deploy --to-revision=1 -n dev,Rolling back deployment nginx-deploy to revision 1 in namespace dev
expose deployment api-deploy as service in namespace prod,kubectl expose deployment api-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment api-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment frontend to 3 replicas in namespace dev,kubectl scale deployment frontend --replicas=3 -n dev,Scaling deployment frontend to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node2,kubectl describe node node2,Describing node node2
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment nginx-deploy in namespace kube-system,kubectl rollout status deployment nginx-deploy -n kube-system,Checking rollout status of deployment nginx-deploy in namespace kube-system
rollback deployment api-deploy to revision 2 in namespace dev,kubectl rollout undo deployment api-deploy --to-revision=2 -n dev,Rolling back deployment api-deploy to revision 2 in namespace dev
expose deployment frontend as service in namespace prod,kubectl expose deployment frontend --type=ClusterIP --port=80 -n prod,Exposing deployment frontend as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
list all services in namespace default,kubectl get svc -n default,Listing all services in namespace default
list all deployments in namespace kube-system,kubectl get deployments -n kube-system,Listing all deployments in namespace kube-system
scale deployment nginx-deploy to 3 replicas in namespace dev,kubectl scale deployment nginx-deploy --replicas=3 -n dev,Scaling deployment nginx-deploy to 3 replicas in namespace dev
apply yaml file nginx.yaml to namespace prod,kubectl apply -f nginx.yaml -n prod,Applying YAML file nginx.yaml to namespace prod
get configmaps in namespace default,kubectl get configmaps -n default,Listing all configmaps in namespace default
delete namespace kube-system,kubectl delete namespace kube-system,Deleting namespace kube-system
get nodes,kubectl get nodes,Listing all nodes in the cluster
describe node node3,kubectl describe node node3,Describing node node3
get all pods in all namespaces,kubectl get pods --all-namespaces,Listing all pods in all namespaces
rollout status deployment api-deploy in namespace kube-system,kubectl rollout status deployment api-deploy -n kube-system,Checking rollout status of deployment api-deploy in namespace kube-system
rollback deployment frontend to revision 3 in namespace dev,kubectl rollout undo deployment frontend --to-revision=3 -n dev,Rolling back deployment frontend to revision 3 in namespace dev
expose deployment nginx-deploy as service in namespace prod,kubectl expose deployment nginx-deploy --type=ClusterIP --port=80 -n prod,Exposing deployment nginx-deploy as a ClusterIP service in namespace prod
list all pods in namespace default,kubectl get pods -n default,Listing all pods in the namespace default
describe pod pod2 in namespace kube-system,kubectl describe pod pod2 -n kube-system,Describing pod pod2 in namespace kube-system
get logs of pod pod3 in namespace dev,kubectl logs pod3 -n dev,Getting logs of pod pod3 in namespace dev
delete pod nginx-pod in namespace prod,kubectl delete pod nginx-pod -n prod,Deleting pod nginx-pod from namespace prod
get all pods in namespace dev-backend,kubectl get pods -n dev-backend,Listing all pods in the namespace dev-backend
describe pod postgres-01 in namespace database,kubectl describe pod postgres-01 -n database,Describing pod postgres-01 in namespace database
stream logs for pod file-processor in namespace etl-jobs,kubectl logs -f file-processor -n etl-jobs,Streaming logs for pod file-processor in namespace etl-jobs
delete the service redis-cache in namespace temp-ns,kubectl delete service redis-cache -n temp-ns,Deleting the service redis-cache from namespace temp-ns
list all configmaps in namespace monitoring,kubectl get configmaps -n monitoring,Listing all configmaps in namespace monitoring
get all secrets in namespace ci-cd,kubectl get secrets -n ci-cd,Listing all secrets in namespace ci-cd
list all services in all namespaces,kubectl get services --all-namespaces,Listing all services in all namespaces
create a deployment named 'app-frontend' with image 'front-image:v1' in namespace 'web',kubectl create deployment app-frontend --image=front-image:v1 -n web,Creating a deployment named 'app-frontend' with image 'front-image:v1' in namespace 'web'
scale deployment worker-queue to 5 replicas in namespace batch,kubectl scale deployment worker-queue --replicas=5 -n batch,Scaling deployment worker-queue to 5 replicas in namespace batch
check the rollout history of deployment api-gateway in namespace production,kubectl rollout history deployment api-gateway -n production,Checking the rollout history of deployment api-gateway in namespace production
create a namespace named 'qa-testing',kubectl create namespace qa-testing,Creating a new namespace named 'qa-testing'
delete the deployment legacy-app in namespace retirement,kubectl delete deployment legacy-app -n retirement,Deleting the deployment legacy-app from namespace retirement
get all nodes with labels,kubectl get nodes --show-labels,Listing all nodes with their labels in the cluster
describe the node kube-worker-1,kubectl describe node kube-worker-1,Describing the node kube-worker-1
list all persistent volumes,kubectl get pv,Listing all persistent volumes
get all persistent volume claims in namespace storage-ns,kubectl get pvc -n storage-ns,Listing all persistent volume claims in namespace storage-ns
expose deployment data-api as NodePort on port 30000 in namespace api,kubectl expose deployment data-api --type=NodePort --port=8080 --target-port=8080 -n api,Exposing deployment data-api as a NodePort service in namespace api
apply the configuration in file new-service.yaml to namespace staging,kubectl apply -f new-service.yaml -n staging,Applying the configuration in file new-service.yaml to namespace staging
get logs of the deployment monitoring-agent in namespace system-monitoring,kubectl logs deployment/monitoring-agent -n system-monitoring,Getting logs of the deployment monitoring-agent in namespace system-monitoring
get all pods that have the label 'app=nginx' in namespace default,kubectl get pods -l app=nginx -n default,Listing all pods with label 'app=nginx' in namespace default
delete all pods in namespace dev-test,kubectl delete pods --all -n dev-test,Deleting all pods in namespace dev-test
rollout status of deployment backend-v3 in namespace prod-api,kubectl rollout status deployment backend-v3 -n prod-api,Checking rollout status of deployment backend-v3 in namespace prod-api
rollback deployment billing-service to its previous revision in namespace finance,kubectl rollout undo deployment billing-service -n finance,Rolling back deployment billing-service to its previous revision in namespace finance
list all ingresses in namespace public-web,kubectl get ingress -n public-web,Listing all ingresses in namespace public-web
describe configmap system-vars in namespace kube-system,kubectl describe configmap system-vars -n kube-system,Describing configmap system-vars in namespace kube-system
edit the deployment frontend-ui in namespace staging,kubectl edit deployment frontend-ui -n staging,Editing the deployment frontend-ui in namespace staging
get events for namespace marketing,kubectl get events -n marketing,Listing all events in namespace marketing
cordon node worker-02,kubectl cordon worker-02,Marking node worker-02 as unschedulable
uncordon node worker-02,kubectl uncordon worker-02,Marking node worker-02 as schedulable
drain node worker-03,kubectl drain worker-03 --ignore-daemonsets,Evicting all pods from node worker-03 (excluding daemonsets)
exec into the shell of pod my-shell-pod in namespace utility,kubectl exec -it my-shell-pod -n utility -- /bin/bash,Executing a shell command inside pod my-shell-pod in namespace utility
copy file.txt from local to pod web-pod:/tmp/file.txt in namespace web,kubectl cp file.txt web-pod:/tmp/file.txt -n web,Copying file.txt to web-pod in namespace web
forward port 8080 from pod metrics-api to local 9090 in namespace monitoring,kubectl port-forward metrics-api 9090:8080 -n monitoring,Forwarding port 8080 on pod metrics-api to local 9090 in namespace monitoring
get resource quotas in namespace team-alpha,kubectl get resourcequotas -n team-alpha,Listing all resource quotas in namespace team-alpha
describe persistent volume data-disk-01,kubectl describe pv data-disk-01,Describing persistent volume data-disk-01
delete all secrets in namespace old-project,kubectl delete secrets --all -n old-project,Deleting all secrets in namespace old-project
get all service accounts in namespace internal-tools,kubectl get serviceaccounts -n internal-tools,Listing all service accounts in namespace internal-tools
check logs for pod data-ingest for the previous container run in namespace etl-staging,kubectl logs data-ingest -p -n etl-staging,Getting logs for the previous container run of pod data-ingest in namespace etl-staging
create a service from file new-svc.yaml in namespace dev,kubectl create -f new-svc.yaml -n dev,Creating a service from file new-svc.yaml in namespace dev
what are the running pods in namespace user-portal,kubectl get pods -n user-portal,Listing all running pods in the namespace user-portal
get all endpoints in namespace system-tools,kubectl get endpoints -n system-tools,Listing all endpoints in namespace system-tools
delete configmap frontend-config in namespace web-app,kubectl delete configmap frontend-config -n web-app,Deleting configmap frontend-config from namespace web-app
list all clusterrolebindings,kubectl get clusterrolebindings,Listing all clusterrolebindings in the cluster
describe deployment checkout-service in namespace shopping-cart,kubectl describe deployment checkout-service -n shopping-cart,Describing deployment checkout-service in namespace shopping-cart
set image for deployment backend-processor to version 2 in namespace jobs,kubectl set image deployment/backend-processor processor=image:v2 -n jobs,Setting image for deployment backend-processor to version 2 in namespace jobs
check health of all services in namespace default,kubectl get svc -o wide -n default,Listing services with additional details in namespace default
view logs for specific container 'sidecar' in pod 'main-app-pod' in namespace microservice,kubectl logs main-app-pod -c sidecar -n microservice,Viewing logs for container 'sidecar' in pod 'main-app-pod' in namespace microservice
delete the namespace development-temp,kubectl delete namespace development-temp,Deleting the namespace development-temp
get YAML for pod database-replica in namespace db-cluster,kubectl get pod database-replica -o yaml -n db-cluster,Getting YAML manifest for pod database-replica in namespace db-cluster
show API resources supported by the server,kubectl api-resources,Listing all API resources supported by the Kubernetes server
get all pods and services in namespace team-bravo,kubectl get all -n team-bravo,"Listing all resources (pods, services, deployments, etc.) in namespace team-bravo"
annotate node control-plane-01 with a specific key-value pair,kubectl annotate node control-plane-01 'disk=ssd',Adding annotation 'disk=ssd' to node control-plane-01
label service auth-service with 'env=production' in namespace security,kubectl label service auth-service env=production -n security,Labeling service auth-service with 'env=production' in namespace security
show metrics for all running pods in namespace metrics-ns,kubectl top pod -n metrics-ns,Displaying CPU and memory usage for pods in namespace metrics-ns
force delete pod stuck-pod immediately in namespace troubleshooting,kubectl delete pod stuck-pod --force --grace-period=0 -n troubleshooting,Force deleting pod stuck-pod immediately in namespace troubleshooting
get logs for the last 10 minutes of pod event-handler in namespace streaming,kubectl logs event-handler --since=10m -n streaming,Getting logs from the last 10 minutes for pod event-handler in namespace streaming
roll out restart deployment payment-api in namespace billing,kubectl rollout restart deployment payment-api -n billing,Restarting deployment payment-api in namespace billing
check resource usage of all nodes,kubectl top node,Displaying CPU and memory usage for nodes
expose deployment image-resizer as LoadBalancer in namespace media,kubectl expose deployment image-resizer --type=LoadBalancer --port=80 -n media,Exposing deployment image-resizer as a LoadBalancer service in namespace media
replace the existing pod definition with one from update.json in namespace misc,kubectl replace -f update.json -n misc,Replacing the existing resource with configuration from update.json in namespace misc
check if the namespace ci-build exists,kubectl get namespace ci-build,Checking the existence of namespace ci-build
delete all replica sets in namespace maintenance,kubectl delete rs --all -n maintenance,Deleting all replica sets in namespace maintenance
edit the configmap application-settings in namespace config-ns,kubectl edit configmap application-settings -n config-ns,Editing the configmap application-settings in namespace config-ns
view the definition of service account robot-sa in namespace automation,kubectl get serviceaccount robot-sa -o yaml -n automation,Viewing the YAML definition of service account robot-sa in namespace automation
scale replica set old-version-rs to 0 replicas in namespace archival,kubectl scale rs old-version-rs --replicas=0 -n archival,Scaling replica set old-version-rs to 0 replicas in namespace archival
attach to the running container in pod shell-access-01 in namespace utility,kubectl attach shell-access-01 -n utility,Attaching to the main container in pod shell-access-01 in namespace utility
copy log file from pod cleanup-job:/var/log/app.log to local path in namespace logging,kubectl cp cleanup-job:/var/log/app.log ./app.log -n logging,Copying log file from pod cleanup-job to local path in namespace logging
get current context,kubectl config current-context,Displaying the currently active Kubernetes context
switch to context 'staging-cluster',kubectl config use-context staging-cluster,Switching the current context to 'staging-cluster'
rename clusterroleviewer to cluster-viewer-new,kubectl edit clusterrole viewer,Editing the ClusterRole 'viewer'
get all pods that are ready in namespace ingress-system,kubectl get pods -n ingress-system --field-selector=status.phase=Running,Listing running pods in namespace ingress-system
debug container web-c in pod web-01 in namespace debug,kubectl exec -it web-01 -c web-c -n debug -- /bin/sh,Starting a shell session in container web-c of pod web-01 in namespace debug
show deployment events for deployment report-gen in namespace reporting,kubectl describe deployment report-gen -n reporting,Describing deployment report-gen to show recent events in namespace reporting
get raw output of a deployment named db-migrator in namespace setup,kubectl get deployment db-migrator -n setup,Fetching deployment db-migrator data in namespace setup
list all role bindings in namespace project-x,kubectl get rolebindings -n project-x,Listing all role bindings in namespace project-x
delete persistent volume claim temp-pvc in namespace ephemeral,kubectl delete pvc temp-pvc -n ephemeral,Deleting persistent volume claim temp-pvc in namespace ephemeral
view the rollout history of daemonset log-collector in namespace monitoring-system,kubectl rollout history daemonset log-collector -n monitoring-system,Checking rollout history of daemonset log-collector in namespace monitoring-system
rollout undo daemonset dns-cache to the previous version in namespace kube-dns,kubectl rollout undo daemonset dns-cache -n kube-dns,Rolling back daemonset dns-cache to previous version in namespace kube-dns
show node labels for node kube-worker-04,kubectl get node kube-worker-04 --show-labels,Displaying labels for node kube-worker-04
apply label 'region=us-west' to all pods in namespace sandbox,kubectl label pods --all region=us-west -n sandbox,Labeling all pods in namespace sandbox with 'region=us-west'
list all jobs in namespace utility-jobs,kubectl get jobs -n utility-jobs,Listing all jobs in namespace utility-jobs
delete job old-data-cleanup in namespace archival,kubectl delete job old-data-cleanup -n archival,Deleting job old-data-cleanup in namespace archival
get secrets in namespace default in JSON format,kubectl get secrets -n default -o json,Listing secrets in namespace default as JSON output
get the external IP of service web-loadbalancer in namespace external-access,kubectl get svc web-loadbalancer -o jsonpath='{.status.loadBalancer.ingress[0].ip}' -n external-access,Getting the external IP for service web-loadbalancer in namespace external-access
create a new service account 'jenkins-sa' in namespace ci,kubectl create serviceaccount jenkins-sa -n ci,Creating a new service account 'jenkins-sa' in namespace ci
apply the latest changes from deploy.yaml to namespace prod-services,kubectl apply -f deploy.yaml -n prod-services,Applying configuration from deploy.yaml to namespace prod-services
scale statefulset database-ss to 3 replicas in namespace data-store,kubectl scale statefulset database-ss --replicas=3 -n data-store,Scaling statefulset database-ss to 3 replicas in namespace data-store
delete all configmaps in namespace obsolete-config,kubectl delete configmaps --all -n obsolete-config,Deleting all configmaps in namespace obsolete-config
get all pods in namespace kube-system sorted by creation time,kubectl get pods -n kube-system --sort-by=.metadata.creationTimestamp,Listing pods in kube-system sorted by creation time
list all horizontal pod autoscalers in namespace hpa-test,kubectl get hpa -n hpa-test,Listing all Horizontal Pod Autoscalers in namespace hpa-test
describe the service load-balancer-svc in namespace network,kubectl describe svc load-balancer-svc -n network,Describing the service load-balancer-svc in namespace network
get cluster information,kubectl cluster-info,Displaying information about the cluster master and services
check logs for pod consumer-app-02 for container 'processing' in namespace queue-system,kubectl logs consumer-app-02 -c processing -n queue-system,Getting logs for container 'processing' in pod consumer-app-02 in namespace queue-system
delete all resources labeled 'environment=test' in namespace staging-a,kubectl delete all -l environment=test -n staging-a,Deleting all resources with label 'environment=test' in namespace staging-a
set environment variable for deployment worker-deployment in namespace long-jobs,kubectl set env deployment/worker-deployment ENV_VAR=new_value -n long-jobs,Setting environment variable for deployment worker-deployment in namespace long-jobs
view kubeconfig file content,kubectl config view,Displaying the content of the kubeconfig file
get deployment front-deploy with wide output in namespace user-facing,kubectl get deployment front-deploy -o wide -n user-facing,Listing deployment front-deploy with wide output in namespace user-facing
delete all running pods in namespace cleanup-ns,kubectl delete pod --field-selector=status.phase=Running -n cleanup-ns,Deleting all running pods in namespace cleanup-ns
check logs for pod data-backup-job with timestamps in namespace operations,kubectl logs data-backup-job --timestamps -n operations,Getting logs with timestamps for pod data-backup-job in namespace operations
create a pod using the image 'busybox' in namespace temporary,kubectl run temporary-pod --image=busybox --restart=Never -n temporary,Creating a temporary pod using the busybox image in namespace temporary
list all namespaces,kubectl get namespaces,Listing all namespaces in the cluster
describe persistent volume claim my-claim in namespace vol-test,kubectl describe pvc my-claim -n vol-test,Describing persistent volume claim my-claim in namespace vol-test
list all endpoints in namespace system,kubectl get endpoints -n system,Listing all endpoints in namespace system
edit the service redis-service in namespace cache,kubectl edit service redis-service -n cache,Editing the service redis-service in namespace cache
get raw logs from pod kube-proxy in kube-system,kubectl logs kube-proxy -n kube-system --raw,Getting raw logs from pod kube-proxy in kube-system
check the status of rollout for deployment frontend-dev in namespace dev,kubectl rollout status deployment frontend-dev -n dev,Checking rollout status for deployment frontend-dev in namespace dev
pause deployment batch-processor in namespace batch-process,kubectl rollout pause deployment batch-processor -n batch-process,Pausing deployment batch-processor in namespace batch-process
resume deployment batch-processor in namespace batch-process,kubectl rollout resume deployment batch-processor -n batch-process,Resuming deployment batch-processor in namespace batch-process
get all pods that have a restart count greater than 0 in namespace errors,kubectl get pods --field-selector=status.containerStatuses[0].restartCount!=0 -n errors,Listing pods with at least one restart in namespace errors
delete all resources defined in deploy-old.yaml in namespace old-env,kubectl delete -f deploy-old.yaml -n old-env,Deleting resources defined in deploy-old.yaml from namespace old-env
get all network policies in namespace secure-zone,kubectl get netpol -n secure-zone,Listing all network policies in namespace secure-zone
describe the ingress controller load-balancer in namespace ingress-ns,kubectl describe ingress load-balancer -n ingress-ns,Describing the ingress load-balancer in namespace ingress-ns
apply patch to deployment api-deployment in namespace patch-test,"kubectl patch deployment api-deployment --patch '{""spec"": {""template"": {""spec"": {""containers"": [{""name"": ""api"", ""image"": ""api:latest""}]}}}}' -n patch-test",Applying a strategic merge patch to deployment api-deployment in namespace patch-test
delete all services with label 'app=temp' in namespace cleanup,kubectl delete svc -l app=temp -n cleanup,Deleting all services with label 'app=temp' in namespace cleanup
get all pods in namespace metrics sorted by memory usage,kubectl top pod --sort-by=memory -n metrics,Listing pods in namespace metrics sorted by memory usage
view configuration of node node-fast,kubectl get node node-fast -o yaml,Getting the YAML configuration of node node-fast
create a secret from a file database.txt in namespace data-secret,kubectl create secret generic db-credentials --from-file=database.txt -n data-secret,Creating a generic secret from file database.txt in namespace data-secret
delete the service account build-robot in namespace tools,kubectl delete serviceaccount build-robot -n tools,Deleting the service account build-robot in namespace tools
get all resource quotas across all namespaces,kubectl get resourcequotas --all-namespaces,Listing all resource quotas across all namespaces
port-forward from local port 80 to service frontend-svc on port 8080 in namespace web-public,kubectl port-forward service/frontend-svc 80:8080 -n web-public,Port-forwarding local 80 to service frontend-svc 8080 in namespace web-public
get pod lifecycle events for pod startup-pod in namespace init-ns,kubectl get events --field-selector involvedObject.name=startup-pod -n init-ns,Listing events related to pod startup-pod in namespace init-ns
label namespace staging-b with 'status=ready',kubectl label namespace staging-b status=ready,Labeling namespace staging-b with 'status=ready'
delete all pods in namespace old-dev with status Terminating,kubectl delete pod --field-selector=status.phase=Terminating -n old-dev,Deleting all terminating pods in namespace old-dev
get version of kubectl and cluster,kubectl version,Displaying the client and server versions of Kubernetes
get all custom resource definitions (CRDs),kubectl get crd,Listing all Custom Resource Definitions (CRDs) in the cluster
delete the ingress resource web-ingress in namespace prod,kubectl delete ingress web-ingress -n prod,Deleting the ingress resource web-ingress from namespace prod
show node selectors for deployment api-v2 in namespace new-api,kubectl get deployment api-v2 -o jsonpath='{.spec.template.spec.nodeSelector}' -n new-api,Displaying node selectors for deployment api-v2 in namespace new-api
create a configmap from literal values in namespace config-data,kubectl create configmap my-config --from-literal=key1=value1 --from-literal=key2=value2 -n config-data,Creating a configmap from literal key-value pairs in namespace config-data
check logs for pod cleanup-utility for a previous instance in namespace jobs-ns,kubectl logs cleanup-utility -p -n jobs-ns,Getting logs from the previous instance of pod cleanup-utility in namespace jobs-ns
describe the horizontal pod autoscaler frontend-hpa in namespace scaling-test,kubectl describe hpa frontend-hpa -n scaling-test,Describing the Horizontal Pod Autoscaler frontend-hpa in namespace scaling-test
get all network policies in namespace production-restricted,kubectl get networkpolicies -n production-restricted,Listing all network policies in namespace production-restricted
delete all services in namespace temp-staging,kubectl delete service --all -n temp-staging,Deleting all services in namespace temp-staging
get all pods in namespace finance-prod,kubectl get pods -n finance-prod,Listing all pods in the namespace finance-prod
describe deployment data-pipeline in namespace etl-system,kubectl describe deployment data-pipeline -n etl-system,Describing deployment data-pipeline in namespace etl-system
stream logs for pod web-server-v2 in namespace app-staging,kubectl logs -f web-server-v2 -n app-staging,Streaming logs for pod web-server-v2 in namespace app-staging
delete the service metrics-collector in namespace monitoring-tools,kubectl delete service metrics-collector -n monitoring-tools,Deleting the service metrics-collector from namespace monitoring-tools
list all configmaps in namespace data-processing,kubectl get configmaps -n data-processing,Listing all configmaps in namespace data-processing
get all secrets in namespace authentication,kubectl get secrets -n authentication,Listing all secrets in namespace authentication
list all statefulsets in all namespaces,kubectl get statefulsets --all-namespaces,Listing all statefulsets in all namespaces
create a deployment named 'image-api' with image 'image-svc:3.0' in namespace 'media',kubectl create deployment image-api --image=image-svc:3.0 -n media,Creating a deployment named 'image-api' with image 'image-svc:3.0' in namespace 'media'
scale deployment recommendation-engine to 10 replicas in namespace ml-platform,kubectl scale deployment recommendation-engine --replicas=10 -n ml-platform,Scaling deployment recommendation-engine to 10 replicas in namespace ml-platform
check the rollout history of deployment user-auth in namespace identity,kubectl rollout history deployment user-auth -n identity,Checking the rollout history of deployment user-auth in namespace identity
create a namespace named 'temp-cleanup',kubectl create namespace temp-cleanup,Creating a new namespace named 'temp-cleanup'
delete the deployment test-harness in namespace qa-env,kubectl delete deployment test-harness -n qa-env,Deleting the deployment test-harness from namespace qa-env
get all nodes with detailed information,kubectl get nodes -o wide,Listing all nodes with detailed information
describe the node worker-fast-01,kubectl describe node worker-fast-01,Describing the node worker-fast-01
list all persistent volumes in YAML format,kubectl get pv -o yaml,Listing all persistent volumes in YAML format
get all persistent volume claims in namespace database-cluster,kubectl get pvc -n database-cluster,Listing all persistent volume claims in namespace database-cluster
expose deployment reporting-svc as LoadBalancer on port 80 in namespace analytics,kubectl expose deployment reporting-svc --type=LoadBalancer --port=80 --target-port=8080 -n analytics,Exposing deployment reporting-svc as a LoadBalancer service in namespace analytics
apply the configuration in file hpa.yaml to namespace scaling,kubectl apply -f hpa.yaml -n scaling,Applying the configuration in file hpa.yaml to namespace scaling
get logs of the daemonset file-sync in namespace storage,kubectl logs daemonset/file-sync -n storage,Getting logs of the daemonset file-sync in namespace storage
get all pods that have the label 'tier=database' in namespace backend-services,kubectl get pods -l tier=database -n backend-services,Listing all pods with label 'tier=database' in namespace backend-services
delete all secrets in namespace staging-secrets,kubectl delete secrets --all -n staging-secrets,Deleting all secrets in namespace staging-secrets
rollout status of deployment ingress-controller in namespace kube-system,kubectl rollout status deployment ingress-controller -n kube-system,Checking rollout status of deployment ingress-controller in namespace kube-system
rollback deployment legacy-api to its previous revision in namespace archive,kubectl rollout undo deployment legacy-api -n archive,Rolling back deployment legacy-api to its previous revision in namespace archive
list all cronjobs in namespace nightly-tasks,kubectl get cronjobs -n nightly-tasks,Listing all cronjobs in namespace nightly-tasks
describe secret registry-creds in namespace production-config,kubectl describe secret registry-creds -n production-config,Describing secret registry-creds in namespace production-config
edit the service redis-master in namespace caching,kubectl edit service redis-master -n caching,Editing the service redis-master in namespace caching
get events for node node-gpu-01,kubectl get events --field-selector involvedObject.name=node-gpu-01,Listing all events related to node-gpu-01
cordon node worker-gpu-02,kubectl cordon worker-gpu-02,Marking node worker-gpu-02 as unschedulable
uncordon node worker-gpu-02,kubectl uncordon worker-gpu-02,Marking node worker-gpu-02 as schedulable
drain node worker-storage-03,kubectl drain worker-storage-03 --ignore-daemonsets --delete-local-data,Evicting all pods from node worker-storage-03 (excluding daemonsets and deleting local data)
exec into the shell of pod db-access-tool in namespace admin-tools,kubectl exec -it db-access-tool -n admin-tools -- /bin/sh,Executing a shell command inside pod db-access-tool in namespace admin-tools
copy /etc/config/app.conf from pod app-settings-pod:/app.conf in namespace dev-app,kubectl cp app-settings-pod:/etc/config/app.conf ./app.conf -n dev-app,Copying file app.conf from app-settings-pod to local path in namespace dev-app
forward port 3306 from service mysql-service to local 6000 in namespace db-staging,kubectl port-forward service/mysql-service 6000:3306 -n db-staging,Forwarding port 3306 on service mysql-service to local 6000 in namespace db-staging
get resource quotas in namespace project-beta,kubectl get resourcequotas -n project-beta,Listing all resource quotas in namespace project-beta
describe persistent volume claim pvc-backup-02 in namespace disaster-recovery,kubectl describe pvc pvc-backup-02 -n disaster-recovery,Describing persistent volume claim pvc-backup-02 in namespace disaster-recovery
delete all ingresses in namespace old-web-system,kubectl delete ingress --all -n old-web-system,Deleting all ingresses in namespace old-web-system
get all service accounts in namespace operations,kubectl get serviceaccounts -n operations,Listing all service accounts in namespace operations
check logs for container 'sidecar' in pod 'api-pod-xyz' in namespace gateway,kubectl logs api-pod-xyz -c sidecar -n gateway,Getting logs for container 'sidecar' in pod 'api-pod-xyz' in namespace gateway
create a job from file process-data.yaml in namespace background-jobs,kubectl create -f process-data.yaml -n background-jobs,Creating a job from file process-data.yaml in namespace background-jobs
what are the deployments in namespace microservices,kubectl get deployments -n microservices,Listing all deployments in the namespace microservices
get all endpoints in namespace service-discovery,kubectl get endpoints -n service-discovery,Listing all endpoints in namespace service-discovery
delete configmap feature-flags in namespace experimental,kubectl delete configmap feature-flags -n experimental,Deleting configmap feature-flags from namespace experimental
list all clusterroles,kubectl get clusterroles,Listing all clusterroles in the cluster
describe statefulset kafka-broker in namespace message-queue,kubectl describe statefulset kafka-broker -n message-queue,Describing statefulset kafka-broker in namespace message-queue
set image for deployment frontend-cms to version 1.5 in namespace content-mgt,kubectl set image deployment/frontend-cms cms=image:1.5 -n content-mgt,Setting image for deployment frontend-cms to version 1.5 in namespace content-mgt
check health of all ingresses in namespace public-facing,kubectl get ingress -o wide -n public-facing,Listing ingresses with additional details in namespace public-facing
view logs for specific container 'initializer' in pod 'setup-pod' in namespace bootstrap,kubectl logs setup-pod -c initializer -n bootstrap,Viewing logs for container 'initializer' in pod 'setup-pod' in namespace bootstrap
delete the namespace project-temp-staging,kubectl delete namespace project-temp-staging,Deleting the namespace project-temp-staging
get JSON for service loadbalancer-prod in namespace network-prod,kubectl get service loadbalancer-prod -o json -n network-prod,Getting JSON manifest for service loadbalancer-prod in namespace network-prod
show current cluster context and configuration,kubectl config view,Displaying the current Kubernetes configuration and context
get all pods and secrets in namespace utility-scripts,"kubectl get all,secrets -n utility-scripts",Listing all standard resources and secrets in namespace utility-scripts
taint node node-slow-disk with key=value:NoSchedule,kubectl taint node node-slow-disk key=value:NoSchedule,Applying taint to node node-slow-disk to prevent scheduling
remove label 'old-version' from deployment app-old in namespace deprecated,kubectl label deployment app-old old-version- -n deprecated,Removing label 'old-version' from deployment app-old in namespace deprecated
show metrics for all running containers in namespace resource-test,kubectl top pod --containers -n resource-test,Displaying CPU and memory usage for containers in pods in namespace resource-test
delete pod crash-loop-pod with grace period 30 seconds in namespace errors,kubectl delete pod crash-loop-pod --grace-period=30 -n errors,Deleting pod crash-loop-pod with a 30 second grace period in namespace errors
get logs for the last 5 minutes of pod log-aggregator in namespace audit-logs,kubectl logs log-aggregator --since=5m -n audit-logs,Getting logs from the last 5 minutes for pod log-aggregator in namespace audit-logs
roll out restart statefulset cache-db in namespace persistence,kubectl rollout restart statefulset cache-db -n persistence,Restarting statefulset cache-db in namespace persistence
check resource usage of all nodes in wide format,kubectl top node -o wide,Displaying CPU and memory usage for nodes with wide output
expose deployment external-app as ClusterIP on port 443 in namespace secure,kubectl expose deployment external-app --type=ClusterIP --port=443 --target-port=8443 -n secure,Exposing deployment external-app as a ClusterIP service in namespace secure
create a resource from standard input (stdin) in namespace new-project,kubectl apply -f - -n new-project,Applying configuration from standard input to namespace new-project
check if the configmap default-settings exists in namespace production,kubectl get configmap default-settings -n production,Checking the existence of configmap default-settings in namespace production
delete all services in namespace dev-testing-old,kubectl delete svc --all -n dev-testing-old,Deleting all services in namespace dev-testing-old
edit the cronjob scheduled-backup in namespace ops,kubectl edit cronjob scheduled-backup -n ops,Editing the cronjob scheduled-backup in namespace ops
view the definition of clusterrole read-only-role,kubectl get clusterrole read-only-role -o yaml,Viewing the YAML definition of clusterrole read-only-role
scale daemonset metrics-agent to 0 replicas in namespace disabled,kubectl scale daemonset metrics-agent --replicas=0 -n disabled,Scaling daemonset metrics-agent to 0 replicas in namespace disabled
attach to the running container 'shell' in pod debug-pod-1 in namespace dev-util,kubectl attach debug-pod-1 -c shell -n dev-util,Attaching to the 'shell' container in pod debug-pod-1 in namespace dev-util
copy local file /tmp/data.csv to pod processor-pod:/input/data.csv in namespace file-transfer,kubectl cp /tmp/data.csv processor-pod:/input/data.csv -n file-transfer,Copying local file /tmp/data.csv to pod processor-pod in namespace file-transfer
get current cluster name from kubeconfig,kubectl config view --minify -o jsonpath='{.clusters[0].name}',Displaying the name of the current cluster
set context to user 'admin-user',kubectl config set-context --current --user=admin-user,Setting the user for the current context to 'admin-user'
rename deployment web-deploy-v1 to web-deploy-stable in namespace internet-facing,kubectl annotate deployment web-deploy-v1 kubernetes.io/change-cause='renamed to stable' -n internet-facing,Renaming deployment web-deploy-v1 (indirectly via annotation) in namespace internet-facing
get all pods that are not running in namespace infra-tools,kubectl get pods -n infra-tools --field-selector=status.phase!=Running,Listing pods that are not in the Running phase in namespace infra-tools
debug container data-c in pod data-loader-01 in namespace warehouse,kubectl exec -it data-loader-01 -c data-c -n warehouse -- /bin/bash,Starting a bash shell session in container data-c of pod data-loader-01 in namespace warehouse
show service events for service proxy-service in namespace vpn,kubectl describe service proxy-service -n vpn,Describing service proxy-service to show recent events in namespace vpn
get logs from previous instance of pod init-job-pod in namespace startup,kubectl logs init-job-pod -p -n startup,Fetching logs from the previous terminated container of pod init-job-pod in namespace startup
list all rolebindings in namespace finance-internal,kubectl get rolebindings -n finance-internal,Listing all role bindings in namespace finance-internal
delete persistent volume claim temp-data-pvc in namespace ephemeral-storage,kubectl delete pvc temp-data-pvc -n ephemeral-storage,Deleting persistent volume claim temp-data-pvc in namespace ephemeral-storage
view the rollout history of statefulset database-replicas in namespace rdbms,kubectl rollout history statefulset database-replicas -n rdbms,Checking rollout history of statefulset database-replicas in namespace rdbms
rollout undo deployment file-processor to the previous version in namespace batch-system,kubectl rollout undo deployment file-processor -n batch-system,Rolling back deployment file-processor to previous version in namespace batch-system
show node taints for node node-memory-05,kubectl describe node node-memory-05,Displaying taints for node node-memory-05
apply label 'owner=team-security' to service account default in namespace security-audit,kubectl label serviceaccount default owner=team-security -n security-audit,Labeling service account default with 'owner=team-security' in namespace security-audit
list all daemonsets in namespace kube-addon,kubectl get daemonsets -n kube-addon,Listing all daemonsets in namespace kube-addon
delete pod log-cleaner-pod in namespace system-ops,kubectl delete pod log-cleaner-pod -n system-ops,Deleting pod log-cleaner-pod in namespace system-ops
get configmaps in namespace logging in JSON format,kubectl get configmaps -n logging -o json,Listing configmaps in namespace logging as JSON output
get the internal IP of service cluster-ip-service in namespace internal-only,kubectl get svc cluster-ip-service -o jsonpath='{.spec.clusterIP}' -n internal-only,Getting the cluster IP for service cluster-ip-service in namespace internal-only
create a new clusterrole 'pod-reader',"kubectl create clusterrole pod-reader --verb=get,list,watch --resource=pods",Creating a new clusterrole 'pod-reader' with specified permissions
apply the latest changes from cronjob-config.yaml to namespace automation,kubectl apply -f cronjob-config.yaml -n automation,Applying configuration from cronjob-config.yaml to namespace automation
scale deployment worker-processor to 2 replicas in namespace computation,kubectl scale deployment worker-processor --replicas=2 -n computation,Scaling deployment worker-processor to 2 replicas in namespace computation
delete all rolebindings in namespace temporary-rbac,kubectl delete rolebindings --all -n temporary-rbac,Deleting all rolebindings in namespace temporary-rbac
get all pods in namespace metrics-server sorted by name,kubectl get pods -n metrics-server --sort-by=.metadata.name,Listing pods in metrics-server sorted by name
list all horizontal pod autoscalers in namespace api-gw,kubectl get hpa -n api-gw,Listing all Horizontal Pod Autoscalers in namespace api-gw
describe the ingress api-ingress in namespace traffic-management,kubectl describe ingress api-ingress -n traffic-management,Describing the ingress api-ingress in namespace traffic-management
get kubernetes API server version,kubectl version --short,Displaying the short version of the Kubernetes client and server
check logs for pod data-consumer-03 for container 'receiver' in namespace message-bus,kubectl logs data-consumer-03 -c receiver -n message-bus,Getting logs for container 'receiver' in pod data-consumer-03 in namespace message-bus
delete all deployments labeled 'stage=pre-prod' in namespace deployment-tests,kubectl delete deployment -l stage=pre-prod -n deployment-tests,Deleting all deployments with label 'stage=pre-prod' in namespace deployment-tests
set environment variable for cronjob nightly-run to DEBUG=false in namespace periodic,kubectl set env cronjob/nightly-run DEBUG=false -n periodic,Setting environment variable for cronjob nightly-run in namespace periodic
view details of the current context,kubectl config get-contexts $(kubectl config current-context),Displaying details of the currently active context
get pod cache-node-1 with YAML output in namespace distributed-cache,kubectl get pod cache-node-1 -o yaml -n distributed-cache,Listing pod cache-node-1 with YAML output in namespace distributed-cache
delete all pods in namespace cleanup-old with status Completed,kubectl delete pod --field-selector=status.phase=Succeeded -n cleanup-old,Deleting all completed pods in namespace cleanup-old
check logs for pod streaming-worker with timestamps in namespace real-time,kubectl logs streaming-worker --timestamps -n real-time,Getting logs with timestamps for pod streaming-worker in namespace real-time
create a pod using the image 'curl' for troubleshooting in namespace network-debug,kubectl run network-checker --image=curlimages/curl --rm -it --restart=Never -n network-debug -- /bin/sh,Creating a temporary pod for network debugging in namespace network-debug
list all namespaces with labels,kubectl get namespaces --show-labels,Listing all namespaces with their labels
describe persistent volume disk-vol-03,kubectl describe pv disk-vol-03,Describing persistent volume disk-vol-03
list all resource quotas in namespace team-gamma,kubectl get resourcequotas -n team-gamma,Listing all resource quotas in namespace team-gamma
edit the service backend-api in namespace api-zone,kubectl edit service backend-api -n api-zone,Editing the service backend-api in namespace api-zone
get raw output of pod dns-pod-1 in kube-dns,kubectl get pod dns-pod-1 -n kube-dns --raw /api/v1/namespaces/kube-dns/pods/dns-pod-1,Getting raw API output of pod dns-pod-1 in kube-dns
check the status of rollout for statefulset redis-cluster in namespace cache-system,kubectl rollout status statefulset redis-cluster -n cache-system,Checking rollout status for statefulset redis-cluster in namespace cache-system
pause deployment batch-consumer in namespace queue-jobs,kubectl rollout pause deployment batch-consumer -n queue-jobs,Pausing deployment batch-consumer in namespace queue-jobs
resume deployment batch-consumer in namespace queue-jobs,kubectl rollout resume deployment batch-consumer -n queue-jobs,Resuming deployment batch-consumer in namespace queue-jobs
get all pods that have a ready status of true in namespace health-check,kubectl get pods -n health-check --field-selector=status.containerStatuses[0].ready=true,Listing ready pods in namespace health-check
delete all resources defined in old-configs.yaml in namespace legacy,kubectl delete -f old-configs.yaml -n legacy,Deleting resources defined in old-configs.yaml from namespace legacy
get all roles in namespace app-rbac,kubectl get roles -n app-rbac,Listing all roles in namespace app-rbac
describe the horizontal pod autoscaler memory-hpa in namespace resource-scaling,kubectl describe hpa memory-hpa -n resource-scaling,Describing the Horizontal Pod Autoscaler memory-hpa in namespace resource-scaling
apply patch to service db-service in namespace data-zone,"kubectl patch service db-service --type='json' -p='[{""op"": ""replace"", ""path"": ""/spec/ports/0/port"", ""value"": 5432}]' -n data-zone",Applying a JSON patch to service db-service in namespace data-zone
delete all deployments with label 'app=temp' in namespace test-delete,kubectl delete deployment -l app=temp -n test-delete,Deleting all deployments with label 'app=temp' in namespace test-delete
get all nodes sorted by CPU usage,kubectl top node --sort-by=cpu,Listing nodes sorted by CPU usage
view configuration of service account cluster-admin-sa in namespace system-auth,kubectl get serviceaccount cluster-admin-sa -o yaml -n system-auth,Getting the YAML configuration of service account cluster-admin-sa in namespace system-auth
create a secret from environment variables in namespace env-secrets,kubectl create secret generic env-config --from-env-file=env-vars.txt -n env-secrets,Creating a generic secret from environment file in namespace env-secrets
delete the rolebinding view-role-binding in namespace viewer-access,kubectl delete rolebinding view-role-binding -n viewer-access,Deleting the rolebinding view-role-binding in namespace viewer-access
get all resource usages in namespace billing-system,kubectl top pod -n billing-system,Listing resource usage for pods in namespace billing-system
port-forward from local port 8080 to deployment frontend-deployment on port 80 in namespace presentation,kubectl port-forward deployment/frontend-deployment 8080:80 -n presentation,Port-forwarding local 8080 to deployment frontend-deployment 80 in namespace presentation
get pod events for pod app-pod-1 in namespace app-logs,"kubectl get events --field-selector involvedObject.name=app-pod-1,involvedObject.kind=Pod -n app-logs",Listing events related to pod app-pod-1 in namespace app-logs
label namespace production-new with 'environment=live',kubectl label namespace production-new environment=live,Labeling namespace production-new with 'environment=live'
delete all completed jobs in namespace finished-jobs,kubectl delete jobs --field-selector=status.successful=1 -n finished-jobs,Deleting all successful jobs in namespace finished-jobs
get preferred resource version of the cluster,kubectl api-versions,Listing all available API versions
get all services in namespace monitoring-alert,kubectl get svc -n monitoring-alert,Listing all services in the namespace monitoring-alert
describe pod webhook-injector in namespace admissions,kubectl describe pod webhook-injector -n admissions,Describing pod webhook-injector in namespace admissions
stream logs for pod db-connection-test in namespace diagnostics,kubectl logs -f db-connection-test -n diagnostics,Streaming logs for pod db-connection-test in namespace diagnostics
delete the ingress routing-table in namespace api-routes,kubectl delete ingress routing-table -n api-routes,Deleting the ingress routing-table from namespace api-routes
list all custom resource definitions (CRDs),kubectl get crd,Listing all Custom Resource Definitions
get all persistent volumes in specific label selector,kubectl get pv -l accessMode=ReadWriteOnce,Listing persistent volumes with label accessMode=ReadWriteOnce
list all replication controllers in all namespaces,kubectl get rc --all-namespaces,Listing all replication controllers in all namespaces
create a deployment named 'data-ingest' with image 'ingest:1.1' in namespace 'source-data',kubectl create deployment data-ingest --image=ingest:1.1 -n source-data,Creating a deployment named 'data-ingest' with image 'ingest:1.1' in namespace 'source-data'
scale deployment search-index to 7 replicas in namespace elastic,kubectl scale deployment search-index --replicas=7 -n elastic,Scaling deployment search-index to 7 replicas in namespace elastic
check the rollout history of daemonset log-shipper in namespace logging-system,kubectl rollout history daemonset log-shipper -n logging-system,Checking the rollout history of daemonset log-shipper in namespace logging-system
create a namespace named 'security-zone-a',kubectl create namespace security-zone-a,Creating a new namespace named 'security-zone-a'
delete the statefulset zookeeper-ss in namespace coordination,kubectl delete statefulset zookeeper-ss -n coordination,Deleting the statefulset zookeeper-ss from namespace coordination
get node kube-master-01 with detailed scheduling info,kubectl get node kube-master-01 -o jsonpath='{.spec.unschedulable}',Checking if node kube-master-01 is unschedulable
describe the persistent volume pvc-fast-io,kubectl describe pv pvc-fast-io,Describing the persistent volume pvc-fast-io
expose deployment worker-pool as NodePort on port 31000 in namespace computing,kubectl expose deployment worker-pool --type=NodePort --port=8080 --target-port=8080 -n computing,Exposing deployment worker-pool as a NodePort service in namespace computing
apply the configuration in file rbac-role.yaml to namespace security-policy,kubectl apply -f rbac-role.yaml -n security-policy,Applying the configuration in file rbac-role.yaml to namespace security-policy
get logs of the replicaset api-rs-v3 in namespace old-versions,kubectl logs replicaset/api-rs-v3 -n old-versions,Getting logs of the replicaset api-rs-v3 in namespace old-versions
get all pods that have the annotation 'maintenance=true' in namespace ops-tasks,kubectl get pods -n ops-tasks --field-selector=metadata.annotations['maintenance']=true,Listing all pods with annotation 'maintenance=true' in namespace ops-tasks
delete all horizontal pod autoscalers in namespace hpa-cleanup,kubectl delete hpa --all -n hpa-cleanup,Deleting all horizontal pod autoscalers in namespace hpa-cleanup
rollout status of statefulset etcd-cluster in namespace system-store,kubectl rollout status statefulset etcd-cluster -n system-store,Checking rollout status of statefulset etcd-cluster in namespace system-store
rollback statefulset cassandra-db to revision 1 in namespace nosql,kubectl rollout undo statefulset cassandra-db --to-revision=1 -n nosql,Rolling back statefulset cassandra-db to revision 1 in namespace nosql
list all resource quotas in namespace tenant-x,kubectl get resourcequotas -n tenant-x,Listing all resource quotas in namespace tenant-x
describe clusterrole edit-role,kubectl describe clusterrole edit-role,Describing clusterrole edit-role
edit the ingress global-ingress in namespace external,kubectl edit ingress global-ingress -n external,Editing the ingress global-ingress in namespace external
get events for namespace system-events,kubectl get events -n system-events,Listing all events in namespace system-events
cordon node worker-test-03,kubectl cordon worker-test-03,Marking node worker-test-03 as unschedulable
uncordon node worker-test-03,kubectl uncordon worker-test-03,Marking node worker-test-03 as schedulable
drain node worker-temp-04 for maintenance,kubectl drain worker-temp-04 --ignore-daemonsets --force,Evicting all pods from node worker-temp-04 (forced and ignoring daemonsets)
exec into container 'sidecar' of pod logger-pod in namespace aux-services,kubectl exec -it logger-pod -c sidecar -n aux-services -- /bin/bash,Executing a shell command inside container 'sidecar' of pod logger-pod in namespace aux-services
copy /tmp/test-results.log from pod ci-runner-pod to local in namespace ci-platform,kubectl cp ci-runner-pod:/tmp/test-results.log ./test-results.log -n ci-platform,Copying file test-results.log from pod ci-runner-pod to local path in namespace ci-platform
forward port 80 from service web-proxy to local 5000 in namespace proxy,kubectl port-forward service/web-proxy 5000:80 -n proxy,Forwarding port 80 on service web-proxy to local 5000 in namespace proxy
get network policies in namespace secure-app-a,kubectl get networkpolicies -n secure-app-a,Listing all network policies in namespace secure-app-a
describe rolebinding admin-binding in namespace team-admin,kubectl describe rolebinding admin-binding -n team-admin,Describing rolebinding admin-binding in namespace team-admin
delete all jobs in namespace completed-jobs,kubectl delete jobs --all -n completed-jobs,Deleting all jobs in namespace completed-jobs
get all pods in namespace dev-ops with their container images,"kubectl get pods -n dev-ops -o jsonpath='{range .items\[*\]}{.metadata.name}{""\\t""}{range .spec.containers\[*\]}{.image}{""\\t""}{end}{""\\n""}{end}'",Listing all pods and their container images in namespace dev-ops
check logs for pod db-sync-job for container 'worker' in namespace batch-sync,kubectl logs db-sync-job -c worker -n batch-sync,Getting logs for container 'worker' in pod db-sync-job in namespace batch-sync
create a configmap named 'settings-v2' from file config.properties in namespace app-config,kubectl create configmap settings-v2 --from-file=config.properties -n app-config,Creating a configmap from file config.properties in namespace app-config
what are the services in namespace data-layer,kubectl get services -n data-layer,Listing all services in the namespace data-layer
get all pods in namespace development-a,kubectl get pods -n development-a,Listing all pods in the namespace development-a
describe pod system-check-pod in namespace diagnostics-a,kubectl describe pod system-check-pod -n diagnostics-a,Describing pod system-check-pod in namespace diagnostics-a
stream logs for pod monitoring-daemon in namespace security-monitoring,kubectl logs -f monitoring-daemon -n security-monitoring,Streaming logs for pod monitoring-daemon in namespace security-monitoring
delete the configmap old-settings in namespace config-archive,kubectl delete configmap old-settings -n config-archive,Deleting the configmap old-settings from namespace config-archive
list all secrets in namespace image-pull,kubectl get secrets -n image-pull,Listing all secrets in namespace image-pull
get all horizontal pod autoscalers in namespace autoscaling-system,kubectl get hpa -n autoscaling-system,Listing all horizontal pod autoscalers in namespace autoscaling-system
list all daemonsets in all namespaces,kubectl get daemonsets --all-namespaces,Listing all daemonsets in all namespaces
create a deployment named 'cms-backend' with image 'cms:2.5' in namespace 'content-api',kubectl create deployment cms-backend --image=cms:2.5 -n content-api,Creating a deployment named 'cms-backend' with image 'cms:2.5' in namespace 'content-api'
scale statefulset elasticsearch-ss to 4 replicas in namespace search-cluster,kubectl scale statefulset elasticsearch-ss --replicas=4 -n search-cluster,Scaling statefulset elasticsearch-ss to 4 replicas in namespace search-cluster
check the rollout status of deployment processor-v1 in namespace worker-pool,kubectl rollout status deployment processor-v1 -n worker-pool,Checking the rollout status of deployment processor-v1 in namespace worker-pool
create a namespace named 'user-data-store',kubectl create namespace user-data-store,Creating a new namespace named 'user-data-store'
delete the deployment app-v1-old in namespace migration,kubectl delete deployment app-v1-old -n migration,Deleting the deployment app-v1-old from namespace migration
get all nodes sorted by memory usage,kubectl top node --sort-by=memory,Listing all nodes sorted by memory usage
describe the persistent volume claim shared-pvc in namespace shared-storage,kubectl describe pvc shared-pvc -n shared-storage,Describing the persistent volume claim shared-pvc in namespace shared-storage
expose deployment data-validator as ClusterIP on port 8081 in namespace validation,kubectl expose deployment data-validator --type=ClusterIP --port=8081 --target-port=8081 -n validation,Exposing deployment data-validator as a ClusterIP service in namespace validation
apply the configuration in file network-policy.yaml to namespace restricted,kubectl apply -f network-policy.yaml -n restricted,Applying the configuration in file network-policy.yaml to namespace restricted
get logs of the cronjob hourly-report in namespace reporting-jobs,kubectl logs cronjob/hourly-report -n reporting-jobs,Getting logs of the cronjob hourly-report in namespace reporting-jobs
get all pods that are pending in namespace failed-deployments,kubectl get pods -n failed-deployments --field-selector=status.phase=Pending,Listing all pods in the Pending phase in namespace failed-deployments
delete all services in namespace old-system-services,kubectl delete service --all -n old-system-services,Deleting all services in namespace old-system-services
rollout undo deployment auth-service to previous revision in namespace identity-service,kubectl rollout undo deployment auth-service -n identity-service,Rolling back deployment auth-service to previous revision in namespace identity-service
list all ingress controllers in namespace load-balancing,kubectl get ingress -n load-balancing,Listing all ingress resources in namespace load-balancing
describe configmap system-config-prod in namespace production-config-a,kubectl describe configmap system-config-prod -n production-config-a,Describing configmap system-config-prod in namespace production-config-a
edit the statefulset worker-statefulset in namespace workers,kubectl edit statefulset worker-statefulset -n workers,Editing the statefulset worker-statefulset in namespace workers
get events for persistent volume claim data-claim-01 in namespace data-volume,kubectl get events --field-selector involvedObject.name=data-claim-01 -n data-volume,Listing events related to persistent volume claim data-claim-01 in namespace data-volume
cordon node node-vm-05,kubectl cordon node-vm-05,Marking node node-vm-05 as unschedulable
uncordon node node-vm-05,kubectl uncordon node-vm-05,Marking node node-vm-05 as schedulable
drain node node-db-06 with timeout 60 seconds,kubectl drain node-db-06 --ignore-daemonsets --grace-period=60,Evicting all pods from node node-db-06 with a 60 second grace period
exec into the shell of container 'init' in pod api-setup-pod in namespace startup-tasks,kubectl exec -it api-setup-pod -c init -n startup-tasks -- /bin/bash,Executing a shell command inside container 'init' of pod api-setup-pod in namespace startup-tasks
copy local file settings.ini to pod config-loader-pod:/etc/app/settings.ini in namespace config-mgt,kubectl cp settings.ini config-loader-pod:/etc/app/settings.ini -n config-mgt,Copying local file settings.ini to pod config-loader-pod in namespace config-mgt
forward port 27017 from pod mongo-0 to local 9999 in namespace mongodb,kubectl port-forward mongo-0 9999:27017 -n mongodb,Forwarding port 27017 on pod mongo-0 to local 9999 in namespace mongodb
get resource quotas in namespace project-delta,kubectl get resourcequotas -n project-delta,Listing all resource quotas in namespace project-delta
describe clusterrolebinding view-all-binding,kubectl describe clusterrolebinding view-all-binding,Describing clusterrolebinding view-all-binding
delete all custom resource definitions (CRDs) with label 'group=old-api',kubectl delete crd -l group=old-api,Deleting all CRDs with label 'group=old-api'
get all pods in namespace dev-staging with labels and node name,kubectl get pods -n dev-staging --show-labels --field-selector spec.nodeName!=,Listing pods in namespace dev-staging showing labels and node names
check logs for pod log-generator for the last 15 minutes in namespace test-logs,kubectl logs log-generator --since=15m -n test-logs,Getting logs from the last 15 minutes for pod log-generator in namespace test-logs
create a rolebinding named 'reader-role' using role 'viewer' in namespace rbac-test,kubectl create rolebinding reader-role --role=viewer --user=test-user -n rbac-test,Creating a rolebinding in namespace rbac-test
what are the secrets in namespace data-access,kubectl get secrets -n data-access,Listing all secrets in the namespace data-access
get all pods in namespace monitoring-service,kubectl get pods -n monitoring-service,Listing all pods in the namespace monitoring-service
describe service loadbalancer-staging in namespace network-staging,kubectl describe service loadbalancer-staging -n network-staging,Describing service loadbalancer-staging in namespace network-staging
stream logs for pod db-migration-job in namespace data-jobs,kubectl logs -f db-migration-job -n data-jobs,Streaming logs for pod db-migration-job in namespace data-jobs
delete the deployment api-v1-old in namespace deprecated-api,kubectl delete deployment api-v1-old -n deprecated-api,Deleting the deployment api-v1-old from namespace deprecated-api
list all ingresses in namespace public-traffic,kubectl get ingress -n public-traffic,Listing all ingresses in namespace public-traffic
get all persistent volume claims in namespace volume-tests,kubectl get pvc -n volume-tests,Listing all persistent volume claims in namespace volume-tests
list all network policies in all namespaces,kubectl get networkpolicies --all-namespaces,Listing all network policies in all namespaces
create a deployment named 'frontend-v3' with image 'frontend:3.0' in namespace 'web-app-v3',kubectl create deployment frontend-v3 --image=frontend:3.0 -n web-app-v3,Creating a deployment named 'frontend-v3' with image 'frontend:3.0' in namespace 'web-app-v3'
scale deployment image-resizer to 6 replicas in namespace processing,kubectl scale deployment image-resizer --replicas=6 -n processing,Scaling deployment image-resizer to 6 replicas in namespace processing
check the rollout history of statefulset kafka-ss in namespace event-bus,kubectl rollout history statefulset kafka-ss -n event-bus,Checking the rollout history of statefulset kafka-ss in namespace event-bus
create a namespace named 'data-archive-temp',kubectl create namespace data-archive-temp,Creating a new namespace named 'data-archive-temp'
delete the daemonset node-exporter in namespace metrics-agent,kubectl delete daemonset node-exporter -n metrics-agent,Deleting the daemonset node-exporter from namespace metrics-agent
get all events in namespace api-events,kubectl get events -n api-events,Listing all events in namespace api-events
describe the horizontal pod autoscaler memory-scaler in namespace resource-mgt,kubectl describe hpa memory-scaler -n resource-mgt,Describing the Horizontal Pod Autoscaler memory-scaler in namespace resource-mgt
expose deployment reporting-tool as NodePort on port 30005 in namespace user-tools,kubectl expose deployment reporting-tool --type=NodePort --port=8080 --target-port=8080 -n user-tools,Exposing deployment reporting-tool as a NodePort service in namespace user-tools
apply the configuration in file service-patch.yaml to service old-service in namespace patch-test,kubectl apply -f service-patch.yaml -n patch-test,Applying the configuration in file service-patch.yaml to service old-service in namespace patch-test
get logs of the job cleanup-script in namespace daily-jobs,kubectl logs job/cleanup-script -n daily-jobs,Getting logs of the job cleanup-script in namespace daily-jobs
delete all pods with label 'status=failed' in namespace dev-cleanup,kubectl delete pods -l status=failed -n dev-cleanup,Deleting all pods with label 'status=failed' in namespace dev-cleanup
rollout status of daemonset system-monitor in namespace infra-monitoring,kubectl rollout status daemonset system-monitor -n infra-monitoring,Checking rollout status of daemonset system-monitor in namespace infra-monitoring
rollback deployment search-api to revision 2 in namespace search-v2,kubectl rollout undo deployment search-api --to-revision=2 -n search-v2,Rolling back deployment search-api to revision 2 in namespace search-v2
list all roles in namespace team-viewer,kubectl get roles -n team-viewer,Listing all roles in namespace team-viewer
describe secret token-secret-a in namespace sensitive-data,kubectl describe secret token-secret-a -n sensitive-data,Describing secret token-secret-a in namespace sensitive-data
edit the cronjob data-integrity-check in namespace data-ops,kubectl edit cronjob data-integrity-check -n data-ops,Editing the cronjob data-integrity-check in namespace data-ops
get events for deployment frontend-v2 in namespace web-front,kubectl get events --field-selector involvedObject.name=frontend-v2 -n web-front,Listing events related to deployment frontend-v2 in namespace web-front
cordon node node-storage-07,kubectl cordon node-storage-07,Marking node node-storage-07 as unschedulable
uncordon node node-storage-07,kubectl uncordon node-storage-07,Marking node node-storage-07 as schedulable
drain node node-compute-08 to empty it completely,kubectl drain node-compute-08 --ignore-daemonsets --force --delete-local-data,Evicting all pods from node node-compute-08 completely
exec into the shell of pod debug-tool-a in namespace troubleshooting-a,kubectl exec -it debug-tool-a -n troubleshooting-a -- /bin/zsh,Executing a zsh shell command inside pod debug-tool-a in namespace troubleshooting-a
copy local folder /config to pod web-app-pod:/etc/app/config in namespace app-config-a,kubectl cp /config web-app-pod:/etc/app/config -n app-config-a,Copying local folder /config to pod web-app-pod in namespace app-config-a
forward port 8080 from deployment backend-api to local 7000 in namespace api-dev,kubectl port-forward deployment/backend-api 7000:8080 -n api-dev,Forwarding port 8080 on deployment backend-api to local 7000 in namespace api-dev
get resource quotas in namespace project-epsilon,kubectl get resourcequotas -n project-epsilon,Listing all resource quotas in namespace project-epsilon
describe persistent volume disk-backup-04,kubectl describe pv disk-backup-04,Describing persistent volume disk-backup-04
delete all cronjobs in namespace cron-temp,kubectl delete cronjobs --all -n cron-temp,Deleting all cronjobs in namespace cron-temp
get all pods in namespace monitoring-tools with all labels,kubectl get pods -n monitoring-tools --show-labels,Listing all pods in namespace monitoring-tools showing all labels
check logs for pod db-health-check for previous run in namespace health-checks,kubectl logs db-health-check -p -n health-checks,Getting logs for the previous container run of pod db-health-check in namespace health-checks
create a service from file load-balancer.yaml in namespace public-facing-a,kubectl create -f load-balancer.yaml -n public-facing-a,Creating a service from file load-balancer.yaml in namespace public-facing-a
what are the persistent volume claims in namespace database-volumes,kubectl get pvc -n database-volumes,Listing all persistent volume claims in the namespace database-volumes
list all pods in namespace dev-backend-a,kubectl get pods -n dev-backend-a,Listing all pods in the namespace dev-backend-a
describe pod init-container-test in namespace startup-check,kubectl describe pod init-container-test -n startup-check,Describing pod init-container-test in namespace startup-check
stream logs for container 'main' in pod worker-pod-1 in namespace job-runners,kubectl logs -f worker-pod-1 -c main -n job-runners,Streaming logs for container 'main' in pod worker-pod-1 in namespace job-runners
delete the service metrics-aggregator in namespace monitoring-old,kubectl delete service metrics-aggregator -n monitoring-old,Deleting the service metrics-aggregator from namespace monitoring-old
list all configmaps in namespace runtime-config,kubectl get configmaps -n runtime-config,Listing all configmaps in namespace runtime-config
get all roles in namespace rbac-permissions,kubectl get roles -n rbac-permissions,Listing all roles in namespace rbac-permissions
list all daemonsets in namespace system-daemons,kubectl get daemonsets -n system-daemons,Listing all daemonsets in namespace system-daemons
create a deployment named 'auth-provider' with image 'auth-svc:1.2' in namespace 'auth-system',kubectl create deployment auth-provider --image=auth-svc:1.2 -n auth-system,Creating a deployment named 'auth-provider' with image 'auth-svc:1.2' in namespace 'auth-system'
scale deployment image-scanner to 2 replicas in namespace media-scan,kubectl scale deployment image-scanner --replicas=2 -n media-scan,Scaling deployment image-scanner to 2 replicas in namespace media-scan
check the rollout history of deployment customer-portal in namespace crm,kubectl rollout history deployment customer-portal -n crm,Checking the rollout history of deployment customer-portal in namespace crm
create a namespace named 'project-zeta',kubectl create namespace project-zeta,Creating a new namespace named 'project-zeta'
delete the job cleanup-old-data in namespace periodic-tasks,kubectl delete job cleanup-old-data -n periodic-tasks,Deleting the job cleanup-old-data from namespace periodic-tasks
get all nodes with the label 'region=europe',kubectl get nodes -l region=europe,Listing all nodes with the label 'region=europe'
describe the node kube-worker-10,kubectl describe node kube-worker-10,Describing the node kube-worker-10
list all persistent volume claims in namespace data-staging,kubectl get pvc -n data-staging,Listing all persistent volume claims in namespace data-staging
expose deployment notification-svc as LoadBalancer on port 443 in namespace communications,kubectl expose deployment notification-svc --type=LoadBalancer --port=443 --target-port=8443 -n communications,Exposing deployment notification-svc as a LoadBalancer service in namespace communications
apply the configuration in file hpa-web.yaml to namespace frontend-autoscaler,kubectl apply -f hpa-web.yaml -n frontend-autoscaler,Applying the configuration in file hpa-web.yaml to namespace frontend-autoscaler
get logs of the deployment analytics-engine in namespace reporting-platform,kubectl logs deployment/analytics-engine -n reporting-platform,Getting logs of the deployment analytics-engine in namespace reporting-platform
get all pods that have the label 'environment=development' in namespace dev-app-b,kubectl get pods -l environment=development -n dev-app-b,Listing all pods with label 'environment=development' in namespace dev-app-b
delete all ingresses in namespace staging-ingress,kubectl delete ingress --all -n staging-ingress,Deleting all ingresses in namespace staging-ingress
rollout status of statefulset file-server in namespace nfs,kubectl rollout status statefulset file-server -n nfs,Checking rollout status of statefulset file-server in namespace nfs
rollback daemonset metrics-collector to its previous revision in namespace infra-tools-b,kubectl rollout undo daemonset metrics-collector -n infra-tools-b,Rolling back daemonset metrics-collector to its previous revision in namespace infra-tools-b
list all horizontal pod autoscalers in namespace hpa-prod,kubectl get hpa -n hpa-prod,Listing all horizontal pod autoscalers in namespace hpa-prod
describe network policy restrict-all in namespace secure-zone-b,kubectl describe networkpolicy restrict-all -n secure-zone-b,Describing network policy restrict-all in namespace secure-zone-b
edit the service external-db-access in namespace external-access-b,kubectl edit service external-db-access -n external-access-b,Editing the service external-db-access in namespace external-access-b
get events for namespace system-audit-log,kubectl get events -n system-audit-log,Listing all events in namespace system-audit-log
cordon node worker-test-11,kubectl cordon worker-test-11,Marking node worker-test-11 as unschedulable
uncordon node worker-test-11,kubectl uncordon worker-test-11,Marking node worker-test-11 as schedulable
drain node worker-high-cpu-12,kubectl drain worker-high-cpu-12 --ignore-daemonsets --force,Evicting all pods from node worker-high-cpu-12 (forced and ignoring daemonsets)
exec into the shell of pod admin-cli-tool in namespace cli-tools,kubectl exec -it admin-cli-tool -n cli-tools -- /bin/bash,Executing a shell command inside pod admin-cli-tool in namespace cli-tools
copy file /var/log/app.log from pod log-reader-pod to local path in namespace log-collection,kubectl cp log-reader-pod:/var/log/app.log ./log-reader.log -n log-collection,Copying file /var/log/app.log from pod log-reader-pod to local path in namespace log-collection
forward port 6379 from statefulset redis-ss to local 6379 in namespace caching-b,kubectl port-forward statefulset/redis-ss 6379:6379 -n caching-b,Forwarding port 6379 on statefulset redis-ss to local 6379 in namespace caching-b
get resource quotas in namespace team-charlie,kubectl get resourcequotas -n team-charlie,Listing all resource quotas in namespace team-charlie
describe persistent volume claim pvc-shared-storage-a in namespace data-volumes-a,kubectl describe pvc pvc-shared-storage-a -n data-volumes-a,Describing persistent volume claim pvc-shared-storage-a in namespace data-volumes-a
delete all secrets in namespace dev-secrets-b,kubectl delete secrets --all -n dev-secrets-b,Deleting all secrets in namespace dev-secrets-b
get all service accounts in namespace access-control,kubectl get serviceaccounts -n access-control,Listing all service accounts in namespace access-control
check logs for pod data-transform-job for previous container run in namespace etl-jobs-b,kubectl logs data-transform-job -p -n etl-jobs-b,Getting logs for the previous container run of pod data-transform-job in namespace etl-jobs-b
create a deployment from file deployment-v3.yaml in namespace new-version,kubectl create -f deployment-v3.yaml -n new-version,Creating a deployment from file deployment-v3.yaml in namespace new-version
what are the running pods in namespace user-management-a,kubectl get pods -n user-management-a,Listing all running pods in the namespace user-management-a
get all events sorted by timestamp in namespace default,kubectl get events -n default --sort-by=.metadata.creationTimestamp,Listing all events in default sorted by creation time
describe pod system-backup-pod in namespace ops-backup,kubectl describe pod system-backup-pod -n ops-backup,Describing pod system-backup-pod in namespace ops-backup
stream logs for pod message-queue-pod in namespace queue-system-b,kubectl logs -f message-queue-pod -n queue-system-b,Streaming logs for pod message-queue-pod in namespace queue-system-b
delete the service internal-api-svc in namespace microservices-b,kubectl delete service internal-api-svc -n microservices-b,Deleting the service internal-api-svc from namespace microservices-b
list all configmaps in namespace app-configuration,kubectl get configmaps -n app-configuration,Listing all configmaps in namespace app-configuration
get all rolebindings in namespace rbac-bindings,kubectl get rolebindings -n rbac-bindings,Listing all rolebindings in namespace rbac-bindings
list all statefulsets in namespace database-ss-cluster,kubectl get statefulsets -n database-ss-cluster,Listing all statefulsets in namespace database-ss-cluster
create a daemonset named 'network-tool' with image 'net-util:1.0' in namespace 'network-tools-b',kubectl create daemonset network-tool --image=net-util:1.0 -n network-tools-b,Creating a daemonset named 'network-tool' with image 'net-util:1.0' in namespace 'network-tools-b'
scale deployment image-optimizer to 3 replicas in namespace content-optimization,kubectl scale deployment image-optimizer --replicas=3 -n content-optimization,Scaling deployment image-optimizer to 3 replicas in namespace content-optimization
check the rollout history of statefulset web-server-ss in namespace frontend-ss,kubectl rollout history statefulset web-server-ss -n frontend-ss,Checking the rollout history of statefulset web-server-ss in namespace frontend-ss
create a namespace named 'security-monitoring-temp',kubectl create namespace security-monitoring-temp,Creating a new namespace named 'security-monitoring-temp'
delete the deployment test-runner in namespace ci-cd-tests,kubectl delete deployment test-runner -n ci-cd-tests,Deleting the deployment test-runner from namespace ci-cd-tests
get node labels for node kube-worker-15,kubectl get node kube-worker-15 --show-labels,Listing labels for node kube-worker-15
describe the persistent volume pv-hot-data-02,kubectl describe pv pv-hot-data-02,Describing the persistent volume pv-hot-data-02
expose deployment file-manager as ClusterIP on port 9000 in namespace file-system-api,kubectl expose deployment file-manager --type=ClusterIP --port=9000 --target-port=9000 -n file-system-api,Exposing deployment file-manager as a ClusterIP service in namespace file-system-api
apply the configuration in file ingress-route.yaml to namespace external-routes,kubectl apply -f ingress-route.yaml -n external-routes,Applying the configuration in file ingress-route.yaml to namespace external-routes
get logs of the replicaset app-rs-v2 in namespace old-app-versions,kubectl logs replicaset/app-rs-v2 -n old-app-versions,Getting logs of the replicaset app-rs-v2 in namespace old-app-versions
get all pods that have the container image 'nginx:latest' in namespace web-latest,"kubectl get pods -n web-latest -o jsonpath='{range .items[?(@.spec.containers[0].image==""nginx:latest"")]}{.metadata.name}{""\n""}{end}'",Listing all pods with image 'nginx:latest' in namespace web-latest
delete all resource quotas in namespace quota-limits-old,kubectl delete resourcequotas --all -n quota-limits-old,Deleting all resource quotas in namespace quota-limits-old
rollout status of deployment backend-processor-b in namespace processing-b,kubectl rollout status deployment backend-processor-b -n processing-b,Checking rollout status of deployment backend-processor-b in namespace processing-b
rollback statefulset message-broker-ss to previous revision in namespace event-system,kubectl rollout undo statefulset message-broker-ss -n event-system,Rolling back statefulset message-broker-ss to previous revision in namespace event-system
list all secrets in namespace jwt-tokens,kubectl get secrets -n jwt-tokens,Listing all secrets in namespace jwt-tokens
describe horizontal pod autoscaler scale-web in namespace hpa-web-a,kubectl describe hpa scale-web -n hpa-web-a,Describing horizontal pod autoscaler scale-web in namespace hpa-web-a
edit the daemonset logging-daemon in namespace log-agents,kubectl edit daemonset logging-daemon -n log-agents,Editing the daemonset logging-daemon in namespace log-agents
get events for service ingress-gateway in namespace gateway-services,kubectl get events --field-selector involvedObject.name=ingress-gateway -n gateway-services,Listing events related to service ingress-gateway in namespace gateway-services
cordon node node-slow-io-13,kubectl cordon node-slow-io-13,Marking node node-slow-io-13 as unschedulable
uncordon node node-slow-io-13,kubectl uncordon node-slow-io-13,Marking node node-slow-io-13 as schedulable
drain node node-maintenance-14,kubectl drain node-maintenance-14 --ignore-daemonsets,Evicting all pods from node node-maintenance-14 (ignoring daemonsets)
exec into the shell of pod data-migration-tool in namespace database-ops,kubectl exec -it data-migration-tool -n database-ops -- /usr/bin/python,Executing a python command inside pod data-migration-tool in namespace database-ops
copy /etc/profile from pod shell-tester-pod:/etc/profile to local in namespace test-env,kubectl cp shell-tester-pod:/etc/profile ./remote-profile -n test-env,Copying file /etc/profile from pod shell-tester-pod to local path in namespace test-env
forward port 5432 from service postgres-read-only to local 5432 in namespace db-read,kubectl port-forward service/postgres-read-only 5432:5432 -n db-read,Forwarding port 5432 on service postgres-read-only to local 5432 in namespace db-read
get network policies in namespace api-restrictions,kubectl get netpol -n api-restrictions,Listing all network policies in namespace api-restrictions
describe role viewer-role in namespace access-roles,kubectl describe role viewer-role -n access-roles,Describing role viewer-role in namespace access-roles
delete all jobs in namespace batch-cleanup-b,kubectl delete jobs --all -n batch-cleanup-b,Deleting all jobs in namespace batch-cleanup-b
get current context and output in simple name format,kubectl config current-context -o name,Displaying the name of the current context
check logs for container 'debugger' in pod 'troubleshoot-pod-b' in namespace debug-env,kubectl logs troubleshoot-pod-b -c debugger -n debug-env,Getting logs for container 'debugger' in pod 'troubleshoot-pod-b' in namespace debug-env
create a service account named 'read-only-sa' in namespace rbac-sa-test,kubectl create serviceaccount read-only-sa -n rbac-sa-test,Creating a new service account 'read-only-sa' in namespace rbac-sa-test
what are the persistent volumes,kubectl get pv,Listing all persistent volumes
get all pods in namespace monitoring-alert-b,kubectl get pods -n monitoring-alert-b,Listing all pods in the namespace monitoring-alert-b
describe deployment api-gateway-v2 in namespace gateway-v2,kubectl describe deployment api-gateway-v2 -n gateway-v2,Describing deployment api-gateway-v2 in namespace gateway-v2
stream logs for pod db-maintenance-job in namespace ops-jobs,kubectl logs -f db-maintenance-job -n ops-jobs,Streaming logs for pod db-maintenance-job in namespace ops-jobs
delete the ingress admin-ingress in namespace admin-portal,kubectl delete ingress admin-ingress -n admin-portal,Deleting the ingress admin-ingress from namespace admin-portal
list all cronjobs in namespace scheduler-tasks,kubectl get cronjobs -n scheduler-tasks,Listing all cronjobs in namespace scheduler-tasks
get all persistent volume claims in namespace storage-pvc-b,kubectl get pvc -n storage-pvc-b,Listing all persistent volume claims in namespace storage-pvc-b
list all network policies in namespace default-restricted,kubectl get networkpolicies -n default-restricted,Listing all network policies in namespace default-restricted
get all pods in namespace qa-env-a,kubectl get pods -n qa-env-a,Listing all pods in the namespace qa-env-a
describe service web-app-svc in namespace frontend-app,kubectl describe service web-app-svc -n frontend-app,Describing service web-app-svc in namespace frontend-app
stream logs for container 'logger' in pod 'data-worker-1' in namespace batch-jobs,kubectl logs -f data-worker-1 -c logger -n batch-jobs,Streaming logs for container 'logger' in pod 'data-worker-1' in namespace batch-jobs
delete the configmap app-settings in namespace dev-config,kubectl delete configmap app-settings -n dev-config,Deleting the configmap app-settings from namespace dev-config
list all secrets in namespace image-registry,kubectl get secrets -n image-registry,Listing all secrets in namespace image-registry
get all statefulsets in namespace database-ss,kubectl get statefulsets -n database-ss,Listing all statefulsets in namespace database-ss
list all horizontal pod autoscalers in all namespaces,kubectl get hpa --all-namespaces,Listing all horizontal pod autoscalers in all namespaces
create a deployment named 'messaging-q' with image 'rabbit:3.9' in namespace 'mq-system',kubectl create deployment messaging-q --image=rabbit:3.9 -n mq-system,Creating a deployment named 'messaging-q' with image 'rabbit:3.9' in namespace 'mq-system'
scale statefulset cache-ss to 3 replicas in namespace caching-layer,kubectl scale statefulset cache-ss --replicas=3 -n caching-layer,Scaling statefulset cache-ss to 3 replicas in namespace caching-layer
check the rollout status of deployment user-api in namespace identity-mgt,kubectl rollout status deployment user-api -n identity-mgt,Checking the rollout status of deployment user-api in namespace identity-mgt
create a namespace named 'security-testing',kubectl create namespace security-testing,Creating a new namespace named 'security-testing'
delete the job cleanup-temp-files in namespace utility-scripts,kubectl delete job cleanup-temp-files -n utility-scripts,Deleting the job cleanup-temp-files from namespace utility-scripts
get node node-compute-02 with wide output,kubectl get node node-compute-02 -o wide,Listing node node-compute-02 with detailed information
describe persistent volume data-pv-05,kubectl describe pv data-pv-05,Describing persistent volume data-pv-05
list all persistent volume claims in namespace storage-test,kubectl get pvc -n storage-test,Listing all persistent volume claims in namespace storage-test
expose deployment metrics-aggregator as ClusterIP on port 9090 in namespace monitoring-a,kubectl expose deployment metrics-aggregator --type=ClusterIP --port=9090 -n monitoring-a,Exposing deployment metrics-aggregator as a ClusterIP service in namespace monitoring-a
apply the configuration in file pvc-template.yaml to namespace volume-defs,kubectl apply -f pvc-template.yaml -n volume-defs,Applying the configuration in file pvc-template.yaml to namespace volume-defs
get logs of the replicaset api-rs-v4 in namespace staging-api,kubectl logs replicaset/api-rs-v4 -n staging-api,Getting logs of the replicaset api-rs-v4 in namespace staging-api
get all pods that have the label 'component=db' in namespace data-services,kubectl get pods -l component=db -n data-services,Listing all pods with label 'component=db' in namespace data-services
delete all ingresses in namespace retired-traffic,kubectl delete ingress --all -n retired-traffic,Deleting all ingresses in namespace retired-traffic
rollout undo statefulset worker-statefulset to revision 2 in namespace job-runners-a,kubectl rollout undo statefulset worker-statefulset --to-revision=2 -n job-runners-a,Rolling back statefulset worker-statefulset to revision 2 in namespace job-runners-a
list all roles in namespace rbac-admin,kubectl get roles -n rbac-admin,Listing all roles in namespace rbac-admin
describe secret aws-creds in namespace cloud-config,kubectl describe secret aws-creds -n cloud-config,Describing secret aws-creds in namespace cloud-config
edit the ingress external-facing-ing in namespace public-access,kubectl edit ingress external-facing-ing -n public-access,Editing the ingress external-facing-ing in namespace public-access
get events for namespace system-diag,kubectl get events -n system-diag,Listing all events in namespace system-diag
cordon node node-vm-06,kubectl cordon node-vm-06,Marking node node-vm-06 as unschedulable
uncordon node node-vm-06,kubectl uncordon node-vm-06,Marking node node-vm-06 as schedulable
drain node node-fast-disk-07,kubectl drain node-fast-disk-07 --ignore-daemonsets --force,Evicting all pods from node node-fast-disk-07 (forced and ignoring daemonsets)
exec a python script inside pod python-script-runner in namespace automation-b,kubectl exec -it python-script-runner -n automation-b -- python script.py,Executing a python script inside pod python-script-runner in namespace automation-b
copy local file backup.tar.gz to pod data-backup-pod:/tmp/backup.tar.gz in namespace backup-jobs,kubectl cp backup.tar.gz data-backup-pod:/tmp/backup.tar.gz -n backup-jobs,Copying local file backup.tar.gz to pod data-backup-pod in namespace backup-jobs
forward port 80 to deployment frontend-v2 on port 8080 in namespace web-v2,kubectl port-forward deployment/frontend-v2 80:8080 -n web-v2,Forwarding port 80 on deployment frontend-v2 to local 8080 in namespace web-v2
get network policies in namespace database-security,kubectl get netpol -n database-security,Listing all network policies in namespace database-security
describe clusterrolebinding view-nodes-binding,kubectl describe clusterrolebinding view-nodes-binding,Describing clusterrolebinding view-nodes-binding
delete all services in namespace temp-services,kubectl delete service --all -n temp-services,Deleting all services in namespace temp-services
get all pods in namespace dev-ops-b with specific container status,"kubectl get pods -n dev-ops-b -o jsonpath='{range .items[*]}{.metadata.name}{""\t""}{.status.containerStatuses[0].ready}{""\n""}{end}'",Listing all pods in namespace dev-ops-b with readiness status of first container
check logs for pod file-cleanup-pod for the previous run in namespace utility-cleanup,kubectl logs file-cleanup-pod -p -n utility-cleanup,Getting logs for the previous container run of pod file-cleanup-pod in namespace utility-cleanup
create a configmap named 'runtime-vars' from literal values in namespace app-env-b,kubectl create configmap runtime-vars --from-literal=MAX_THREADS=20 --from-literal=LOG_LEVEL=INFO -n app-env-b,Creating a configmap from literal key-value pairs in namespace app-env-b
what are the deployments in namespace new-features,kubectl get deployments -n new-features,Listing all deployments in the namespace new-features
list all pods in namespace team-alpha-b,kubectl get pods -n team-alpha-b,Listing all pods in the namespace team-alpha-b
describe pod init-setup-pod in namespace initial-config,kubectl describe pod init-setup-pod -n initial-config,Describing pod init-setup-pod in namespace initial-config
stream logs for container 'filebeat' in pod 'log-daemon-2' in namespace log-system,kubectl logs -f log-daemon-2 -c filebeat -n log-system,Streaming logs for container 'filebeat' in pod 'log-daemon-2' in namespace log-system
delete the statefulset old-version-ss in namespace deprecated-storage,kubectl delete statefulset old-version-ss -n deprecated-storage,Deleting the statefulset old-version-ss from namespace deprecated-storage
list all secrets in namespace authentication-tokens,kubectl get secrets -n authentication-tokens,Listing all secrets in namespace authentication-tokens
get all cronjobs in namespace scheduled-jobs-b,kubectl get cronjobs -n scheduled-jobs-b,Listing all cronjobs in namespace scheduled-jobs-b
list all services in namespace default-services,kubectl get services -n default-services,Listing all services in namespace default-services
create a deployment named 'processing-engine' with image 'processor:4.0' in namespace 'data-pipeline-b',kubectl create deployment processing-engine --image=processor:4.0 -n data-pipeline-b,Creating a deployment named 'processing-engine' with image 'processor:4.0' in namespace 'data-pipeline-b'
scale deployment report-generator to 1 replica in namespace reporting-b,kubectl scale deployment report-generator --replicas=1 -n reporting-b,Scaling deployment report-generator to 1 replica in namespace reporting-b
check the rollout status of daemonset node-monitor in namespace system-monitoring-b,kubectl rollout status daemonset node-monitor -n system-monitoring-b,Checking the rollout status of daemonset node-monitor in namespace system-monitoring-b
create a namespace named 'qa-integration',kubectl create namespace qa-integration,Creating a new namespace named 'qa-integration'
delete the service external-db-endpoint in namespace external-access-c,kubectl delete service external-db-endpoint -n external-access-c,Deleting the service external-db-endpoint from namespace external-access-c
get all nodes with specific label 'disk-type=ssd',kubectl get nodes -l disk-type=ssd,Listing all nodes with the label 'disk-type=ssd'
describe persistent volume claim pvc-temp-storage in namespace ephemeral-b,kubectl describe pvc pvc-temp-storage -n ephemeral-b,Describing persistent volume claim pvc-temp-storage in namespace ephemeral-b
expose deployment web-portal as NodePort on port 32000 in namespace public-facing-b,kubectl expose deployment web-portal --type=NodePort --port=80 --target-port=8080 -n public-facing-b,Exposing deployment web-portal as a NodePort service in namespace public-facing-b
apply the configuration in file secret-def.yaml to namespace secret-store-b,kubectl apply -f secret-def.yaml -n secret-store-b,Applying the configuration in file secret-def.yaml to namespace secret-store-b
get logs of the deployment api-service-b in namespace prod-api-b,kubectl logs deployment/api-service-b -n prod-api-b,Getting logs of the deployment api-service-b in namespace prod-api-b
get all pods that are in the Terminating state in namespace cleanup-ns-b,kubectl get pods -n cleanup-ns-b --field-selector=status.phase=Terminating,Listing all pods in the Terminating state in namespace cleanup-ns-b
delete all configmaps in namespace old-configs-b,kubectl delete configmaps --all -n old-configs-b,Deleting all configmaps in namespace old-configs-b
rollout undo deployment report-svc to previous revision in namespace analytics-b,kubectl rollout undo deployment report-svc -n analytics-b,Rolling back deployment report-svc to previous revision in namespace analytics-b
list all horizontal pod autoscalers in namespace scale-test-b,kubectl get hpa -n scale-test-b,Listing all horizontal pod autoscalers in namespace scale-test-b
describe ingress default-ingress in namespace networking-b,kubectl describe ingress default-ingress -n networking-b,Describing ingress default-ingress in namespace networking-b
edit the deployment backend-v1 in namespace dev-backend-b,kubectl edit deployment backend-v1 -n dev-backend-b,Editing the deployment backend-v1 in namespace dev-backend-b
get events for pod failed-pod-b in namespace troubleshooting-b,kubectl get events --field-selector involvedObject.name=failed-pod-b -n troubleshooting-b,Listing events related to pod failed-pod-b in namespace troubleshooting-b
cordon node node-vm-08,kubectl cordon node-vm-08,Marking node node-vm-08 as unschedulable
uncordon node node-vm-08,kubectl uncordon node-vm-08,Marking node node-vm-08 as schedulable
drain node node-low-mem-09,kubectl drain node-low-mem-09 --ignore-daemonsets,Evicting all pods from node node-low-mem-09 (ignoring daemonsets)
exec into the shell of container 'database' in pod 'db-debug-pod' in namespace db-tools,kubectl exec -it db-debug-pod -c database -n db-tools -- /bin/bash,Executing a shell command inside container 'database' of pod 'db-debug-pod' in namespace db-tools
copy file /tmp/logs.txt from pod log-aggregator-pod to local in namespace log-collection-b,kubectl cp log-aggregator-pod:/tmp/logs.txt ./logs.txt -n log-collection-b,Copying file logs.txt from pod log-aggregator-pod to local path in namespace log-collection-b
forward port 8080 from pod metrics-api-b to local 9091 in namespace monitoring-b,kubectl port-forward metrics-api-b 9091:8080 -n monitoring-b,Forwarding port 8080 on pod metrics-api-b to local 9091 in namespace monitoring-b
get resource quotas in namespace project-gamma-b,kubectl get resourcequotas -n project-gamma-b,Listing all resource quotas in namespace project-gamma-b
describe persistent volume claim data-pvc-03 in namespace vol-test-b,kubectl describe pvc data-pvc-03 -n vol-test-b,Describing persistent volume claim data-pvc-03 in namespace vol-test-b
delete all secrets in namespace temporary-storage-secrets,kubectl delete secrets --all -n temporary-storage-secrets,Deleting all secrets in namespace temporary-storage-secrets
get all service accounts in namespace user-management,kubectl get serviceaccounts -n user-management,Listing all service accounts in namespace user-management
check logs for pod data-loader-pod for container 'sidecar-auth' in namespace data-loader,kubectl logs data-loader-pod -c sidecar-auth -n data-loader,Getting logs for container 'sidecar-auth' in pod 'data-loader-pod' in namespace data-loader
create a service from file nodeport-svc.yaml in namespace external-access-d,kubectl create -f nodeport-svc.yaml -n external-access-d,Creating a service from file nodeport-svc.yaml in namespace external-access-d
what are the services in namespace legacy-system,kubectl get services -n legacy-system,Listing all services in the namespace legacy-system
get all endpoints in namespace api-endpoints-b,kubectl get endpoints -n api-endpoints-b,Listing all endpoints in namespace api-endpoints-b
delete job old-backup-job in namespace archival-b,kubectl delete job old-backup-job -n archival-b,Deleting job old-backup-job from namespace archival-b
list all clusterrolebindings in YAML format,kubectl get clusterrolebindings -o yaml,Listing all clusterrolebindings in YAML format
describe daemonset fluentd-logger in namespace log-collection-c,kubectl describe daemonset fluentd-logger -n log-collection-c,Describing daemonset fluentd-logger in namespace log-collection-c
set image for deployment file-processor to version 3 in namespace data-processing-b,kubectl set image deployment/file-processor processor=image:v3 -n data-processing-b,Setting image for deployment file-processor to version 3 in namespace data-processing-b
check health of all deployments in namespace staging-b,kubectl get deployments -o wide -n staging-b,Listing deployments with additional details in namespace staging-b
view logs for pod cleanup-utility-b in namespace scheduled-jobs-c,kubectl logs cleanup-utility-b -n scheduled-jobs-c,Viewing logs for pod cleanup-utility-b in namespace scheduled-jobs-c
delete the namespace old-project-b,kubectl delete namespace old-project-b,Deleting the namespace old-project-b
get YAML for secret tls-cert in namespace prod-secrets,kubectl get secret tls-cert -o yaml -n prod-secrets,Getting YAML manifest for secret tls-cert in namespace prod-secrets
show all resource labels for pod web-frontend-3 in namespace web-app-b,kubectl get pod web-frontend-3 -o jsonpath='{.metadata.labels}' -n web-app-b,Listing all labels for pod web-frontend-3 in namespace web-app-b
get all pods and configmaps in namespace system-tools-b,"kubectl get all,configmaps -n system-tools-b",Listing all standard resources and configmaps in namespace system-tools-b
uncordon node node-db-10,kubectl uncordon node-db-10,Marking node node-db-10 as schedulable
label deployment api-v1 with 'status=stable' in namespace production-b,kubectl label deployment api-v1 status=stable -n production-b,Labeling deployment api-v1 with 'status=stable' in namespace production-b
show metrics for all running pods in namespace load-test,kubectl top pod -n load-test,Displaying CPU and memory usage for pods in namespace load-test
force delete pod stuck-init-pod immediately in namespace cleanup-ns-c,kubectl delete pod stuck-init-pod --force --grace-period=0 -n cleanup-ns-c,Force deleting pod stuck-init-pod immediately in namespace cleanup-ns-c
get logs for the last 30 minutes of deployment backend-v3 in namespace prod-v3,kubectl logs deployment/backend-v3 --since=30m -n prod-v3,Getting logs from the last 30 minutes for deployment backend-v3 in namespace prod-v3
roll out restart statefulset rabbitmq-ss in namespace mq-system-b,kubectl rollout restart statefulset rabbitmq-ss -n mq-system-b,Restarting statefulset rabbitmq-ss in namespace mq-system-b
check resource usage of all nodes in wide format,kubectl top node -o wide,Displaying CPU and memory usage for nodes with wide output
expose statefulset redis-cluster as LoadBalancer in namespace caching-b,kubectl expose statefulset redis-cluster --type=LoadBalancer --port=6379 -n caching-b,Exposing statefulset redis-cluster as a LoadBalancer service in namespace caching-b
apply the configuration in file update-hpa.yaml to namespace scaling-b,kubectl apply -f update-hpa.yaml -n scaling-b,Applying the configuration in file update-hpa.yaml to namespace scaling-b
check if the secret jwt-key exists in namespace auth-b,kubectl get secret jwt-key -n auth-b,Checking the existence of secret jwt-key in namespace auth-b
delete all rolebindings in namespace rbac-cleanup-b,kubectl delete rolebindings --all -n rbac-cleanup-b,Deleting all rolebindings in namespace rbac-cleanup-b
edit the cronjob hourly-sync in namespace data-sync,kubectl edit cronjob hourly-sync -n data-sync,Editing the cronjob hourly-sync in namespace data-sync
view the definition of service account jenkins-sa in namespace ci-cd-b,kubectl get serviceaccount jenkins-sa -o yaml -n ci-cd-b,Viewing the YAML definition of service account jenkins-sa in namespace ci-cd-b
scale deployment old-frontend to 0 replicas in namespace archival-web,kubectl scale deployment old-frontend --replicas=0 -n archival-web,Scaling deployment old-frontend to 0 replicas in namespace archival-web
attach to the running container in pod shell-access-2 in namespace utility-b,kubectl attach shell-access-2 -n utility-b,Attaching to the main container in pod shell-access-2 in namespace utility-b
copy local file settings.yml to pod config-pod:/etc/app/config.yml in namespace app-config-b,kubectl cp settings.yml config-pod:/etc/app/config.yml -n app-config-b,Copying local file settings.yml to pod config-pod in namespace app-config-b
get all users defined in kubeconfig,kubectl config view -o jsonpath='{.users[*].name}',Displaying all user names from kubeconfig
switch to user 'test-dev-user' in the current context,kubectl config set-context --current --user=test-dev-user,Setting the user for the current context to 'test-dev-user'
get all pods that have restart count greater than 5 in namespace error-check,kubectl get pods -n error-check --field-selector=status.containerStatuses[0].restartCount>5,Listing pods with high restart counts in namespace error-check
debug container main-c in pod debug-app-02 in namespace dev-debug-b,kubectl exec -it debug-app-02 -c main-c -n dev-debug-b -- /bin/sh,Starting a shell session in container main-c of pod debug-app-02 in namespace dev-debug-b
show node events for node kube-worker-16,kubectl describe node kube-worker-16,Describing node kube-worker-16 to show recent events
get raw output of a service named loadbalancer-prod-b in namespace network-prod-b,kubectl get service loadbalancer-prod-b -n network-prod-b --raw /api/v1/namespaces/network-prod-b/services/loadbalancer-prod-b,Fetching raw service data in namespace network-prod-b
list all roles in namespace team-viewer-b,kubectl get roles -n team-viewer-b,Listing all roles in namespace team-viewer-b
delete persistent volume claim temp-pvc-b in namespace ephemeral-c,kubectl delete pvc temp-pvc-b -n ephemeral-c,Deleting persistent volume claim temp-pvc-b in namespace ephemeral-c
view the rollout history of deployment checkout-svc in namespace shopping-cart-b,kubectl rollout history deployment checkout-svc -n shopping-cart-b,Checking rollout history of deployment checkout-svc in namespace shopping-cart-b
rollout undo daemonset log-collector-b to the previous version in namespace monitoring-system-b,kubectl rollout undo daemonset log-collector-b -n monitoring-system-b,Rolling back daemonset log-collector-b to previous version in namespace monitoring-system-b
show node labels for node kube-worker-17,kubectl get node kube-worker-17 --show-labels,Displaying labels for node kube-worker-17
apply label 'tier=backend' to all deployments in namespace app-deploy-b,kubectl label deployment --all tier=backend -n app-deploy-b,Labeling all deployments in namespace app-deploy-b with 'tier=backend'
list all cronjobs in namespace scheduled-tasks-b,kubectl get cronjobs -n scheduled-tasks-b,Listing all cronjobs in namespace scheduled-tasks-b
delete cronjob daily-report-job in namespace reporting-c,kubectl delete cronjob daily-report-job -n reporting-c,Deleting cronjob daily-report-job in namespace reporting-c
get services in namespace development-b in YAML format,kubectl get services -n development-b -o yaml,Listing services in namespace development-b as YAML output
get the external IP of ingress api-ingress-b in namespace api-gw-b,kubectl get ingress api-ingress-b -o jsonpath='{.status.loadBalancer.ingress[0].ip}' -n api-gw-b,Getting the external IP for ingress api-ingress-b in namespace api-gw-b
create a new clusterrolebinding 'pod-viewer-binding' for user 'dev-user',kubectl create clusterrolebinding pod-viewer-binding --clusterrole=pod-reader --user=dev-user,Creating a new clusterrolebinding for user 'dev-user' to view pods
apply the latest changes from service-update.yaml to namespace service-updates,kubectl apply -f service-update.yaml -n service-updates,Applying configuration from service-update.yaml to namespace service-updates
scale statefulset kafka-ss to 5 replicas in namespace event-system-c,kubectl scale statefulset kafka-ss --replicas=5 -n event-system-c,Scaling statefulset kafka-ss to 5 replicas in namespace event-system-c
delete all secrets in namespace old-tokens,kubectl delete secrets --all -n old-tokens,Deleting all secrets in namespace old-tokens
get all pods in namespace metrics-server-b sorted by status phase,kubectl get pods -n metrics-server-b --sort-by=.status.phase,Listing pods in metrics-server-b sorted by status phase
list all network policies in namespace secure-app-c,kubectl get netpol -n secure-app-c,Listing all network policies in namespace secure-app-c
describe the service internal-api-svc in namespace internal-traffic,kubectl describe svc internal-api-svc -n internal-traffic,Describing the service internal-api-svc in namespace internal-traffic
get component status,kubectl get cs,Listing the status of core cluster components
check logs for pod data-ingest-b for container 'reader' in namespace data-source,kubectl logs data-ingest-b -c reader -n data-source,Getting logs for container 'reader' in pod data-ingest-b in namespace data-source
delete all pods labeled 'temporary=true' in namespace sandbox-b,kubectl delete pod -l temporary=true -n sandbox-b,Deleting all pods with label 'temporary=true' in namespace sandbox-b
"set resource limits for deployment web-app-v3 to cpu=100m, memory=128Mi in namespace web-v3","kubectl set resources deployment/web-app-v3 --limits=cpu=100m,memory=128Mi -n web-v3",Setting resource limits for deployment web-app-v3 in namespace web-v3
view details of the 'staging' context,kubectl config get-contexts staging,Displaying details of the 'staging' context
get configmap nginx-conf in namespace default-config-b with wide output,kubectl get configmap nginx-conf -o wide -n default-config-b,Listing configmap nginx-conf with wide output in namespace default-config-b
delete all successful jobs in namespace finished-jobs-b,kubectl delete jobs --field-selector=status.successful=1 -n finished-jobs-b,Deleting all successful jobs in namespace finished-jobs-b
check logs for pod streaming-data-pod with timestamps in namespace real-time-b,kubectl logs streaming-data-pod --timestamps -n real-time-b,Getting logs with timestamps for pod streaming-data-pod in namespace real-time-b
create a pod using the image 'alpine/git' for utility in namespace utility-c,kubectl run git-util --image=alpine/git --rm -it --restart=Never -n utility-c -- /bin/sh,Creating a temporary pod for git utility in namespace utility-c
list all resource quotas in namespace project-delta-b,kubectl get resourcequotas -n project-delta-b,Listing all resource quotas in namespace project-delta-b
describe persistent volume claim pvc-db-fast in namespace db-volumes,kubectl describe pvc pvc-db-fast -n db-volumes,Describing persistent volume claim pvc-db-fast in namespace db-volumes
list all endpoints in namespace system-services-b,kubectl get endpoints -n system-services-b,Listing all endpoints in namespace system-services-b
edit the ingress auth-ingress in namespace identity-b,kubectl edit ingress auth-ingress -n identity-b,Editing the ingress auth-ingress in namespace identity-b
get raw output of service account default in namespace default-sa,kubectl get serviceaccount default -n default-sa --raw /api/v1/namespaces/default-sa/serviceaccounts/default,Getting raw API output of service account default in namespace default-sa
check the status of rollout for deployment worker-app-v2 in namespace worker-pool-b,kubectl rollout status deployment worker-app-v2 -n worker-pool-b,Checking rollout status for deployment worker-app-v2 in namespace worker-pool-b
pause deployment api-gateway-b in namespace gateway-b,kubectl rollout pause deployment api-gateway-b -n gateway-b,Pausing deployment api-gateway-b in namespace gateway-b
resume deployment api-gateway-b in namespace gateway-b,kubectl rollout resume deployment api-gateway-b -n gateway-b,Resuming deployment api-gateway-b in namespace gateway-b
get all pods that have less than 1 ready container in namespace not-ready,kubectl get pods -n not-ready --field-selector=status.containerStatuses[0].ready=false,Listing pods where the first container is not ready in namespace not-ready
delete all resources labeled 'project=temp' in namespace cleanup-project,kubectl delete all -l project=temp -n cleanup-project,Deleting all resources with label 'project=temp' in namespace cleanup-project
get all network policies in namespace db-access-restricted,kubectl get networkpolicies -n db-access-restricted,Listing all network policies in namespace db-access-restricted
describe the clusterrole admin-role-b,kubectl describe clusterrole admin-role-b,Describing the clusterrole admin-role-b
apply patch to statefulset database-ss-b in namespace db-ss-b,"kubectl patch statefulset database-ss-b --type='json' -p='[{""op"": ""replace"", ""path"": ""/spec/template/spec/containers/0/image"", ""value"": ""db-image:v2""}]' -n db-ss-b",Applying a JSON patch to statefulset database-ss-b in namespace db-ss-b
delete all cronjobs in namespace old-schedule-b,kubectl delete cronjobs --all -n old-schedule-b,Deleting all cronjobs in namespace old-schedule-b
get all pods in namespace api-zone-b sorted by creation timestamp,kubectl get pods -n api-zone-b --sort-by=.metadata.creationTimestamp,Listing pods in namespace api-zone-b sorted by creation timestamp
view configuration of pod security-scanner-pod in namespace security-scan,kubectl get pod security-scanner-pod -o yaml -n security-scan,Getting the YAML configuration of pod security-scanner-pod in namespace security-scan
create a secret from file jwt-key.txt in namespace auth-secrets-b,kubectl create secret generic jwt-secret --from-file=jwt-key.txt -n auth-secrets-b,Creating a generic secret from file jwt-key.txt in namespace auth-secrets-b
delete the service account old-sa in namespace retired-sa,kubectl delete serviceaccount old-sa -n retired-sa,Deleting the service account old-sa in namespace retired-sa
get resource usages for all pods in namespace reporting-d,kubectl top pod -n reporting-d,Listing resource usage for pods in namespace reporting-d
port-forward from local port 9000 to service web-svc on port 8080 in namespace frontend-b,kubectl port-forward service/web-svc 9000:8080 -n frontend-b,Port-forwarding local 9000 to service web-svc 8080 in namespace frontend-b
get events for replicaset deployment-rs-abc in namespace deployment-rs-test,"kubectl get events --field-selector involvedObject.name=deployment-rs-abc,involvedObject.kind=ReplicaSet -n deployment-rs-test",Listing events related to replicaset deployment-rs-abc in namespace deployment-rs-test
label namespace staging-c with 'zone=east',kubectl label namespace staging-c zone=east,Labeling namespace staging-c with 'zone=east'
delete all pods in namespace temp-dev-c with status Running,kubectl delete pod --field-selector=status.phase=Running -n temp-dev-c,Deleting all running pods in namespace temp-dev-c
get server address and API version,kubectl cluster-info,Displaying the cluster master address and basic service info
list all nodes sorted by CPU usage,kubectl top node --sort-by=cpu,Listing all nodes sorted by CPU usage
describe pod system-daemon-c in namespace system-ops-b,kubectl describe pod system-daemon-c -n system-ops-b,Describing pod system-daemon-c in namespace system-ops-b
stream logs for container 'init-db' in pod 'db-initializer' in namespace db-setup,kubectl logs -f db-initializer -c init-db -n db-setup,Streaming logs for container 'init-db' in pod 'db-initializer' in namespace db-setup
delete the horizontal pod autoscaler frontend-hpa-b in namespace scale-hpa,kubectl delete hpa frontend-hpa-b -n scale-hpa,Deleting the horizontal pod autoscaler frontend-hpa-b from namespace scale-hpa
list all network policies in namespace restricted-b,kubectl get netpol -n restricted-b,Listing all network policies in namespace restricted-b
get all persistent volumes released,kubectl get pv --field-selector=status.phase=Released,Listing all released persistent volumes
list all jobs in namespace batch-runners,kubectl get jobs -n batch-runners,Listing all jobs in namespace batch-runners
create a statefulset named 'storage-ss' with image 'storage:1.0' in namespace 'data-storage-b',kubectl create statefulset storage-ss --image=storage:1.0 -n data-storage-b,Creating a statefulset named 'storage-ss' with image 'storage:1.0' in namespace 'data-storage-b'
scale deployment user-interface to 5 replicas in namespace portal-v2,kubectl scale deployment user-interface --replicas=5 -n portal-v2,Scaling deployment user-interface to 5 replicas in namespace portal-v2
check the rollout history of daemonset log-agent-b in namespace log-collection-d,kubectl rollout history daemonset log-agent-b -n log-collection-d,Checking the rollout history of daemonset log-agent-b in namespace log-collection-d
create a namespace named 'demo-environment-a',kubectl create namespace demo-environment-a,Creating a new namespace named 'demo-environment-a'
delete the service external-load-balancer in namespace public-facing-c,kubectl delete service external-load-balancer -n public-facing-c,Deleting the service external-load-balancer from namespace public-facing-c
get all nodes with a specific taints,kubectl describe nodes,Describing all nodes to see their taints
describe persistent volume pvc-temp-logs in namespace logging-storage,kubectl describe pvc pvc-temp-logs -n logging-storage,Describing persistent volume claim pvc-temp-logs in namespace logging-storage
expose deployment image-processor as ClusterIP on port 8000 in namespace image-processing,kubectl expose deployment image-processor --type=ClusterIP --port=8000 -n image-processing,Exposing deployment image-processor as a ClusterIP service in namespace image-processing
apply the configuration in file hpa-config-b.yaml to namespace scaling-config,kubectl apply -f hpa-config-b.yaml -n scaling-config,Applying the configuration in file hpa-config-b.yaml to namespace scaling-config
get logs of the cronjob hourly-cleanup in namespace automated-jobs,kubectl logs cronjob/hourly-cleanup -n automated-jobs,Getting logs of the cronjob hourly-cleanup in namespace automated-jobs
get all pods that have the label 'app.kubernetes.io/name=nginx' in namespace web-v1,kubectl get pods -l app.kubernetes.io/name=nginx -n web-v1,Listing all pods with label 'app.kubernetes.io/name=nginx' in namespace web-v1
delete all secrets in namespace dev-tokens-c,kubectl delete secrets --all -n dev-tokens-c,Deleting all secrets in namespace dev-tokens-c
rollout status of statefulset etcd-cluster-b in namespace system-store-b,kubectl rollout status statefulset etcd-cluster-b -n system-store-b,Checking rollout status of statefulset etcd-cluster-b in namespace system-store-b
rollback deployment search-engine-v1 to revision 1 in namespace search-v1,kubectl rollout undo deployment search-engine-v1 --to-revision=1 -n search-v1,Rolling back deployment search-engine-v1 to revision 1 in namespace search-v1
list all resource quotas in namespace project-epsilon-b,kubectl get resourcequotas -n project-epsilon-b,Listing all resource quotas in namespace project-epsilon-b
describe configmap global-settings-b in namespace app-config-c,kubectl describe configmap global-settings-b -n app-config-c,Describing configmap global-settings-b in namespace app-config-c
edit the service redis-slave in namespace caching-c,kubectl edit service redis-slave -n caching-c,Editing the service redis-slave in namespace caching-c
get events for persistent volume claim pvc-shared-b in namespace shared-volumes,kubectl get events --field-selector involvedObject.name=pvc-shared-b -n shared-volumes,Listing events related to persistent volume claim pvc-shared-b in namespace shared-volumes
cordon node node-vm-11,kubectl cordon node-vm-11,Marking node node-vm-11 as unschedulable
uncordon node node-vm-11,kubectl uncordon node-vm-11,Marking node node-vm-11 as schedulable
drain node node-fast-cpu-12,kubectl drain node-fast-cpu-12 --ignore-daemonsets --delete-local-data,Evicting all pods from node node-fast-cpu-12 (ignoring daemonsets and deleting local data)
exec into the shell of container 'sidecar' in pod 'monitoring-tool' in namespace debug-tools-c,kubectl exec -it monitoring-tool -c sidecar -n debug-tools-c -- /bin/bash,Executing a shell command inside container 'sidecar' of pod 'monitoring-tool' in namespace debug-tools-c
copy file /var/log/messages from pod logger-daemon:/var/log/messages to local in namespace log-collection-e,kubectl cp logger-daemon:/var/log/messages ./remote-messages.log -n log-collection-e,Copying file /var/log/messages from pod logger-daemon to local path in namespace log-collection-e
forward port 9200 from statefulset elasticsearch-ss-b to local 9200 in namespace search-cluster-b,kubectl port-forward statefulset/elasticsearch-ss-b 9200:9200 -n search-cluster-b,Forwarding port 9200 on statefulset elasticsearch-ss-b to local 9200 in namespace search-cluster-b
get network policies in namespace finance-restricted-b,kubectl get networkpolicies -n finance-restricted-b,Listing all network policies in namespace finance-restricted-b
describe rolebinding view-logs-binding in namespace logging-access,kubectl describe rolebinding view-logs-binding -n logging-access,Describing rolebinding view-logs-binding in namespace logging-access
delete all services labeled 'owner=team-b' in namespace dev-cleanup-b,kubectl delete service -l owner=team-b -n dev-cleanup-b,Deleting all services with label 'owner=team-b' in namespace dev-cleanup-b
get all pods in namespace metrics-system sorted by name,kubectl get pods -n metrics-system --sort-by=.metadata.name,Listing pods in namespace metrics-system sorted by name
check logs for pod data-backup-pod-b for previous run in namespace backup-archive,kubectl logs data-backup-pod-b -p -n backup-archive,Getting logs for the previous container run of pod data-backup-pod-b in namespace backup-archive
create a service account named 'monitor-sa' in namespace monitoring-sa,kubectl create serviceaccount monitor-sa -n monitoring-sa,Creating a new service account 'monitor-sa' in namespace monitoring-sa
what are the deployments in namespace continuous-delivery,kubectl get deployments -n continuous-delivery,Listing all deployments in the namespace continuous-delivery
list all pods in namespace internal-tools-c,kubectl get pods -n internal-tools-c,Listing all pods in the namespace internal-tools-c
describe service proxy-cache-svc in namespace caching-proxy,kubectl describe service proxy-cache-svc -n caching-proxy,Describing service proxy-cache-svc in namespace caching-proxy
stream logs for pod db-connector-pod in namespace data-connect,kubectl logs -f db-connector-pod -n data-connect,Streaming logs for pod db-connector-pod in namespace data-connect
delete the deployment api-service-old in namespace deprecated-apps,kubectl delete deployment api-service-old -n deprecated-apps,Deleting the deployment api-service-old from namespace deprecated-apps
list all horizontal pod autoscalers in namespace autoscaling-v2,kubectl get hpa -n autoscaling-v2,Listing all horizontal pod autoscalers in namespace autoscaling-v2
get all persistent volume claims in namespace database-pvc-c,kubectl get pvc -n database-pvc-c,Listing all persistent volume claims in namespace database-pvc-c
list all resource quotas in namespace team-delta-c,kubectl get resourcequotas -n team-delta-c,Listing all resource quotas in namespace team-delta-c
create a deployment named 'analytics-reporter' with image 'reporter:1.5' in namespace 'reporting-d',kubectl create deployment analytics-reporter --image=reporter:1.5 -n reporting-d,Creating a deployment named 'analytics-reporter' with image 'reporter:1.5' in namespace 'reporting-d'
scale daemonset system-daemon-d to 1 replica in namespace infra-agents,kubectl scale daemonset system-daemon-d --replicas=1 -n infra-agents,Scaling daemonset system-daemon-d to 1 replica in namespace infra-agents
check the rollout history of deployment customer-data-api in namespace crm-api,kubectl rollout history deployment customer-data-api -n crm-api,Checking the rollout history of deployment customer-data-api in namespace crm-api
create a namespace named 'temporary-testing-b',kubectl create namespace temporary-testing-b,Creating a new namespace named 'temporary-testing-b'
delete the cronjob hourly-check in namespace monitoring-jobs,kubectl delete cronjob hourly-check -n monitoring-jobs,Deleting the cronjob hourly-check from namespace monitoring-jobs
get all nodes that are schedulable,kubectl get nodes --field-selector=spec.unschedulable=false,Listing all schedulable nodes
describe the service account runner-sa in namespace ci-runners,kubectl describe serviceaccount runner-sa -n ci-runners,Describing the service account runner-sa in namespace ci-runners
expose deployment data-viewer as NodePort on port 31080 in namespace internal-tools-d,kubectl expose deployment data-viewer --type=NodePort --port=8080 --target-port=8080 -n internal-tools-d,Exposing deployment data-viewer as a NodePort service in namespace internal-tools-d
apply the configuration in file rolebinding-viewer.yaml to namespace rbac-viewer,kubectl apply -f rolebinding-viewer.yaml -n rbac-viewer,Applying the configuration in file rolebinding-viewer.yaml to namespace rbac-viewer
get logs of the replicaset web-rs-v1 in namespace web-old,kubectl logs replicaset/web-rs-v1 -n web-old,Getting logs of the replicaset web-rs-v1 in namespace web-old
get all pods that have a volume named 'data-volume' in namespace volume-users,"kubectl get pods -n volume-users -o jsonpath='{range .items[?(@.spec.volumes[*].name==""data-volume"")]}{.metadata.name}{""\n""}{end}'",Listing all pods with a volume named 'data-volume' in namespace volume-users
delete all jobs in namespace batch-cleanup-c,kubectl delete jobs --all -n batch-cleanup-c,Deleting all jobs in namespace batch-cleanup-c
rollout status of deployment payment-processor-b in namespace billing-b,kubectl rollout status deployment payment-processor-b -n billing-b,Checking rollout status of deployment payment-processor-b in namespace billing-b
rollback deployment log-shipper to previous revision in namespace logging-agents,kubectl rollout undo deployment log-shipper -n logging-agents,Rolling back deployment log-shipper to previous revision in namespace logging-agents
list all network policies in namespace api-restrictions-b,kubectl get networkpolicies -n api-restrictions-b,Listing all network policies in namespace api-restrictions-b
describe ingress admin-ui-ingress in namespace internal-portal,kubectl describe ingress admin-ui-ingress -n internal-portal,Describing ingress admin-ui-ingress in namespace internal-portal
edit the horizontal pod autoscaler memory-scaler-b in namespace resource-mgt-b,kubectl edit hpa memory-scaler-b -n resource-mgt-b,Editing the horizontal pod autoscaler memory-scaler-b in namespace resource-mgt-b
get events for cronjob nightly-backup-b in namespace backup-schedule,kubectl get events --field-selector involvedObject.name=nightly-backup-b -n backup-schedule,Listing events related to cronjob nightly-backup-b in namespace backup-schedule
cordon node node-vm-14,kubectl cordon node-vm-14,Marking node node-vm-14 as unschedulable
uncordon node node-vm-14,kubectl uncordon node-vm-14,Marking node node-vm-14 as schedulable
drain node node-storage-15 for node replacement,kubectl drain node-storage-15 --ignore-daemonsets --force,Evicting all pods from node node-storage-15 (forced and ignoring daemonsets)
exec a shell command inside pod remote-tester-pod in namespace network-test-c,kubectl exec -it remote-tester-pod -n network-test-c -- nc -vz 10.0.0.1 80,Executing a network check inside pod remote-tester-pod in namespace network-test-c
copy file /data/config.json from pod config-server:/data/config.json to local in namespace config-mgt-c,kubectl cp config-server:/data/config.json ./config.json -n config-mgt-c,Copying file /data/config.json from pod config-server to local path in namespace config-mgt-c
forward port 80 to deployment portal-frontend on local 8081 in namespace public-portal,kubectl port-forward deployment/portal-frontend 8081:80 -n public-portal,Forwarding port 80 on deployment portal-frontend to local 8081 in namespace public-portal
get resource quotas in namespace project-zeta-b,kubectl get resourcequotas -n project-zeta-b,Listing all resource quotas in namespace project-zeta-b
describe persistent volume pv-archive-05,kubectl describe pv pv-archive-05,Describing persistent volume pv-archive-05
delete all roles in namespace rbac-cleanup-c,kubectl delete roles --all -n rbac-cleanup-c,Deleting all roles in namespace rbac-cleanup-c
get all pods in namespace monitoring-alerts-c with wide output,kubectl get pods -n monitoring-alerts-c -o wide,Listing all pods in namespace monitoring-alerts-c with wide output
check logs for pod db-connector-b for container 'reader' in namespace data-connect-b,kubectl logs db-connector-b -c reader -n data-connect-b,Getting logs for container 'reader' in pod db-connector-b in namespace data-connect-b
create a configmap named 'api-endpoints' from literal values in namespace api-config-c,kubectl create configmap api-endpoints --from-literal=users=URL/users --from-literal=products=URL/products -n api-config-c,Creating a configmap from literal key-value pairs in namespace api-config-c
what are the services in namespace legacy-api,kubectl get services -n legacy-api,Listing all services in the namespace legacy-api
list all pods in namespace dev-backend-c,kubectl get pods -n dev-backend-c,Listing all pods in the namespace dev-backend-c
describe pod webhook-handler in namespace admissions-b,kubectl describe pod webhook-handler -n admissions-b,Describing pod webhook-handler in namespace admissions-b
stream logs for pod db-migration-runner in namespace data-migration,kubectl logs -f db-migration-runner -n data-migration,Streaming logs for pod db-migration-runner in namespace data-migration
delete the deployment test-deploy-b in namespace qa-env-b,kubectl delete deployment test-deploy-b -n qa-env-b,Deleting the deployment test-deploy-b from namespace qa-env-b
list all network policies in namespace secure-zone-c,kubectl get networkpolicies -n secure-zone-c,Listing all network policies in namespace secure-zone-c
get all persistent volume claims in namespace storage-test-c,kubectl get pvc -n storage-test-c,Listing all persistent volume claims in namespace storage-test-c
list all resource quotas in all namespaces,kubectl get resourcequotas --all-namespaces,Listing all resource quotas in all namespaces
create a deployment named 'payment-svc' with image 'payment:2.0' in namespace 'billing-v2',kubectl create deployment payment-svc --image=payment:2.0 -n billing-v2,Creating a deployment named 'payment-svc' with image 'payment:2.0' in namespace 'billing-v2'
scale statefulset zookeeper-ss-b to 3 replicas in namespace coordination-b,kubectl scale statefulset zookeeper-ss-b --replicas=3 -n coordination-b,Scaling statefulset zookeeper-ss-b to 3 replicas in namespace coordination-b
check the rollout history of daemonset metrics-collector-c in namespace monitoring-agents-c,kubectl rollout history daemonset metrics-collector-c -n monitoring-agents-c,Checking the rollout history of daemonset metrics-collector-c in namespace monitoring-agents-c
create a namespace named 'infra-system-b',kubectl create namespace infra-system-b,Creating a new namespace named 'infra-system-b'
delete the service metrics-endpoint in namespace monitoring-endpoints,kubectl delete service metrics-endpoint -n monitoring-endpoints,Deleting the service metrics-endpoint from namespace monitoring-endpoints
get all nodes that are ready,"kubectl get nodes --field-selector=status.conditions[].type=Ready,status.conditions[].status=True",Listing all ready nodes
describe the persistent volume pv-data-fast-03,kubectl describe pv pv-data-fast-03,Describing the persistent volume pv-data-fast-03
expose deployment user-auth-svc as ClusterIP on port 8080 in namespace identity-mgt-b,kubectl expose deployment user-auth-svc --type=ClusterIP --port=8080 -n identity-mgt-b,Exposing deployment user-auth-svc as a ClusterIP service in namespace identity-mgt-b
apply the configuration in file secret-tls.yaml to namespace tls-secrets,kubectl apply -f secret-tls.yaml -n tls-secrets,Applying the configuration in file secret-tls.yaml to namespace tls-secrets
get logs of the deployment data-ingest-c in namespace data-source-c,kubectl logs deployment/data-ingest-c -n data-source-c,Getting logs of the deployment data-ingest-c in namespace data-source-c
get all pods that have the label 'env=production' in namespace prod-env-c,kubectl get pods -l env=production -n prod-env-c,Listing all pods with label 'env=production' in namespace prod-env-c
delete all service accounts in namespace old-sas,kubectl delete serviceaccounts --all -n old-sas,Deleting all service accounts in namespace old-sas
rollout status of daemonset log-shipper-b in namespace logging-system-b,kubectl rollout status daemonset log-shipper-b -n logging-system-b,Checking rollout status of daemonset log-shipper-b in namespace logging-system-b
rollback statefulset caching-ss to previous revision in namespace cache-layer-c,kubectl rollout undo statefulset caching-ss -n cache-layer-c,Rolling back statefulset caching-ss to previous revision in namespace cache-layer-c
list all clusterroles,kubectl get clusterroles,Listing all clusterroles
describe horizontal pod autoscaler scale-worker in namespace worker-scaling,kubectl describe hpa scale-worker -n worker-scaling,Describing horizontal pod autoscaler scale-worker in namespace worker-scaling
edit the configmap application-config-d in namespace app-config-d,kubectl edit configmap application-config-d -n app-config-d,Editing the configmap application-config-d in namespace app-config-d
get events for service api-external in namespace public-api,kubectl get events --field-selector involvedObject.name=api-external -n public-api,Listing events related to service api-external in namespace public-api
cordon node node-vm-16,kubectl cordon node-vm-16,Marking node node-vm-16 as unschedulable
uncordon node node-vm-16,kubectl uncordon node-vm-16,Marking node node-vm-16 as schedulable
drain node node-high-mem-17,kubectl drain node-high-mem-17 --ignore-daemonsets,Evicting all pods from node node-high-mem-17 (ignoring daemonsets)
exec into the shell of container 'cli' in pod 'tool-pod-c' in namespace debug-tools-d,kubectl exec -it tool-pod-c -c cli -n debug-tools-d -- /bin/zsh,Executing a zsh shell command inside container 'cli' of pod 'tool-pod-c' in namespace debug-tools-d
copy local folder /assets to pod web-app-pod-c:/var/www/html/assets in namespace web-files,kubectl cp /assets web-app-pod-c:/var/www/html/assets -n web-files,Copying local folder /assets to pod web-app-pod-c in namespace web-files
forward port 3306 from deployment mysql-deployment to local 3307 in namespace db-prod,kubectl port-forward deployment/mysql-deployment 3307:3306 -n db-prod,Forwarding port 3306 on deployment mysql-deployment to local 3307 in namespace db-prod
get resource quotas in namespace project-eta,kubectl get resourcequotas -n project-eta,Listing all resource quotas in namespace project-eta
describe persistent volume claim pvc-temp-logs-d in namespace logging-storage-d,kubectl describe pvc pvc-temp-logs-d -n logging-storage-d,Describing persistent volume claim pvc-temp-logs-d in namespace logging-storage-d
delete all resource quotas in namespace quota-cleanup-b,kubectl delete resourcequotas --all -n quota-cleanup-b,Deleting all resource quotas in namespace quota-cleanup-b
get all pods in namespace web-v1 sorted by memory usage,kubectl top pod --sort-by=memory -n web-v1,Listing pods in namespace web-v1 sorted by memory usage
check logs for pod file-sync-daemon for the last 5 minutes in namespace data-sync-b,kubectl logs file-sync-daemon --since=5m -n data-sync-b,Getting logs from the last 5 minutes for pod file-sync-daemon in namespace data-sync-b
create a rolebinding named 'admin-access' using clusterrole 'cluster-admin' in namespace security-admin,kubectl create rolebinding admin-access --clusterrole=cluster-admin --user=dev-admin -n security-admin,Creating a rolebinding in namespace security-admin for cluster-admin access
what are the secrets in namespace api-keys,kubectl get secrets -n api-keys,Listing all secrets in the namespace api-keys
list all pods in namespace monitoring-service-d,kubectl get pods -n monitoring-service-d,Listing all pods in the namespace monitoring-service-d
describe service load-balancer-prod-d in namespace network-prod-d,kubectl describe service load-balancer-prod-d -n network-prod-d,Describing service load-balancer-prod-d in namespace network-prod-d
stream logs for container 'receiver' in pod 'data-input-pod' in namespace data-streams,kubectl logs -f data-input-pod -c receiver -n data-streams,Streaming logs for container 'receiver' in pod 'data-input-pod' in namespace data-streams
delete the daemonset old-log-collector in namespace log-archive,kubectl delete daemonset old-log-collector -n log-archive,Deleting the daemonset old-log-collector from namespace log-archive
list all ingresses in namespace public-traffic-d,kubectl get ingress -n public-traffic-d,Listing all ingresses in namespace public-traffic-d
get all jobs in all namespaces,kubectl get jobs --all-namespaces,Listing all jobs in all namespaces
list all deployments in namespace application-v1,kubectl get deployments -n application-v1,Listing all deployments in the namespace application-v1
scale statefulset kafka-broker-c to 1 replica in namespace event-bus-d,kubectl scale statefulset kafka-broker-c --replicas=1 -n event-bus-d,Scaling statefulset kafka-broker-c to 1 replica in namespace event-bus-d
check the rollout status of deployment processor-v2 in namespace worker-pool-c,kubectl rollout status deployment processor-v2 -n worker-pool-c,Checking the rollout status of deployment processor-v2 in namespace worker-pool-c
create a namespace named 'prod-v3-release',kubectl create namespace prod-v3-release,Creating a new namespace named 'prod-v3-release'
delete the statefulset zookeeper-ss-c in namespace coordination-c,kubectl delete statefulset zookeeper-ss-c -n coordination-c,Deleting the statefulset zookeeper-ss-c from namespace coordination-c
get all node taints,kubectl describe nodes,Describing all nodes to check taints
describe the persistent volume claim pvc-shared-c in namespace shared-storage-c,kubectl describe pvc pvc-shared-c -n shared-storage-c,Describing the persistent volume claim pvc-shared-c in namespace shared-storage-c
expose deployment reporting-tool-b as LoadBalancer on port 80 in namespace analytics-reports,kubectl expose deployment reporting-tool-b --type=LoadBalancer --port=80 --target-port=8080 -n analytics-reports,Exposing deployment reporting-tool-b as a LoadBalancer service in namespace analytics-reports
apply the configuration in file network-policy-b.yaml to namespace secure-app-d,kubectl apply -f network-policy-b.yaml -n secure-app-d,Applying the configuration in file network-policy-b.yaml to namespace secure-app-d
get logs of the deployment analytics-engine-b in namespace reporting-platform-b,kubectl logs deployment/analytics-engine-b -n reporting-platform-b,Getting logs of the deployment analytics-engine-b in namespace reporting-platform-b
get all pods that have container status 'ImagePullBackOff' in namespace image-issue,"kubectl get pods -n image-issue -o jsonpath='{range .items[?(@.status.containerStatuses[*].state.waiting.reason==""ImagePullBackOff"")]}{.metadata.name}{""\n""}{end}'",Listing all pods with ImagePullBackOff status in namespace image-issue
delete all horizontal pod autoscalers in namespace hpa-cleanup-c,kubectl delete hpa --all -n hpa-cleanup-c,Deleting all horizontal pod autoscalers in namespace hpa-cleanup-c
rollout status of deployment backend-v4 in namespace prod-v4,kubectl rollout status deployment backend-v4 -n prod-v4,Checking rollout status of deployment backend-v4 in namespace prod-v4
rollback daemonset system-monitor-c to previous revision in namespace infra-monitoring-c,kubectl rollout undo daemonset system-monitor-c -n infra-monitoring-c,Rolling back daemonset system-monitor-c to previous revision in namespace infra-monitoring-c
list all secrets in namespace db-credentials-c,kubectl get secrets -n db-credentials-c,Listing all secrets in namespace db-credentials-c
describe ingress web-portal-ingress in namespace public-web-c,kubectl describe ingress web-portal-ingress -n public-web-c,Describing ingress web-portal-ingress in namespace public-web-c
edit the clusterrolebinding cluster-reader-binding,kubectl edit clusterrolebinding cluster-reader-binding,Editing the clusterrolebinding cluster-reader-binding
get events for namespace security-audit-c,kubectl get events -n security-audit-c,Listing all events in namespace security-audit-c
cordon node node-vm-18,kubectl cordon node-vm-18,Marking node node-vm-18 as unschedulable
uncordon node node-vm-18,kubectl uncordon node-vm-18,Marking node node-vm-18 as schedulable
drain node node-gpu-19,kubectl drain node-gpu-19 --ignore-daemonsets --delete-local-data,Evicting all pods from node node-gpu-19 (ignoring daemonsets and deleting local data)
exec a debug session inside pod api-pod-d in namespace gateway-d,kubectl exec -it api-pod-d -n gateway-d -- /bin/bash,Executing a shell command inside pod api-pod-d in namespace gateway-d
copy local file app.zip to pod app-installer:/tmp/app.zip in namespace installation,kubectl cp app.zip app-installer:/tmp/app.zip -n installation,Copying local file app.zip to pod app-installer in namespace installation
forward port 443 from service tls-service to local 443 in namespace secure-traffic,kubectl port-forward service/tls-service 443:443 -n secure-traffic,Forwarding port 443 on service tls-service to local 443 in namespace secure-traffic
get network policies in namespace default-lockdown,kubectl get netpol -n default-lockdown,Listing all network policies in namespace default-lockdown
describe persistent volume pv-temp-06,kubectl describe pv pv-temp-06,Describing persistent volume pv-temp-06
delete all configmaps in namespace temp-config-d,kubectl delete configmaps --all -n temp-config-d,Deleting all configmaps in namespace temp-config-d
get all service accounts in namespace operations-c,kubectl get serviceaccounts -n operations-c,Listing all service accounts in namespace operations-c
check logs for pod data-worker-pod for previous run in namespace batch-c,kubectl logs data-worker-pod -p -n batch-c,Getting logs for the previous container run of pod data-worker-pod in namespace batch-c
create a service from file clusterip-svc-b.yaml in namespace internal-services-b,kubectl create -f clusterip-svc-b.yaml -n internal-services-b,Creating a service from file clusterip-svc-b.yaml in namespace internal-services-b
what are the services in namespace monitoring-tools-d,kubectl get services -n monitoring-tools-d,Listing all services in the namespace monitoring-tools-d
list all pods in namespace dev-backend-d,kubectl get pods -n dev-backend-d,Listing all pods in the namespace dev-backend-d
describe pod readiness-probe-test in namespace health-check-b,kubectl describe pod readiness-probe-test -n health-check-b,Describing pod readiness-probe-test in namespace health-check-b
stream logs for container 'audit' in pod 'security-logger' in namespace audit-system,kubectl logs -f security-logger -c audit -n audit-system,Streaming logs for container 'audit' in pod 'security-logger' in namespace audit-system
delete the service web-app-old in namespace deprecated-web,kubectl delete service web-app-old -n deprecated-web,Deleting the service web-app-old from namespace deprecated-web
list all configmaps in namespace runtime-config-d,kubectl get configmaps -n runtime-config-d,Listing all configmaps in namespace runtime-config-d
get all daemonsets in namespace system-agents-d,kubectl get daemonsets -n system-agents-d,Listing all daemonsets in namespace system-agents-d
list all deployments in namespace application-v2,kubectl get deployments -n application-v2,Listing all deployments in the namespace application-v2
scale statefulset data-store-ss to 2 replicas in namespace data-persistence,kubectl scale statefulset data-store-ss --replicas=2 -n data-persistence,Scaling statefulset data-store-ss to 2 replicas in namespace data-persistence
check the rollout history of deployment customer-portal-b in namespace crm-b,kubectl rollout history deployment customer-portal-b -n crm-b,Checking the rollout history of deployment customer-portal-b in namespace crm-b
create a namespace named 'sandbox-env-c',kubectl create namespace sandbox-env-c,Creating a new namespace named 'sandbox-env-c'
delete the job one-time-task in namespace ephemeral-jobs,kubectl delete job one-time-task -n ephemeral-jobs,Deleting the job one-time-task from namespace ephemeral-jobs
get node node-compute-20 with labels,kubectl get node node-compute-20 --show-labels,Listing node node-compute-20 with labels
describe persistent volume claim pvc-shared-d in namespace shared-storage-d,kubectl describe pvc pvc-shared-d -n shared-storage-d,Describing persistent volume claim pvc-shared-d in namespace shared-storage-d
expose deployment api-service-d as NodePort on port 31001 in namespace internal-api-d,kubectl expose deployment api-service-d --type=NodePort --port=8080 --target-port=8080 -n internal-api-d,Exposing deployment api-service-d as a NodePort service in namespace internal-api-d
apply the configuration in file hpa-web-c.yaml to namespace frontend-autoscaler-c,kubectl apply -f hpa-web-c.yaml -n frontend-autoscaler-c,Applying the configuration in file hpa-web-c.yaml to namespace frontend-autoscaler-c
get logs of the replicaset backend-rs-v2 in namespace api-versions-v2,kubectl logs replicaset/backend-rs-v2 -n api-versions-v2,Getting logs of the replicaset backend-rs-v2 in namespace api-versions-v2
get all pods that have less than 2 available replicas in namespace replica-check,"kubectl get deployments -n replica-check -o jsonpath='{range .items[*]}{.metadata.name}{""\t""}{.status.availableReplicas}{""\n""}{end}'",Listing all deployments and their available replicas in namespace replica-check
delete all secrets in namespace legacy-secrets-d,kubectl delete secrets --all -n legacy-secrets-d,Deleting all secrets in namespace legacy-secrets-d
rollout status of statefulset redis-cluster-d in namespace caching-d,kubectl rollout status statefulset redis-cluster-d -n caching-d,Checking rollout status of statefulset redis-cluster-d in namespace caching-d
rollback deployment image-processor-old to previous revision in namespace media-archive,kubectl rollout undo deployment image-processor-old -n media-archive,Rolling back deployment image-processor-old to previous revision in namespace media-archive
list all horizontal pod autoscalers in namespace hpa-dev-d,kubectl get hpa -n hpa-dev-d,Listing all horizontal pod autoscalers in namespace hpa-dev-d
describe network policy internal-only in namespace protected-zone,kubectl describe networkpolicy internal-only -n protected-zone,Describing network policy internal-only in namespace protected-zone
edit the service external-svc-d in namespace public-access-d,kubectl edit service external-svc-d -n public-access-d,Editing the service external-svc-d in namespace public-access-d
get events for namespace audit-logs-d,kubectl get events -n audit-logs-d,Listing all events in namespace audit-logs-d
cordon node node-vm-21,kubectl cordon node-vm-21,Marking node node-vm-21 as unschedulable
uncordon node node-vm-21,kubectl uncordon node-vm-21,Marking node node-vm-21 as schedulable
drain node node-test-22,kubectl drain node-test-22 --ignore-daemonsets --grace-period=30,Evicting all pods from node node-test-22 with a 30 second grace period
exec into the shell of pod db-cli-pod in namespace database-tools-c,kubectl exec -it db-cli-pod -n database-tools-c -- mysql -u user -p,Executing a mysql client command inside pod db-cli-pod in namespace database-tools-c
copy file /etc/hosts from pod dns-resolver:/etc/hosts to local in namespace network-debug-d,kubectl cp dns-resolver:/etc/hosts ./remote-hosts -n network-debug-d,Copying file /etc/hosts from pod dns-resolver to local path in namespace network-debug-d
forward port 80 to service web-svc-d on local 8082 in namespace frontend-d,kubectl port-forward service/web-svc-d 8082:80 -n frontend-d,Forwarding port 80 on service web-svc-d to local 8082 in namespace frontend-d
get resource quotas in namespace project-theta,kubectl get resourcequotas -n project-theta,Listing all resource quotas in namespace project-theta
describe persistent volume claim pvc-archived-data in namespace long-term-storage,kubectl describe pvc pvc-archived-data -n long-term-storage,Describing persistent volume claim pvc-archived-data in namespace long-term-storage
delete all ingresses in namespace staging-ingress-d,kubectl delete ingress --all -n staging-ingress-d,Deleting all ingresses in namespace staging-ingress-d
get all pods in namespace api-zone-d with pod IP,"kubectl get pods -n api-zone-d -o jsonpath='{range .items[*]}{.metadata.name}{""\t""}{.status.podIP}{""\n""}{end}'",Listing all pods in namespace api-zone-d with their IP addresses
check logs for pod data-aggregator for previous container run in namespace reporting-etl,kubectl logs data-aggregator -p -n reporting-etl,Getting logs for the previous container run of pod data-aggregator in namespace reporting-etl
create a service account named 'api-reader' in namespace api-access-c,kubectl create serviceaccount api-reader -n api-access-c,Creating a new service account 'api-reader' in namespace api-access-c
what are the deployments in namespace crm-v2,kubectl get deployments -n crm-v2,Listing all deployments in the namespace crm-v2
list all pods in namespace dev-env-e,kubectl get pods -n dev-env-e,Listing all pods in the namespace dev-env-e
describe pod liveness-probe-test in namespace health-check-c,kubectl describe pod liveness-probe-test -n health-check-c,Describing pod liveness-probe-test in namespace health-check-c
stream logs for pod db-backup-runner in namespace backup-jobs-d,kubectl logs -f db-backup-runner -n backup-jobs-d,Streaming logs for pod db-backup-runner in namespace backup-jobs-d
delete the daemonset log-collector-d in namespace monitoring-agents-d,kubectl delete daemonset log-collector-d -n monitoring-agents-d,Deleting the daemonset log-collector-d from namespace monitoring-agents-d