天天看點

K8S-常用指令

檢視pod日志

]# kubectl  log -f -n namespace pod -c container name      

檢視資源使用率

]# kubectl top node
]# kubectl top pod -A
]# kubectl top pod -n namespace      

檢視secret

]# kubectl get secret -n namespace       

檢視secret詳情

]# kubectl describe secret -n namespace name      

檢視資源清單文法幫助

]# kubectl explain HoriZontalPodAutoscaler      

越學越感到自己的無知