# K8s指令 & 設定 ###### tags: `Kubernetes` ``` ## 創建po $ kubectl apply -f pod.yaml $ kubectl create -f pod.yaml $ kubectl run po <pod-name> --image=<image-name> --restart=Never --dry-run=client ## 查看現有pod (加上 -o wide可以看ip和跑在哪個node) $ kubectl get po ## 查看該pod詳細資訊 $ kubectl describe po <pod-name> ## 刪除pod $ kubectl delete po ## 查看pod log $ kubectl logs <pod-name> ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up