1. BarePod

Bare Pod 又称 裸 Pod 是指没有使用任何副本控制器(即不在 ReplicaSets 或者 ReplicationCtroller 的管理之下的Pods)而直接用 PodSpec 来创建的 Pod。

例如:

apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels:
    app: nginx
spec:
  containers:
  - name: nginx
    image: nginx
    ports:
    - containerPort: 80

由于,Bare Pod 无法提供副本控制器相关的功能,不能很好的控制 Pod。因此,在生产环境中,推荐使用 Deployment、StatefulSet、Job 或者 CronJob 等控制器来创建 Pod,不推荐直接创建 Pod。

Copyright © 温玉 2021 | 浙ICP备2020032454号 all right reserved,powered by Gitbook该文件修订时间: 2023-05-20 21:15:12

results matching ""

    No results matching ""