1. Timed execution of commands to view the interface of the command
Ten Get pods-n kube-ops
Every 10 seconds check the command run interface
2. Background mode running Jenkins the current window close does not affect the execution result.
Nohup Java-jar Jenkins.war &
3. Xargs parameters This one needs to learn slowly, only to learn a simple command.
should be the result of the previous command passed in as a parameter to the next command.
get pods-n kube-ops |grep Error |awk '{print $} ' |xargs kubectl Delete pod-n kube-ops
4. Simple commands for k8s operation
Kubectl describe pods podname-n namespacename describes pod related information such as recent error messages
Kubectl logs Podsname-n namespacename The log of the pod shows a detailed description of the cause of the problem.
namespace go inside the pod to see the appropriate information
This two-day learning of Simple Linux commands