Skip to content

Commit 61a0856

Browse files
author
Mengjiao Liu
committed
[zh-cn] Resync pod example YAMLs
1 parent 68c0d1a commit 61a0856

15 files changed

+16
-11
lines changed

content/zh-cn/examples/pods/inject/envars.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
spec:
88
containers:
99
- name: envar-demo-container
10-
image: gcr.io/google-samples/node-hello:1.0
10+
image: gcr.io/google-samples/hello-app:2.0
1111
env:
1212
- name: DEMO_GREETING
1313
value: "Hello from the environment"

content/zh-cn/examples/pods/pod-with-scheduling-gates.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ metadata:
44
name: test-pod
55
spec:
66
schedulingGates:
7-
- name: foo
8-
- name: bar
7+
- name: example.com/foo
8+
- name: example.com/bar
99
containers:
1010
- name: pause
1111
image: registry.k8s.io/pause:3.6

content/zh-cn/examples/pods/security/seccomp/ga/audit-pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
localhostProfile: profiles/audit.json
1212
containers:
1313
- name: test-container
14-
image: hashicorp/http-echo:0.2.3
14+
image: hashicorp/http-echo:1.0
1515
args:
1616
- "-text=just made some syscalls!"
1717
securityContext:

content/zh-cn/examples/pods/security/seccomp/ga/default-pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spec:
1010
type: RuntimeDefault
1111
containers:
1212
- name: test-container
13-
image: hashicorp/http-echo:0.2.3
13+
image: hashicorp/http-echo:1.0
1414
args:
1515
- "-text=just made some more syscalls!"
1616
securityContext:

content/zh-cn/examples/pods/security/seccomp/ga/fine-pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
localhostProfile: profiles/fine-grained.json
1212
containers:
1313
- name: test-container
14-
image: hashicorp/http-echo:0.2.3
14+
image: hashicorp/http-echo:1.0
1515
args:
1616
- "-text=just made some syscalls!"
1717
securityContext:

content/zh-cn/examples/pods/security/seccomp/ga/violation-pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
localhostProfile: profiles/violation.json
1212
containers:
1313
- name: test-container
14-
image: hashicorp/http-echo:0.2.3
14+
image: hashicorp/http-echo:1.0
1515
args:
1616
- "-text=just made some syscalls!"
1717
securityContext:

content/zh-cn/examples/pods/security/security-context-2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ spec:
77
runAsUser: 1000
88
containers:
99
- name: sec-ctx-demo-2
10-
image: gcr.io/google-samples/node-hello:1.0
10+
image: gcr.io/google-samples/hello-app:2.0
1111
securityContext:
1212
runAsUser: 2000
1313
allowPrivilegeEscalation: false

content/zh-cn/examples/pods/security/security-context-3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ metadata:
55
spec:
66
containers:
77
- name: sec-ctx-3
8-
image: gcr.io/google-samples/node-hello:1.0
8+
image: gcr.io/google-samples/hello-app:2.0

content/zh-cn/examples/pods/security/security-context-4.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
spec:
66
containers:
77
- name: sec-ctx-4
8-
image: gcr.io/google-samples/node-hello:1.0
8+
image: gcr.io/google-samples/hello-app:2.0
99
securityContext:
1010
capabilities:
1111
add: ["NET_ADMIN", "SYS_TIME"]

content/zh-cn/examples/pods/security/security-context.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ spec:
77
runAsUser: 1000
88
runAsGroup: 3000
99
fsGroup: 2000
10+
supplementalGroups: [4000]
1011
volumes:
1112
- name: sec-ctx-vol
1213
emptyDir: {}

0 commit comments

Comments
 (0)