{"action":"created","comment":{"url":"https://api.github.com/repos/xitu/gold-miner/pulls/comments/197159134","pull_request_review_id":130648456,"id":197159134,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzE1OTEzNA==","diff_hunk":"@@ -879,63 +879,63 @@ func PostImage(w http.ResponseWriter, r *http.Request) {\n }\n ```\n \n-Well, the naming could be better, but you should get the basic idea. I’m modifying the incoming single path by wrapping it into the new format and sending it over to the new endpoint handler. And that’s it! There are a few more modifications. To check them out, take a look at this PR: [Rolling Update Bulk Image Path PR](https://github.com/Skarlso/kube-cluster-sample/pull/1).\n+那么，命名可能会更好，但你应该得到基本的想法。我正在修改传入的单个路径，将它包装成新的格式并发送给新的端点处理程序。就是这样！ 还有一些修改。要查看它们，请查看此PR：[Rolling Update Bulk Image Path PR](https://github.com/Skarlso/kube-cluster-sample/pull/1)。\n \n-Now, the receiver can be called in two ways:\n+现在，可以通过两种方式调用接收器：\n \n ```\n-# Single Path:\n+# 单个路径:\n curl -d '{\"path\":\"unknown4456.jpg\"}' http://127.0.0.1:8000/image/post\n \n-# Multiple Paths:\n+# 多元路径:\n curl -d '{\"paths\":[{\"path\":\"unknown4456.jpg\"}]}' http://127.0.0.1:8000/images/post\n ```\n \n-Here, the client is curl. Normally, if the client is a service, I would modify it that in case the new end-point throws a 404 it would try the old one next.\n+在这里，客户端被访问。通常情况下，如果客户端是服务，我会修改它，以防万一新的端点抛出一个 404，它会尝试下一个。\n \n-For brevity, I’m not modifying NSQ and the others to handle bulk image processing; they will still receive it one by one. I’ll leave that up to you as homework ;)\n+为简洁起见，我不修改 NSQ 和其他用来批量图像处理的操作，他们仍然会一个一个接收。这就当作业留给你们来做了。\n \n-#### New Image\n+#### 新的镜像\n \n-To perform a rolling update, I must create a new image first from the receiver service.\n+要执行滚动更新，我必须首先从接收器服务创建一个新镜像。\n \n ```\n docker build -t skarlso/kube-receiver-alpine:v1.1 .\n ```\n \n-Once this is complete, we can begin rolling out the change.\n+一旦完成，我们可以开始推出更改。\n \n-#### Rolling update\n+#### 滚动更新\n \n-In Kubernetes, you can configure your rolling update in multiple ways:\n+在 Kubernetes 中，您可以通过多种方式配置滚动更新：\n \n-##### Manual Update\n+##### 手动更新\n \n-If I was using a container version in my config file called `v1.0`, then doing an update is simply calling:\n+如果我在我的配置文件中使用了一个名为 `v1.0` 的容器版本，那么更新只是简单地调用：\n \n ```\n kubectl rolling-update receiver --image:skarlso/kube-receiver-alpine:v1.1\n ```\n \n-If there is a problem during the rollout we can always rollback.\n+如果在部署期间出现问题，我们总是可以回滚。\n \n ```\n kubectl rolling-update receiver --rollback\n ```\n \n-It will set back the previous version. No fuss, no muss.\n+它将恢复以前的版本。 不需要大惊小怪，没有任何麻烦。\n \n-##### Apply a new configuration file\n+##### 应用一个新的配置文件\n \n-The problem with by-hand updates is that they aren’t in source control.\n+手动更新的问题在于它们不在源代码控制中。\n \n-Consider this: Something has changed, A couple of servers got updated by hand to do a quick “patch fix”, but nobody witnessed it and it wasn’t documented. A new person comes along and does a change to the template and applies the template to the cluster. All the servers are updated, and then all of a sudden there is a service outage.\n+考虑一下：有些东西已经改变，一些服务器手动更新以做一个快速的“补丁修复”，但没有人目睹它，并且没有记录。一个新的人出现并对模板进行更改并将模板应用到群集。所有服务器都会更新，然后突然出现服务中断。","path":"TODO1/kubernetes-distributed-application.md","position":932,"original_position":932,"commit_id":"998cfe76b5f181df15924b3d86e90088156637e5","original_commit_id":"998cfe76b5f181df15924b3d86e90088156637e5","user":{"login":"HCMY","id":12968045,"node_id":"MDQ6VXNlcjEyOTY4MDQ1","avatar_url":"https://avatars1.githubusercontent.com/u/12968045?v=4","gravatar_id":"","url":"https://api.github.com/users/HCMY","html_url":"https://github.com/HCMY","followers_url":"https://api.github.com/users/HCMY/followers","following_url":"https://api.github.com/users/HCMY/following{/other_user}","gists_url":"https://api.github.com/users/HCMY/gists{/gist_id}","starred_url":"https://api.github.com/users/HCMY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HCMY/subscriptions","organizations_url":"https://api.github.com/users/HCMY/orgs","repos_url":"https://api.github.com/users/HCMY/repos","events_url":"https://api.github.com/users/HCMY/events{/privacy}","received_events_url":"https://api.github.com/users/HCMY/received_events","type":"User","site_admin":false},"body":"[由于手动进行“快速修复”，一些服务器得到了更新]=>[一些服务器手动更新以做一个快速的“补丁修复]","created_at":"2018-06-21T14:40:58Z","updated_at":"2018-06-21T14:42:28Z","html_url":"https://github.com/xitu/gold-miner/pull/3993#discussion_r197159134","pull_request_url":"https://api.github.com/repos/xitu/gold-miner/pulls/3993","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/comments/197159134"},"html":{"href":"https://github.com/xitu/gold-miner/pull/3993#discussion_r197159134"},"pull_request":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/3993"}}},"pull_request":{"url":"https://api.github.com/repos/xitu/gold-miner/pulls/3993","id":195321281,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MzIxMjgx","html_url":"https://github.com/xitu/gold-miner/pull/3993","diff_url":"https://github.com/xitu/gold-miner/pull/3993.diff","patch_url":"https://github.com/xitu/gold-miner/pull/3993.patch","issue_url":"https://api.github.com/repos/xitu/gold-miner/issues/3993","number":3993,"state":"open","locked":false,"title":"Kubernetes 分布式应用部署和人脸识别 app 实例","user":{"login":"maoqyhz","id":20581706,"node_id":"MDQ6VXNlcjIwNTgxNzA2","avatar_url":"https://avatars3.githubusercontent.com/u/20581706?v=4","gravatar_id":"","url":"https://api.github.com/users/maoqyhz","html_url":"https://github.com/maoqyhz","followers_url":"https://api.github.com/users/maoqyhz/followers","following_url":"https://api.github.com/users/maoqyhz/following{/other_user}","gists_url":"https://api.github.com/users/maoqyhz/gists{/gist_id}","starred_url":"https://api.github.com/users/maoqyhz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maoqyhz/subscriptions","organizations_url":"https://api.github.com/users/maoqyhz/orgs","repos_url":"https://api.github.com/users/maoqyhz/repos","events_url":"https://api.github.com/users/maoqyhz/events{/privacy}","received_events_url":"https://api.github.com/users/maoqyhz/received_events","type":"User","site_admin":false},"body":"Kubernetes 分布式应用部署和人脸识别 app 实例\r\n\r\n译文翻译完成，resolve #3970 ","created_at":"2018-06-16T07:19:18Z","updated_at":"2018-06-21T14:42:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73159907becd3f4a54ec56f89bed3323baa5605b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":514335651,"node_id":"MDU6TGFiZWw1MTQzMzU2NTE=","url":"https://api.github.com/repos/xitu/gold-miner/labels/%E5%90%8E%E7%AB%AF","name":"后端","color":"1d76db","default":false},{"id":322084033,"node_id":"MDU6TGFiZWwzMjIwODQwMzM=","url":"https://api.github.com/repos/xitu/gold-miner/labels/%E6%AD%A3%E5%9C%A8%E6%A0%A1%E5%AF%B9","name":"正在校对","color":"c2e0c6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/xitu/gold-miner/pulls/3993/commits","review_comments_url":"https://api.github.com/repos/xitu/gold-miner/pulls/3993/comments","review_comment_url":"https://api.github.com/repos/xitu/gold-miner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xitu/gold-miner/issues/3993/comments","statuses_url":"https://api.github.com/repos/xitu/gold-miner/statuses/998cfe76b5f181df15924b3d86e90088156637e5","head":{"label":"maoqyhz:translation/kubernetes-distributed-application","ref":"translation/kubernetes-distributed-application","sha":"998cfe76b5f181df15924b3d86e90088156637e5","user":{"login":"maoqyhz","id":20581706,"node_id":"MDQ6VXNlcjIwNTgxNzA2","avatar_url":"https://avatars3.githubusercontent.com/u/20581706?v=4","gravatar_id":"","url":"https://api.github.com/users/maoqyhz","html_url":"https://github.com/maoqyhz","followers_url":"https://api.github.com/users/maoqyhz/followers","following_url":"https://api.github.com/users/maoqyhz/following{/other_user}","gists_url":"https://api.github.com/users/maoqyhz/gists{/gist_id}","starred_url":"https://api.github.com/users/maoqyhz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maoqyhz/subscriptions","organizations_url":"https://api.github.com/users/maoqyhz/orgs","repos_url":"https://api.github.com/users/maoqyhz/repos","events_url":"https://api.github.com/users/maoqyhz/events{/privacy}","received_events_url":"https://api.github.com/users/maoqyhz/received_events","type":"User","site_admin":false},"repo":{"id":137561483,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc1NjE0ODM=","name":"gold-miner","full_name":"maoqyhz/gold-miner","owner":{"login":"maoqyhz","id":20581706,"node_id":"MDQ6VXNlcjIwNTgxNzA2","avatar_url":"https://avatars3.githubusercontent.com/u/20581706?v=4","gravatar_id":"","url":"https://api.github.com/users/maoqyhz","html_url":"https://github.com/maoqyhz","followers_url":"https://api.github.com/users/maoqyhz/followers","following_url":"https://api.github.com/users/maoqyhz/following{/other_user}","gists_url":"https://api.github.com/users/maoqyhz/gists{/gist_id}","starred_url":"https://api.github.com/users/maoqyhz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maoqyhz/subscriptions","organizations_url":"https://api.github.com/users/maoqyhz/orgs","repos_url":"https://api.github.com/users/maoqyhz/repos","events_url":"https://api.github.com/users/maoqyhz/events{/privacy}","received_events_url":"https://api.github.com/users/maoqyhz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maoqyhz/gold-miner","description":"🥇掘金翻译计划，可能是世界最大最好的英译中技术社区，最懂读者和译者的翻译平台：","fork":true,"url":"https://api.github.com/repos/maoqyhz/gold-miner","forks_url":"https://api.github.com/repos/maoqyhz/gold-miner/forks","keys_url":"https://api.github.com/repos/maoqyhz/gold-miner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maoqyhz/gold-miner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maoqyhz/gold-miner/teams","hooks_url":"https://api.github.com/repos/maoqyhz/gold-miner/hooks","issue_events_url":"https://api.github.com/repos/maoqyhz/gold-miner/issues/events{/number}","events_url":"https://api.github.com/repos/maoqyhz/gold-miner/events","assignees_url":"https://api.github.com/repos/maoqyhz/gold-miner/assignees{/user}","branches_url":"https://api.github.com/repos/maoqyhz/gold-miner/branches{/branch}","tags_url":"https://api.github.com/repos/maoqyhz/gold-miner/tags","blobs_url":"https://api.github.com/repos/maoqyhz/gold-miner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maoqyhz/gold-miner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maoqyhz/gold-miner/git/refs{/sha}","trees_url":"https://api.github.com/repos/maoqyhz/gold-miner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maoqyhz/gold-miner/statuses/{sha}","languages_url":"https://api.github.com/repos/maoqyhz/gold-miner/languages","stargazers_url":"https://api.github.com/repos/maoqyhz/gold-miner/stargazers","contributors_url":"https://api.github.com/repos/maoqyhz/gold-miner/contributors","subscribers_url":"https://api.github.com/repos/maoqyhz/gold-miner/subscribers","subscription_url":"https://api.github.com/repos/maoqyhz/gold-miner/subscription","commits_url":"https://api.github.com/repos/maoqyhz/gold-miner/commits{/sha}","git_commits_url":"https://api.github.com/repos/maoqyhz/gold-miner/git/commits{/sha}","comments_url":"https://api.github.com/repos/maoqyhz/gold-miner/comments{/number}","issue_comment_url":"https://api.github.com/repos/maoqyhz/gold-miner/issues/comments{/number}","contents_url":"https://api.github.com/repos/maoqyhz/gold-miner/contents/{+path}","compare_url":"https://api.github.com/repos/maoqyhz/gold-miner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maoqyhz/gold-miner/merges","archive_url":"https://api.github.com/repos/maoqyhz/gold-miner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maoqyhz/gold-miner/downloads","issues_url":"https://api.github.com/repos/maoqyhz/gold-miner/issues{/number}","pulls_url":"https://api.github.com/repos/maoqyhz/gold-miner/pulls{/number}","milestones_url":"https://api.github.com/repos/maoqyhz/gold-miner/milestones{/number}","notifications_url":"https://api.github.com/repos/maoqyhz/gold-miner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maoqyhz/gold-miner/labels{/name}","releases_url":"https://api.github.com/repos/maoqyhz/gold-miner/releases{/id}","deployments_url":"https://api.github.com/repos/maoqyhz/gold-miner/deployments","created_at":"2018-06-16T07:12:27Z","updated_at":"2018-06-16T07:12:35Z","pushed_at":"2018-06-16T07:17:06Z","git_url":"git://github.com/maoqyhz/gold-miner.git","ssh_url":"git@github.com:maoqyhz/gold-miner.git","clone_url":"https://github.com/maoqyhz/gold-miner.git","svn_url":"https://github.com/maoqyhz/gold-miner","homepage":"https://juejin.im/tag/掘金翻译计划","size":33604,"stargazers_count":0,"watchers_count":0,"language":"M","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xitu:master","ref":"master","sha":"7c30df1c582a449de55b030bd90e87590b8c1086","user":{"login":"xitu","id":10482599,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNDgyNTk5","avatar_url":"https://avatars2.githubusercontent.com/u/10482599?v=4","gravatar_id":"","url":"https://api.github.com/users/xitu","html_url":"https://github.com/xitu","followers_url":"https://api.github.com/users/xitu/followers","following_url":"https://api.github.com/users/xitu/following{/other_user}","gists_url":"https://api.github.com/users/xitu/gists{/gist_id}","starred_url":"https://api.github.com/users/xitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xitu/subscriptions","organizations_url":"https://api.github.com/users/xitu/orgs","repos_url":"https://api.github.com/users/xitu/repos","events_url":"https://api.github.com/users/xitu/events{/privacy}","received_events_url":"https://api.github.com/users/xitu/received_events","type":"Organization","site_admin":false},"repo":{"id":45512989,"node_id":"MDEwOlJlcG9zaXRvcnk0NTUxMjk4OQ==","name":"gold-miner","full_name":"xitu/gold-miner","owner":{"login":"xitu","id":10482599,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNDgyNTk5","avatar_url":"https://avatars2.githubusercontent.com/u/10482599?v=4","gravatar_id":"","url":"https://api.github.com/users/xitu","html_url":"https://github.com/xitu","followers_url":"https://api.github.com/users/xitu/followers","following_url":"https://api.github.com/users/xitu/following{/other_user}","gists_url":"https://api.github.com/users/xitu/gists{/gist_id}","starred_url":"https://api.github.com/users/xitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xitu/subscriptions","organizations_url":"https://api.github.com/users/xitu/orgs","repos_url":"https://api.github.com/users/xitu/repos","events_url":"https://api.github.com/users/xitu/events{/privacy}","received_events_url":"https://api.github.com/users/xitu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xitu/gold-miner","description":"🥇掘金翻译计划，可能是世界最大最好的英译中技术社区，最懂读者和译者的翻译平台：","fork":false,"url":"https://api.github.com/repos/xitu/gold-miner","forks_url":"https://api.github.com/repos/xitu/gold-miner/forks","keys_url":"https://api.github.com/repos/xitu/gold-miner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xitu/gold-miner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xitu/gold-miner/teams","hooks_url":"https://api.github.com/repos/xitu/gold-miner/hooks","issue_events_url":"https://api.github.com/repos/xitu/gold-miner/issues/events{/number}","events_url":"https://api.github.com/repos/xitu/gold-miner/events","assignees_url":"https://api.github.com/repos/xitu/gold-miner/assignees{/user}","branches_url":"https://api.github.com/repos/xitu/gold-miner/branches{/branch}","tags_url":"https://api.github.com/repos/xitu/gold-miner/tags","blobs_url":"https://api.github.com/repos/xitu/gold-miner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xitu/gold-miner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xitu/gold-miner/git/refs{/sha}","trees_url":"https://api.github.com/repos/xitu/gold-miner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xitu/gold-miner/statuses/{sha}","languages_url":"https://api.github.com/repos/xitu/gold-miner/languages","stargazers_url":"https://api.github.com/repos/xitu/gold-miner/stargazers","contributors_url":"https://api.github.com/repos/xitu/gold-miner/contributors","subscribers_url":"https://api.github.com/repos/xitu/gold-miner/subscribers","subscription_url":"https://api.github.com/repos/xitu/gold-miner/subscription","commits_url":"https://api.github.com/repos/xitu/gold-miner/commits{/sha}","git_commits_url":"https://api.github.com/repos/xitu/gold-miner/git/commits{/sha}","comments_url":"https://api.github.com/repos/xitu/gold-miner/comments{/number}","issue_comment_url":"https://api.github.com/repos/xitu/gold-miner/issues/comments{/number}","contents_url":"https://api.github.com/repos/xitu/gold-miner/contents/{+path}","compare_url":"https://api.github.com/repos/xitu/gold-miner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xitu/gold-miner/merges","archive_url":"https://api.github.com/repos/xitu/gold-miner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xitu/gold-miner/downloads","issues_url":"https://api.github.com/repos/xitu/gold-miner/issues{/number}","pulls_url":"https://api.github.com/repos/xitu/gold-miner/pulls{/number}","milestones_url":"https://api.github.com/repos/xitu/gold-miner/milestones{/number}","notifications_url":"https://api.github.com/repos/xitu/gold-miner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xitu/gold-miner/labels{/name}","releases_url":"https://api.github.com/repos/xitu/gold-miner/releases{/id}","deployments_url":"https://api.github.com/repos/xitu/gold-miner/deployments","created_at":"2015-11-04T03:29:13Z","updated_at":"2018-06-21T13:32:14Z","pushed_at":"2018-06-21T06:57:25Z","git_url":"git://github.com/xitu/gold-miner.git","ssh_url":"git@github.com:xitu/gold-miner.git","clone_url":"https://github.com/xitu/gold-miner.git","svn_url":"https://github.com/xitu/gold-miner","homepage":"https://juejin.im/tag/掘金翻译计划","size":34305,"stargazers_count":14636,"watchers_count":14636,"language":"M","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2560,"mirror_url":null,"archived":false,"open_issues_count":41,"license":null,"forks":2560,"open_issues":41,"watchers":14636,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/3993"},"html":{"href":"https://github.com/xitu/gold-miner/pull/3993"},"issue":{"href":"https://api.github.com/repos/xitu/gold-miner/issues/3993"},"comments":{"href":"https://api.github.com/repos/xitu/gold-miner/issues/3993/comments"},"review_comments":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/3993/comments"},"review_comment":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xitu/gold-miner/pulls/3993/commits"},"statuses":{"href":"https://api.github.com/repos/xitu/gold-miner/statuses/998cfe76b5f181df15924b3d86e90088156637e5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"HCMY"}}