Merge pull request #34612 from windsonsea/docsite1
[zh-cn] resync pods/YAMLs
This commit is contained in:
@@ -11,7 +11,7 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: workdir
|
- name: workdir
|
||||||
mountPath: /usr/share/nginx/html
|
mountPath: /usr/share/nginx/html
|
||||||
# These containers are run during pod initialization
|
# 这些容器在 Pod 初始化期间运行
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: install
|
- name: install
|
||||||
image: busybox:1.28
|
image: busybox:1.28
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ spec:
|
|||||||
- name: test-container
|
- name: test-container
|
||||||
image: nginx
|
image: nginx
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
# name must match the volume name below
|
# name 必须与下面的卷名匹配
|
||||||
- name: secret-volume
|
- name: secret-volume
|
||||||
mountPath: /etc/secret-volume
|
mountPath: /etc/secret-volume
|
||||||
# The secret data is exposed to Containers in the Pod through a Volume.
|
# Secret 数据通过一个卷暴露给该 Pod 中的容器
|
||||||
volumes:
|
volumes:
|
||||||
- name: secret-volume
|
- name: secret-volume
|
||||||
secret:
|
secret:
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ kind: Pod
|
|||||||
metadata:
|
metadata:
|
||||||
name: nginx
|
name: nginx
|
||||||
spec:
|
spec:
|
||||||
nodeName: foo-node # schedule pod to specific node
|
nodeName: foo-node # 调度 Pod 到特定的节点
|
||||||
containers:
|
containers:
|
||||||
- name: nginx
|
- name: nginx
|
||||||
image: nginx
|
image: nginx
|
||||||
|
|||||||
@@ -6,14 +6,14 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: nginx
|
- name: nginx
|
||||||
image: nginx
|
image: nginx
|
||||||
# defines the health checking
|
# 定义健康检查
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
# an http probe
|
# 一个 http 探针
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /_status/healthz
|
path: /_status/healthz
|
||||||
port: 80
|
port: 80
|
||||||
# length of time to wait for a pod to initialize
|
# Pod 启动之后,实施健康检查之前,
|
||||||
# after pod startup, before applying health checking
|
# 等待 Pod 初始化的时间长度
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: redis
|
- name: redis
|
||||||
image: redis
|
image: redis
|
||||||
# defines the health checking
|
# 定义健康检查
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
# a TCP socket probe
|
# 一个 TCP 套接字探针
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: 6379
|
port: 6379
|
||||||
# length of time to wait for a pod to initialize
|
# Pod 启动之后,实施健康检查之前,
|
||||||
# after pod startup, before applying health checking
|
# 等待 Pod 初始化的时间长度
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user