Skip to content

Commit 9796a8e

Browse files
authored
Merge pull request #34642 from windsonsea/docsite1
[zh-cn] resync frontend-nginx.conf
2 parents b2d062d + 193b589 commit 9796a8e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

content/zh-cn/examples/application/job/redis/worker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import rediswq
55

66
host="redis"
7-
# Uncomment next two lines if you do not have Kube-DNS working.
7+
# 如果你未在运行 Kube-DNS,请取消下面两行的注释
88
# import os
99
# host = os.getenv("REDIS_SERVICE_HOST")
1010

@@ -16,7 +16,7 @@
1616
if item is not None:
1717
itemstr = item.decode("utf-8")
1818
print("Working on " + itemstr)
19-
time.sleep(10) # Put your actual work here instead of sleep.
19+
time.sleep(10) # 将你的实际工作放在此处来取代 sleep
2020
q.complete(item)
2121
else:
2222
print("Waiting for work")
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# The identifier Backend is internal to nginx, and used to name this specific upstream
1+
# Backend nginx 的内部标识符,用于命名以下特定的 upstream
22
upstream Backend {
3-
# hello is the internal DNS name used by the backend Service inside Kubernetes
3+
# hello 是 Kubernetes 中的后端服务所使用的内部 DNS 名称
44
server hello;
55
}
66

77
server {
88
listen 80;
99

1010
location / {
11-
# The following statement will proxy traffic to the upstream named Backend
11+
# 以下语句将流量通过代理方式转发到名为 Backend 的上游
1212
proxy_pass http://Backend;
1313
}
1414
}

0 commit comments

Comments
 (0)