kubectl is the command-line tool used to interact with Kubernetes clusters. It allows users to deploy applications, manage cluster resources, and view logs, among other tasks.
Key Features:
- Deployment Management: Create, update, and delete applications and resources in the cluster.
- Resource Monitoring: Check the status of pods, services, and other resources.
- Configuration Management: Apply configuration changes using YAML or JSON files.
- Debugging: Access logs and execute commands in running containers.
Basic Usage:
Here are a few common kubectl commands:
kubectl get pods: List all pods in the current namespace.kubectl apply -f <file.yaml>: Apply a configuration from a file.kubectl logs <pod-name>: View logs for a specific pod.
For more detailed information, you can refer to the official Kubernetes documentation or explore related LabEx labs.
