常用 Kubernetes 命令
Posted This is bill
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了常用 Kubernetes 命令相关的知识,希望对你有一定的参考价值。
Context “dgx” modified. kubectl means Kubernetes control
kubectl config set-context --current --namespace=xxx-research
job.batch/trainer created/configured
kubectl apply -f train.yml
kubectl apply -f interaction.yml
To get jobs/pods
kubectl get jobs
kubectl get pods
print job/pod info detail
kubectl describe jobs
kubectl describe pods
To view events (i.e. creating and deleting of jobs)
kubectl get events
To view logs
kubectl logs -f job/trainer
delete job/pod
kubectl delete job huwang-trainer
kubectl delete pod huwang-trainer
以上是关于常用 Kubernetes 命令的主要内容,如果未能解决你的问题,请参考以下文章