Skip to content

Commit

Permalink
doc: update kubernetes.md (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
auroraslot committed Mar 2, 2023
1 parent c40b0df commit 5c775c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

### 获取帮助
Expand All @@ -328,6 +329,8 @@ $ kubectl explain deploy.spec
$ kubectl get --raw /apis/metrics.k8s.io/
```



### 集群信息

```bash
Expand Down

0 comments on commit 5c775c9

Please sign in to comment.