File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 4
4
import rediswq
5
5
6
6
host = "redis"
7
- # Uncomment next two lines if you do not have Kube-DNS working.
7
+ # 如果你未在运行 Kube-DNS,请取消下面两行的注释
8
8
# import os
9
9
# host = os.getenv("REDIS_SERVICE_HOST")
10
10
16
16
if item is not None :
17
17
itemstr = item .decode ("utf-8" )
18
18
print ("Working on " + itemstr )
19
- time .sleep (10 ) # Put your actual work here instead of sleep.
19
+ time .sleep (10 ) # 将你的实际工作放在此处来取代 sleep
20
20
q .complete (item )
21
21
else :
22
22
print ("Waiting for work" )
Original file line number Diff line number Diff line change 1
- # The identifier Backend is internal to nginx, and used to name this specific upstream
1
+ # Backend 是 nginx 的内部标识符,用于命名以下特定的 upstream
2
2
upstream Backend {
3
- # hello is the internal DNS name used by the backend Service inside Kubernetes
3
+ # hello 是 Kubernetes 中的后端服务所使用的内部 DNS 名称
4
4
server hello;
5
5
}
6
6
7
7
server {
8
8
listen 80;
9
9
10
10
location / {
11
- # The following statement will proxy traffic to the upstream named Backend
11
+ # 以下语句将流量通过代理方式转发到名为 Backend 的上游
12
12
proxy_pass http://Backend;
13
13
}
14
14
}
You can’t perform that action at this time.
0 commit comments