doc: update kubernetes.md (#322)

This commit is contained in:
irony 2023-03-02 15:07:57 +08:00 committed by GitHub
parent c40b0dff2f
commit 5c775c9074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -308,6 +308,7 @@ $ kubectl run [pod_name] --image=busybox --rm -it --restart=Never -- sh
```bash
$ kubectl create deploy [deploy_name] --image=nginx --dry-run -o yaml > deploy.yaml
$ kubectl get po [pod_name] -o yaml --export > pod.yaml
$ kubectl run nginx --image=nginx:alpine --dry-run -o -yaml > deploy.yaml
```
### 获取帮助
@ -328,6 +329,8 @@ $ kubectl explain deploy.spec
$ kubectl get --raw /apis/metrics.k8s.io/
```
### 集群信息
```bash