[zh-cn] resync pods/YAMLs

pull/34612/head
Michael 2022-06-26 10:19:23 +08:00
parent 4135f1ec3e
commit 3c42f643d4
5 changed files with 12 additions and 12 deletions

View File

@ -11,7 +11,7 @@ spec:
volumeMounts:
- name: workdir
mountPath: /usr/share/nginx/html
# These containers are run during pod initialization
# 这些容器在 Pod 初始化期间运行
initContainers:
- name: install
image: busybox:1.28

View File

@ -7,10 +7,10 @@ spec:
- name: test-container
image: nginx
volumeMounts:
# name must match the volume name below
# name 必须与下面的卷名匹配
- name: secret-volume
mountPath: /etc/secret-volume
# The secret data is exposed to Containers in the Pod through a Volume.
# Secret 数据通过一个卷暴露给该 Pod 中的容器
volumes:
- name: secret-volume
secret:

View File

@ -3,7 +3,7 @@ kind: Pod
metadata:
name: nginx
spec:
nodeName: foo-node # schedule pod to specific node
nodeName: foo-node # 调度 Pod 到特定的节点
containers:
- name: nginx
image: nginx

View File

@ -6,14 +6,14 @@ spec:
containers:
- name: nginx
image: nginx
# defines the health checking
# 定义健康检查
livenessProbe:
# an http probe
# 一个 http 探针
httpGet:
path: /_status/healthz
port: 80
# length of time to wait for a pod to initialize
# after pod startup, before applying health checking
# Pod 启动之后,实施健康检查之前,
# 等待 Pod 初始化的时间长度
initialDelaySeconds: 30
timeoutSeconds: 1
ports:

View File

@ -6,13 +6,13 @@ spec:
containers:
- name: redis
image: redis
# defines the health checking
# 定义健康检查
livenessProbe:
# a TCP socket probe
# 一个 TCP 套接字探针
tcpSocket:
port: 6379
# length of time to wait for a pod to initialize
# after pod startup, before applying health checking
# Pod 启动之后,实施健康检查之前,
# 等待 Pod 初始化的时间长度
initialDelaySeconds: 30
timeoutSeconds: 1
ports: