GitOps & Kubernetes Deployment Strategies
Today we will take a look at the theory and practice of kubernetes and gitops Command introduction First, let’s take a look at the subnaming supported by kubectl for our convenience: kubectl apply - applies the definition of one or more resources. Typically used to deploy applications or update resources. kubectl get - displays information about one or more resources. This is a common command to view the status of resources in a Kubernetes cluster. kubectl describe - Displays details of one or more resources, such as events, status, and configuration. kubectl delete - Delete resources in the Kubernetes cluster. kubectl exec - Execute commands in containers in the cluster. kubectl logs - Print container logs. kubectl create - Create one or more resources from a file or standard input. kubectl edit - Edit resources in the cluster. This will open an editor to modify the resource’s configuration. kubectl port-forward - Forward local ports to Pods in the cluster. kubectl run - Run a specified image in the cluster. kubectl scale - Adjust the number of replicas of resources (such as Deployment, ReplicaSet). kubectl rollout - Manage the deployment of resources, such as viewing status, pausing, resuming or rolling back updates. **In addition to the above commands, kubectl in Kubernetes also supports annotations: ** ...