Skip to content

Commit

Permalink
Update Kubernetes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BinL233 authored Jun 16, 2023
1 parent f260f0a commit 1d25791
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion kubernetes/Kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,21 @@ Master排到Node节点代表,管理本机容器

Pod内有自己的 IP address、 Volume、 Containerized Apps


**为什么需要Pod:**

因为Pod可以搭载多个containers,在运维时可以成组地操作多个containers。


**创建pod**
**重启策略:**

在配置文件的RestartPolicy中可以修改
- Always:当容器失效时,由kubelet自动重启该容器。
- OnFailure:当容器终止运行且退出码不为0时,由kubelet自动重启该容器。
- Never:不论容器运行状态如何,kubelet都不会重启该容器。


**创建pod:**

```
apiVersion: v1 #api版本,一般为v1
Expand Down

0 comments on commit 1d25791

Please sign in to comment.