Skip to content

Commit b886d6b

Browse files
author
Mengjiao Liu
committed
[zh-cn] Resync some examples YAMLs
1 parent 3601eb8 commit b886d6b

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

content/zh-cn/examples/application/deployment-sidecar.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ spec:
1717
containers:
1818
- name: myapp
1919
image: alpine:latest
20-
command: ['sh', '-c', 'echo "logging" > /opt/logs.txt']
20+
command: ['sh', '-c', 'while true; do echo "logging" >> /opt/logs.txt; sleep 1; done']
2121
volumeMounts:
2222
- name: data
2323
mountPath: /opt
2424
initContainers:
2525
- name: logshipper
2626
image: alpine:latest
2727
restartPolicy: Always
28-
command: ['sh', '-c', 'tail /opt/logs.txt']
28+
command: ['sh', '-c', 'tail -F /opt/logs.txt']
2929
volumeMounts:
3030
- name: data
3131
mountPath: /opt
32-
volumes:
33-
- name: data
34-
emptyDir: {}
32+
volumes:
33+
- name: data
34+
emptyDir: {}

content/zh-cn/examples/application/job/job-sidecar.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
- name: logshipper
1717
image: alpine:latest
1818
restartPolicy: Always
19-
command: ['sh', '-c', 'tail /opt/logs.txt']
19+
command: ['sh', '-c', 'tail -F /opt/logs.txt']
2020
volumeMounts:
2121
- name: data
2222
mountPath: /opt

content/zh-cn/examples/application/web/web-parallel.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spec:
3030
spec:
3131
containers:
3232
- name: nginx
33-
image: registry.k8s.io/nginx-slim:0.8
33+
image: registry.k8s.io/nginx-slim:0.24
3434
ports:
3535
- containerPort: 80
3636
name: web

content/zh-cn/examples/application/web/web.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
spec:
3030
containers:
3131
- name: nginx
32-
image: registry.k8s.io/nginx-slim:0.8
32+
image: registry.k8s.io/nginx-slim:0.21
3333
ports:
3434
- containerPort: 80
3535
name: web

content/zh-cn/examples/priority-and-fairness/health-for-strangers.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
1+
apiVersion: flowcontrol.apiserver.k8s.io/v1
22
kind: FlowSchema
33
metadata:
44
name: health-for-strangers
@@ -8,12 +8,12 @@ spec:
88
name: exempt
99
rules:
1010
- nonResourceRules:
11-
- nonResourceURLs:
12-
- "/healthz"
13-
- "/livez"
14-
- "/readyz"
15-
verbs:
16-
- "*"
11+
- nonResourceURLs:
12+
- "/healthz"
13+
- "/livez"
14+
- "/readyz"
15+
verbs:
16+
- "*"
1717
subjects:
1818
- kind: Group
1919
group:

content/zh-cn/examples/priority-and-fairness/list-events-default-service-account.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: flowcontrol.apiserver.k8s.io/v1beta3
1+
apiVersion: flowcontrol.apiserver.k8s.io/v1
22
kind: FlowSchema
33
metadata:
44
name: list-events-default-service-account

content/zh-cn/examples/service/access/hello-application.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
spec:
1515
containers:
1616
- name: hello-world
17-
image: gcr.io/google-samples/node-hello:1.0
17+
image: us-docker.pkg.dev/google-samples/containers/gke/hello-app:2.0
1818
ports:
1919
- containerPort: 8080
2020
protocol: TCP

0 commit comments

Comments
 (0)