{"id":1162,"date":"2022-07-06T16:57:04","date_gmt":"2022-07-06T08:57:04","guid":{"rendered":"https:\/\/www.linuxdevops.cn\/?p=1162"},"modified":"2023-04-07T09:55:08","modified_gmt":"2023-04-07T01:55:08","slug":"kubernetes-uses-nginx-ingress-to-implement-blue-green","status":"publish","type":"post","link":"https:\/\/www.linuxdevops.cn\/2022\/07\/kubernetes-uses-nginx-ingress-to-implement-blue-green\/","title":{"rendered":"Kubernetes \u4f7f\u7528Nginx-Ingress\u5b9e\u73b0\u84dd\u7eff\u53d1\u5e03\/\u91d1\u4e1d\u96c0\u53d1\u5e03\/AB\u6d4b\u8bd5"},"content":{"rendered":"

\u80cc\u666f\u4ecb\u7ecd<\/h2>\n
\n

\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5728\u4f7f\u7528Kubernetes\u4f5c\u4e3a\u4e1a\u52a1\u5e94\u7528\u7684\u4e91\u5e73\u53f0\uff0c\u60f3\u8981\u5b9e\u73b0\u5e94\u7528\u7684\u84dd\u7eff\u90e8\u7f72\u7528\u6765\u8fed\u4ee3\u5e94\u7528\u7248\u672c\uff0c\u7528lstio\u592a\u91cd\u592a\u590d\u6742\uff0c\u800c\u4e14\u5b83\u672c\u8eab\u5b9a\u4f4d\u4e8e\u6d41\u63a7\u548c\u7f51\u683c\u6cbb\u7406\uff1bIngress-Nginx\u57280.21\u7248\u672c\u5f15\u5165\u4e86Canary\u529f\u80fd\uff0c\u53ef\u4ee5\u4e3a\u7f51\u5173\u5165\u53e3\u914d\u7f6e\u591a\u4e2a\u7248\u672c\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f7f\u7528annotation\u6765\u63a7\u5236\u591a\u4e2a\u540e\u7aef\u670d\u52a1\u7684\u6d41\u91cf\u5206\u914d<\/p>\n<\/blockquote>\n

Ingress-Nginx-Annotation Canary \u529f\u80fd\u4ecb\u7ecd<\/h2>\n
\n

\u5982\u679c\u60f3\u542f\u7528Canary\u529f\u80fd\uff0c\u8981\u5148\u8bbe\u7f6enginx.ingress.kubernetes.io\/canary: "true"<\/code>\uff0c\u7136\u540e\u53ef\u4ee5\u542f\u7528\u4ee5\u4e0b\u6ce8\u91ca\u6765\u914d\u7f6eCanary<\/p>\n<\/blockquote>\n