随笔分类 - k8s
摘要:# 时间从小到大kubectl get po --sort-by={metadata.creationTimestamp} --no-headers | tac# 时间从大到小 kubectl get po --sort-by={metadata.creationTimestamp}
阅读全文
摘要:kubectl delete --all deployments kubectl delete all --all --all-namespaces for each in $(kubectl get ns -o jsonpath="{.items[*].metadata.name}" | grep
阅读全文
摘要:kubectl get pod 查看pod kubectl logs <pod名> 查看某个pod的日志输出 kubectl describe pod <pod名> 查看某一资源的具体信息 kubectl delete pod <pod名> 删除某一pod kubectl delete pod <p
阅读全文