kubectl create
: Create a Kubernetes resource from a file or from standard input.
kubectl apply
: Apply changes to a Kubernetes resource using a configuration file.
kubectl get
: Display information about Kubernetes resources, such as pods, services, and deployments.
kubectl describe
: Show detailed information about a specific Kubernetes resource.
kubectl delete
: Delete a Kubernetes resource, such as a pod or deployment.
kubectl logs
: Display the logs of a container running in a pod.
kubectl exec
: Execute a command inside a container running in a pod.
kubectl port-forward
: Forward network traffic from a local port to a port on a Kubernetes pod.
kubectl scale
: Increase or decrease the number of replicas for a deployment.
kubectl rollout
: Roll out a new version of a deployment.
kubectl label
: Add or remove labels from a Kubernetes resource.
kubectl annotate
: Add or remove annotations from a Kubernetes resource.
kubectl top
: Display resource usage metrics for Kubernetes resources.
kubectl edit
: Edit a Kubernetes resource in real time.
kubectl apply -f
: Apply a Kubernetes configuration file.
kubectl create -f
: Create a Kubernetes resource from a configuration file.
kubectl rollout history
: View the rollout history of a deployment.
kubectl rollout undo
: Roll back a deployment to a previous version.
kubectl expose
: Expose a Kubernetes deployment as a service.
kubectl attach
: Attach to a running container in a pod.
kubectl exec -it
: Open an interactive shell inside a container in a pod.
kubectl cp
: Copy files to and from a container in a pod.
kubectl logs -f
: Follow the logs of a container in real time.
kubectl logs --tail
: View the last N lines of a container's logs.
kubectl logs --since
: View logs for a specific time.
kubectl logs --container
: View logs for a specific container in a pod.
kubectl rollout pause
: Pause a deployment rollout.
kubectl rollout resume
: Resume a paused deployment rollout.
kubectl rollout status
: Check the status of a deployment rollout.
kubectl rollout restart
: Restart a deployment rollout.
kubectl create secret
: Create a Kubernetes secret.
kubectl get secret
: View a Kubernetes secret.
kubectl delete secret
: Delete a Kubernetes secret.
kubectl create configmap
: Create a Kubernetes config map.
kubectl get configmap
: View a Kubernetes config map.
kubectl delete configmap
: Delete a Kubernetes config map.
kubectl set image
: Update a container image in a deployment.
kubectl rollout history deployment
: View the rollout history of a deployment.
kubectl rollout undo deployment
: Roll back a deployment to a previous version.
kubectl rollout restart deployment
: Restart a deployment rollout.
kubectl apply -k
: Apply resources defined in a Kustomization file.
kubectl kustomize
: Render a Kustomization file.
kubectl create role
: Create a Kubernetes role.
kubectl create rolebinding
: Create a Kubernetes role binding.
kubectl create serviceaccount
: Create a Kubernetes service account.
kubectl describe serviceaccount
: Show details of a Kubernetes service account.
kubectl delete serviceaccount
: Delete a Kubernetes service account.
kubectl exec --stdin --tty
: Open an interactive shell inside a container in a pod.