{"id":32992,"date":"2023-07-23T12:34:20","date_gmt":"2022-11-27T03:14:24","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops%e5%92%8coke%e4%b8%ad%e7%9a%84%e9%87%91%e4%b8%9d%e9%9b%80%e5%8f%91%e5%b8%83\/"},"modified":"2024-04-30T14:57:06","modified_gmt":"2024-04-30T06:57:06","slug":"oci-devops%e5%92%8coke%e4%b8%ad%e7%9a%84%e9%87%91%e4%b8%9d%e9%9b%80%e5%8f%91%e5%b8%83","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops%e5%92%8coke%e4%b8%ad%e7%9a%84%e9%87%91%e4%b8%9d%e9%9b%80%e5%8f%91%e5%b8%83\/","title":{"rendered":"OCI DevOps\u548cOKE\u4e2d\u7684\u91d1\u4e1d\u96c0\u53d1\u5e03"},"content":{"rendered":"<h2>\u91d1\u4e1d\u96c0\u73af\u5883<\/h2>\n<p>\u73af\u5883\u603b\u89c8\u56fe<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/2-0.png\" alt=\"\u74b0\u5883\u6982\u8981\u56f3\" \/><\/div>\n<h3>\u597d\u7684 de)<\/h3>\n<p>\u53c2\u8003\u4ee5\u4e0b\u7684\u6559\u7a0b\uff0c\u642d\u5efaKubernetes\u96c6\u7fa4\u3002<\/p>\n<p>\u5728\u8fd9\u672c\u4e66\u4e2d\uff0c\u6211\u4eec\u5c06\u73af\u5883\u63cf\u8ff0\u4e3a3\u4e2a\u8282\u70b9\u3002<\/p>\n<p>\u8ba9\u6211\u4eec\u4e3a Kubernetes \uff08OKE\uff09\u542f\u52a8Oracle\u5bb9\u5668\u5f15\u64ce\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u51c6\u5907OKE\u96c6\u7fa4\u7684\u914d\u7f6e<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u51c6\u5907CLI\u6267\u884c\u73af\u5883\uff08\u4e91Shell\uff09<\/ol>\n<h3>OCIR could be paraphrased as &#8220;OCIR\u53ef\u4ee5\u88ab\u6539\u5199\u4e3a&#8221;.<\/h3>\n<p>\u8bf7\u53c2\u8003\u4ee5\u4e0b\u6559\u7a0b\uff0c\u5728OCIR\u4e2d\u521b\u5efa\u4e00\u4e2a\u4ee3\u7801\u5e93\u3002<\/p>\n<p>Oracle Cloud\u57fa\u7840\u8bbe\u65bd (OCI) \u7684DevOps\u5165\u95e8\u2014OKE\u7f16-<\/p>\n<ol>\u624b\u5de5\u827a\u54c1<\/ol>\n<ul class=\"post-ul\">3-1. OCIR\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/ul>\n<p>\uff1c\u53c2\u6570\uff1e<br \/>\n\u9694\u95f4\uff1a\u76ee\u6807\u9694\u95f4<br \/>\n\u4ed3\u5e93\u540d\u79f0\uff1a\u91d1\u4e1d\u96c0<br \/>\n\u8bbf\u95ee\uff1a\u516c\u5171<\/p>\n<h3>Ingress \u63a7\u5236\u5668\u8bbe\u7f6e<\/h3>\n<p>\u83b7\u53d6\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<pre class=\"post-pre\"><code>git clone https:\/\/github.com\/oracle-japan\/devops-deploy-strategy.git\r\n<\/code><\/pre>\n<p>\u67e5\u770b\u76ee\u5f55\u7684\u5185\u5bb9\u3002<\/p>\n<pre class=\"post-pre\"><code>ls devops-deploy-strategy\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>deploy-strategy-bg  deploy-strategy-canary  README.md\r\n<\/code><\/pre>\n<p>\u524d\u5f80 deploy-strategy-canary \u76ee\u5f55\uff0c\u8bbe\u7f6e ingress controller\u3002<\/p>\n<pre class=\"post-pre\"><code>cd deploy-strategy-canary\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>kubectl apply -f ingress-controller.yaml \r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>namespace\/ingress-nginx created\r\nserviceaccount\/ingress-nginx created\r\nserviceaccount\/ingress-nginx-admission created\r\nrole.rbac.authorization.k8s.io\/ingress-nginx created\r\nrole.rbac.authorization.k8s.io\/ingress-nginx-admission created\r\nclusterrole.rbac.authorization.k8s.io\/ingress-nginx created\r\nclusterrole.rbac.authorization.k8s.io\/ingress-nginx-admission created\r\nrolebinding.rbac.authorization.k8s.io\/ingress-nginx created\r\nrolebinding.rbac.authorization.k8s.io\/ingress-nginx-admission created\r\nclusterrolebinding.rbac.authorization.k8s.io\/ingress-nginx created\r\nclusterrolebinding.rbac.authorization.k8s.io\/ingress-nginx-admission created\r\nconfigmap\/ingress-nginx-controller created\r\nservice\/ingress-nginx-controller created\r\nservice\/ingress-nginx-controller-admission created\r\ndeployment.apps\/ingress-nginx-controller created\r\njob.batch\/ingress-nginx-admission-create created\r\njob.batch\/ingress-nginx-admission-patch created\r\ningressclass.networking.k8s.io\/nginx created\r\nvalidatingwebhookconfiguration.admissionregistration.k8s.io\/ingress-nginx-admission created\r\n<\/code><\/pre>\n<p>\u8bf7\u786e\u8ba4\u67093\u4e2a ingress-nginx-controller \u7684\u72b6\u6001\u4e3a Running\u3002<\/p>\n<pre class=\"post-pre\"><code>kubectl get pods -n ingress-nginx\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>NAME                                        READY   STATUS      RESTARTS   AGE\r\ningress-nginx-admission-create-4jptb        0\/1     Completed   0          43m\r\ningress-nginx-admission-patch-5pch2         0\/1     Completed   1          43m\r\ningress-nginx-controller-8574b6d7c9-4nskl   1\/1     Running     0          43m\r\ningress-nginx-controller-8574b6d7c9-6k5zp   1\/1     Running     0          43m\r\ningress-nginx-controller-8574b6d7c9-hpf62   1\/1     Running     0          43m\r\n<\/code><\/pre>\n<p>\u786e\u8ba4 LoadBalancer ingress-nginx-controller \u7684 EXTERNAL-IP \u662f\u5426\u663e\u793a\u3002<\/p>\n<pre class=\"post-pre\"><code>kubectl get services -n ingress-nginx\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>NAME                                 TYPE           CLUSTER-IP      EXTERNAL-IP       PORT(S)                      AGE\r\ningress-nginx-controller             LoadBalancer   10.96.107.235   132.xxx.xxx.xxx   80:32487\/TCP,443:32238\/TCP   44m\r\ningress-nginx-controller-admission   ClusterIP      10.96.101.214   &lt;none&gt;            443\/TCP                      44m\r\n<\/code><\/pre>\n<h3>\u547d\u540d\u7a7a\u95f4\u521b\u5efa<\/h3>\n<p>\u5728\u76ee\u6807Kubernetes\u96c6\u7fa4\u4e2d\u521b\u5efa\u4e00\u4e2a\u4e13\u4e3aCANARY\u7528\u9014\u7684Namespace\u3002<\/p>\n<pre class=\"post-pre\"><code>kubectl create ns canary\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>namespace\/canary created\r\n<\/code><\/pre>\n<p>\u786e\u8ba4canary\u7684\u547d\u540d\u7a7a\u95f4\u662f\u5426\u5df2\u7ecf\u521b\u5efa\u3002<\/p>\n<pre class=\"post-pre\"><code>kubectl get ns\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>NAME              STATUS   AGE\r\nblue              Active   11m\r\ncanary            Active   10s\r\ndefault           Active   5h58m\r\ngreen             Active   11m\r\ningress-nginx     Active   153m\r\nkube-node-lease   Active   5h58m\r\nkube-public       Active   5h58m\r\nkube-system       Active   5h58m\r\n<\/code><\/pre>\n<h3>OCI DevOps\u8bbe\u7f6e<\/h3>\n<h4>1. \u521b\u5efa\u9879\u76ee<\/h4>\n<p>\u8bf7\u53c2\u8003\u6b64\u5904\u521b\u5efaOCI DevOps\u73af\u5883\u7684\u9884\u5907\u5de5\u4f5c\u3002<\/p>\n<p>Oracle\u4e91\u57fa\u7840\u8bbe\u65bd\uff08OCI\uff09\u7684DevOps\u4e8b\u524d\u51c6\u5907\u5de5\u4f5c<\/p>\n<p>\u5728\u8fd9\u91cc\uff0c\u5c06\u4ee5\u4ee5\u4e0b\u540d\u79f0\u521b\u5efa\u3002<\/p>\n<p>\u8bdd\u9898\u540d\u79f0\uff1aDevOps\u90e8\u7f72\u7b56\u7565<br \/>\n\u9879\u76ee\u540d\u79f0\uff1a\u91d1\u4e1d\u96c0<\/p>\n<h4>2. \u5275\u9020\u74b0\u5883<\/h4>\n<p>\u9009\u62e9\u5df2\u521b\u5efa\u7684\u9879\u76ee\uff0c\u5e76\u9009\u62e9\u201c\u73af\u5883\u201d\u3002<br \/>\n\u4ece\u5de6\u4fa7\u83dc\u5355\u4e2d\u9009\u62e9\u201c\u73af\u5883\u201d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/45-0.png\" alt=\"\u74b0\u5883 \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb\u201c\u521b\u5efa\u73af\u5883\u201d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/47-0.png\" alt=\"\u74b0\u5883 \u4f5c\u6210\" \/><\/div>\n<p>\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\uff0c\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u74b0\u5883\u30bf\u30a4\u30d7\uff1aOracle Kubernetes\u30a8\u30f3\u30b8\u30f3<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u540d\u524d\uff1acanary-cluster<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/50-0.png\" alt=\"\u74b0\u5883 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/51-0.png\" alt=\"\u74b0\u5883 \u4f5c\u6210\" \/><\/div>\n<p>\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\u540e\uff0c\u70b9\u51fb\u201c\u521b\u5efa\u73af\u5883\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ea\u30fc\u30b8\u30e7\u30f3\uff1a\u5bfe\u8c61\u30af\u30e9\u30b9\u30bf\u306e\u30ea\u30fc\u30b8\u30e7\u30f3<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b3\u30f3\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8\uff1a\u5bfe\u8c61\u306e\u30b3\u30f3\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30af\u30e9\u30b9\u30bf\uff1a\u5bfe\u8c61\u306e\u30af\u30e9\u30b9\u30bf\uff08\u3053\u3053\u3067\u306f cluster1\uff09<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/54-0.png\" alt=\"\u74b0\u5883 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/55-0.png\" alt=\"\u74b0\u5883 \u4f5c\u6210\" \/><\/div>\n<p>\u4ece\u9762\u5305\u5c51\u5217\u8868\u4e2d\u9009\u62e9\u201ccanary\u201d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/57-0.png\" alt=\"\u74b0\u5883 \u4f5c\u6210\" \/><\/div>\n<h4>3. \u521b\u5efa\u4ee3\u7801\u5e93<\/h4>\n<p>\u4ece\u5de6\u4fa7\u83dc\u5355\u4e2d\u9009\u62e9\u201c\u4ee3\u7801\u5e93\u201d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/60-0.png\" alt=\"\u30b3\u30fc\u30c9\u30fb\u30ea\u30dd\u30b8\u30c8\u30ea \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb\u300c\u521b\u5efa\u5b58\u50a8\u5e93\u300d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/62-0.png\" alt=\"\u30b3\u30fc\u30c9\u30fb\u30ea\u30dd\u30b8\u30c8\u30ea \u4f5c\u6210\" \/><\/div>\n<p>\u8bf7\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\uff0c\u5e76\u70b9\u51fb&#8221;\u521b\u5efa\u5b58\u50a8\u5e93&#8221;\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ea\u30dd\u30b8\u30c8\u30ea\u540d\uff1astrategy-canary<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30c7\u30d5\u30a9\u30eb\u30c8\u30fb\u30d6\u30e9\u30f3\u30c1\u30fb\u30aa\u30d7\u30b7\u30e7\u30f3\uff1amain<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/65-0.png\" alt=\"\u30b3\u30fc\u30c9\u30fb\u30ea\u30dd\u30b8\u30c8\u30ea \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/66-0.png\" alt=\"\u30b3\u30fc\u30c9\u30fb\u30ea\u30dd\u30b8\u30c8\u30ea \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb\u300cHTTPS\u300d\u6309\u94ae\uff0c\u7136\u540e\u70b9\u51fb\u547d\u4ee4\u7684\u300c\u590d\u5236\u300d\u6587\u672c\uff0c\u6267\u884c\u547d\u4ee4\u6765\u514b\u9686\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/68-0.png\" alt=\"\u30b3\u30fc\u30c9\u30fb\u30ea\u30dd\u30b8\u30c8\u30ea \u4f5c\u6210\" \/><\/div>\n<p>\u5c06\u793a\u4f8b\u4ee3\u7801\u590d\u5236\u5230\u514b\u9686\u7684\u76ee\u5f55\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code>cp -pR devops-deploy-strategy\/deploy-strategy-canary\/* .\/strategy-canary\/\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>ls strategy-canary\/\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>build_spec.yaml  canary-app.yaml  content.html  Dockerfile  ingress-controller.yaml\r\n<\/code><\/pre>\n<p>\u5c06\u793a\u4f8b\u4ee3\u7801\u63a8\u9001\u5230\u521b\u5efa\u7684\u5b58\u50a8\u5e93\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code>cd strategy-canary\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>git add -A .\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>git commit -m \"first commit\"\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>[main f70c893] first commit\r\n 5 files changed, 787 insertions(+)\r\n create mode 100644 Dockerfile\r\n create mode 100644 build_spec.yaml\r\n create mode 100644 canary-app.yaml\r\n create mode 100644 content.html\r\n create mode 100644 ingress-controller.yaml\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>git branch -M main\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>git push -u origin main\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>Enumerating objects: 8, done.\r\nCounting objects: 100% (8\/8), done.\r\nDelta compression using up to 2 threads\r\nCompressing objects: 100% (7\/7), done.\r\nWriting objects: 100% (7\/7), 3.82 KiB | 3.82 MiB\/s, done.\r\nTotal 7 (delta 0), reused 0 (delta 0), pack-reused 0\r\nTo https:\/\/devops.scmservice.uk-london-1.oci.oraclecloud.com\/namespaces\/orasejapan\/projects\/canary\/repositories\/strategy-canary\r\n   0a0612a..f70c893  main -&gt; main\r\nBranch 'main' set up to track remote branch 'main' from 'origin'.\r\n<\/code><\/pre>\n<p>\u67e5\u770b\u5b58\u50a8\u5e93\uff0c\u53ef\u4ee5\u770b\u5230\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/82-0.png\" alt=\"\u30b3\u30fc\u30c9\u30fb\u30ea\u30dd\u30b8\u30c8\u30ea \u4f5c\u6210\" \/><\/div>\n<h4>4. \u5236\u4f5c\u827a\u672f\u54c1<\/h4>\n<p>\u5728\u90e8\u7f72\u5230Kubernetes\u96c6\u7fa4\u65f6\uff0c\u9700\u8981\u5c06\u5fc5\u8981\u7684\u6e05\u5355\u6587\u4ef6\u4e0a\u4f20\u5230\u827a\u672f\u54c1\u6ce8\u518c\u8868\u3002\u9996\u5148\uff0c\u5728\u827a\u672f\u54c1\u6ce8\u518c\u8868\u4e2d\u521b\u5efa\u5b58\u50a8\u5e93\u3002<\/p>\n<p>\u5728\u8981\u4e0a\u4f20\u7684\u6e05\u5355\u6587\u4ef6\u4e2d\uff0c\u66f4\u6539\u5bb9\u5668\u6620\u50cf\u7684\u8def\u5f84\u3002<\/p>\n<pre class=\"post-pre\"><code>cd strategy-canary\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>vim canary-app.yaml \r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>apiVersion: apps\/v1\r\nkind: Deployment\r\nmetadata:\r\n  name: helloworld\r\nspec:\r\n  selector:\r\n    matchLabels:\r\n      app: helloworld\r\n  replicas: 3\r\n  template:\r\n    metadata:\r\n      labels:\r\n        app: helloworld\r\n    spec:\r\n      containers:\r\n        - name: helloworld\r\n          # enter the path to your image, be sure to include the correct region prefix\r\n          image: lhr.ocir.io\/orasejapan\/canary\/canary-app:${BUILDRUN_HASH}\r\n          ports:\r\n            - containerPort: 80\r\n---\r\napiVersion: v1\r\nkind: Service\r\nmetadata:\r\n  name: helloworld\r\n  #annotations:\r\n   #service.beta.kubernetes.io\/oci-load-balancer-shape: \"100Mbps\"\r\nspec:\r\n  type: ClusterIP\r\n  ports:\r\n    - port: 80\r\n      targetPort: 80\r\n  selector:\r\n    app: helloworld\r\n---\r\n# main-ingress.yaml with networking.k8s.io\/v1 version\r\napiVersion: networking.k8s.io\/v1\r\nkind: Ingress\r\nmetadata:\r\n  name: helloworld-ing\r\n  annotations:\r\n    kubernetes.io\/ingress.class: \"nginx\"\r\nspec:\r\n  rules: \r\n    - http:\r\n        paths:\r\n          - path: \/\r\n            pathType: Prefix\r\n            backend:\r\n              service:\r\n                name: helloworld\r\n                port:\r\n                  number: 80\r\n<\/code><\/pre>\n<p>\u5728\u6c49\u5821\u83dc\u5355\u4e2d\u9009\u62e9&#8221;\u5f00\u53d1\u4eba\u5458\u670d\u52a1&#8221;-&#8220;\u5de5\u4ef6\u6ce8\u518c&#8221;\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/90-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb&#8221;\u521b\u5efa\u5b58\u50a8\u5e93&#8221;\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/92-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u5b8c\u6210\u4ee5\u4e0b\u8bbe\u7f6e\u540e\uff0c\u70b9\u51fb\u201c\u521b\u5efa\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u540d\u524d\uff1aartifact-repository-canary<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b3\u30f3\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8\uff1a\u5bfe\u8c61\u3068\u306a\u308b\u30b3\u30f3\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u4e0d\u5909\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8\uff1a\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3059<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/95-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/96-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb&#8221;\u4e0a\u4f20\u5de5\u4ef6&#8221;\u6309\u94ae\u4ee5\u4e0a\u4f20\u6e05\u5355\u6587\u4ef6\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/98-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\uff0c\u7136\u540e\u70b9\u51fb\u201c\u590d\u5236\u201d\u6587\u672c\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8\u30fb\u30d1\u30b9\uff1acanary-app.yaml<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d0\u30fc\u30b8\u30e7\u30f3\uff1a1<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Uplad method\uff1aCloud Shell<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/101-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u590d\u5236\u5185\u5bb9\u5e76\u7c98\u8d34\uff0c\u5728\u201c.\/\u201d\u5904\u66f4\u6539\u4e3a\u201c.\/blue-green-app.yaml\u201d\uff0c\u7136\u540e\u6267\u884c\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>oci artifacts generic artifact upload-by-path \\\r\n&gt;   --repository-id ocid1.artifactrepository.oc1.uk-london-1.0.amaaaaaassl65iqau22cohp5ulfb5ion66vkd4uz2aerbyr3olbyav7b5k5q \\\r\n&gt;   --artifact-path canary-app.yaml \\\r\n&gt;   --artifact-version 1 \\\r\n&gt;   --content-body .\/canary-app.yaml\r\n<\/code><\/pre>\n<p>\u53ea\u8981\u8fd4\u56de\u4ee5\u4e0b\u7ed3\u679c\uff0c\u4e0a\u4f20\u5c31\u5b8c\u6210\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>{\r\n  \"data\": {\r\n    \"artifact-path\": \"canary-app.yaml\",\r\n    \"compartment-id\": \"ocid1.compartment.oc1..aaaaaaaagp3t6j5zjzg3hrau4i3rtcxvl64cxbcdgpid5smp6avpnfecegqa\",\r\n    \"defined-tags\": {},\r\n    \"display-name\": \"canary-app.yaml:1\",\r\n    \"freeform-tags\": {},\r\n    \"id\": \"ocid1.genericartifact.oc1.uk-london-1.0.amaaaaaassl65iqadlt552fyxu47nmxxtxl3sb22ak4pui6xrlstojc4stha\",\r\n    \"lifecycle-state\": \"AVAILABLE\",\r\n    \"repository-id\": \"ocid1.artifactrepository.oc1.uk-london-1.0.amaaaaaassl65iqau22cohp5ulfb5ion66vkd4uz2aerbyr3olbyav7b5k5q\",\r\n    \"sha256\": \"d41bb6efd5988e3fbb9646963e1477863bcb567237f4dfd77cf46384b95b9e8c\",\r\n    \"size-in-bytes\": 1126,\r\n    \"time-created\": \"2023-01-27T06:50:01.017000+00:00\",\r\n    \"version\": \"1\"\r\n  }\r\n}\r\n<\/code><\/pre>\n<p>\u70b9\u51fb\u201c\u5173\u95ed\u201d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/107-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u5f53\u60a8\u66f4\u65b0\u6d4f\u89c8\u5668\u65f6\uff0c\u4e0a\u4f20\u7684\u827a\u672f\u54c1\u5c06\u4f1a\u88ab\u5217\u51fa\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/109-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u8fd4\u56deOCI DevOps\u7684\u201c\u91d1\u4e1d\u96c0\u201d\u9879\u76ee\u9875\u9762\uff0c\u5e76\u5c06\u76ee\u6807OCIR\u548c\u827a\u672f\u54c1\u6ce8\u518c\u4ed3\u5e93\u6dfb\u52a0\u5230\u827a\u672f\u54c1\u4e2d\u3002<\/p>\n<p>\u5728OCI DevOps\u7684\u5de6\u4fa7\u83dc\u5355\u4e2d\u9009\u62e9\u201c\u6784\u4ef6\u201d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/112-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb&#8221;\u6dfb\u52a0\u5de5\u5177\/\u7269\u54c1&#8221;\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/114-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u8bf7\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\uff0c\u5e76\u70b9\u51fb\u201c\u6dfb\u52a0\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u540d\u524d\uff1aocir-repogitory-canary<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30bf\u30a4\u30d7\uff1a\u30b3\u30f3\u30c6\u30ca\u30fb\u30a4\u30e1\u30fc\u30b8\u30fb\u30ea\u30dd\u30b8\u30c8\u30ea<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30b3\u30f3\u30c6\u30ca\u30fb\u30ec\u30b8\u30b9\u30c8\u30ea\u306e\u30a4\u30e1\u30fc\u30b8\u3078\u306e\u5b8c\u5168\u4fee\u98fe\u30d1\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff1a\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u6307\u5b9a\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/117-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/118-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb\u201c\u6dfb\u52a0\u7269\u54c1\u201d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/120-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\uff0c\u7136\u540e\u70b9\u51fb\u201c\u9009\u62e9\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u540d\u524d\uff1aartifact-repogitory-canary<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30bf\u30a4\u30d7\uff1aKubernetes\u30de\u30cb\u30d5\u30a7\u30b9\u30c8<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/123-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\uff0c\u5e76\u70b9\u51fb\u201c\u9009\u62e9\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ea\u30fc\u30b8\u30e7\u30f3\uff1a\u5bfe\u8c61\u3068\u306a\u308b\u30ea\u30fc\u30b8\u30e7\u30f3<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b3\u30f3\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8\uff1a\u5bfe\u8c61\u3068\u306a\u308b\u30b3\u30f3\u30d1\u30fc\u30c8\u30e1\u30f3\u30c8<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8\u30fb\u30ec\u30b8\u30b9\u30c8\u30ea\u30fb\u30ea\u30dd\u30b8\u30c8\u30ea\uff1aartifact-repository-canary<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/126-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/127-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb&#8221;\u9009\u62e9&#8221;\u6309\u94ae\u4e0b\u7684&#8221;Artifact&#8221;\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/129-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u8bf7\u52fe\u9009\u300ccanary-app.yaml:v1\u300d\uff0c\u7136\u540e\u70b9\u51fb\u300c\u9009\u62e9\u300d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/131-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/132-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u8bf7\u6700\u540e\u70b9\u51fb\u201c\u6dfb\u52a0\u201d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/134-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u786e\u8ba4OCIR\uff08Oracle Cloud Infrastructure Registry\uff09\u548cArtifact Registry\u7684\u5b58\u50a8\u5e93\u662f\u5426\u5df2\u88ab\u5217\u51fa\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/136-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<p>\u4ece\u9762\u5305\u5c51\u5217\u8868\u4e2d\u9009\u62e9\u201ccanary\u201d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/138-0.png\" alt=\"\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8 \u4f5c\u6210\" \/><\/div>\n<h4>5. \u521b\u5efa\u90e8\u7f72\u7ba1\u9053\u3002<\/h4>\n<p>\u4ece\u5de6\u4fa7\u83dc\u5355\u4e2d\u9009\u62e9\u201c\u90e8\u7f72\u7ba1\u9053\u201d\u6765\u521b\u5efa\u90e8\u7f72\u7ba1\u9053\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/141-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb\u521b\u5efa\u7ba1\u9053\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/143-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\uff0c\u5e76\u70b9\u51fb&#8221;\u521b\u5efa\u7ba1\u9053&#8221;\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u540d\uff1adeploy-to-oke<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/146-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/147-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb\u201c\u6dfb\u52a0\u821e\u53f0\u201d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/149-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u9009\u62e9&#8221;\u91d1\u4e1d\u96c0\u7b56\u7565&#8221;\uff0c\u7136\u540e\u70b9\u51fb&#8221;\u4e0b\u4e00\u6b65&#8221;\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/151-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/152-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\u5e76\u70b9\u51fb\u201c\u9009\u62e9\u5de5\u4ef6\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30bf\u30a4\u30d7\uff1aOKE<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b9\u30c6\u30fc\u30b8\u540d\uff1adeploy-strategy-canary<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u74b0\u5883\uff1acanary-cluster<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ab\u30ca\u30ea\u30a2\u30fb\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\uff1acanary<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">NGINX\u30a4\u30f3\u30b0\u30ec\u30b9\u540d\uff1ahelloworld-ing<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/155-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u9009\u62e9\u300cartifact-repository-canary\u300d\uff0c\u7136\u540e\u70b9\u51fb\u300c\u4fdd\u5b58\u66f4\u6539\u300d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/157-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/158-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb&#8221;\u6b21&#8221;\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/160-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u5728\u691c\u8a3c\u63a7\u5236\u4e2d\uff0c\u5c06\u5176\u4fdd\u6301\u4e3a\u201c\u65e0\u201d\u5e76\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/162-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u8bf7\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\uff0c\u5e76\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b9\u30c6\u30fc\u30b8\u540d\uff1acanary<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30e9\u30f3\u30d7\u30a2\u30c3\u30d7\u5236\u9650%\uff1a25<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/165-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/166-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\u540e\uff0c\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\u30b9\u30c6\u30fc\u30b8\u540d\uff1aconfirm<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/169-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/170-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u8fdb\u884c\u4e0b\u9762\u7684\u8bbe\u7f6e\uff0c\u7136\u540e\u70b9\u51fb\u201c\u6dfb\u52a0\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b9\u30c6\u30fc\u30b8\u540d\uff1adeploy<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u672c\u756a\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\uff1adefault<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/173-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/174-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u78ba\u8a8d\u5b8c\u7562\u5f8c\uff0c\u8acb\u9ede\u64ca\u300c\u95dc\u9589\u300d\u6309\u9215\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/176-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/177-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u4ece\u9762\u5305\u5c51\u5217\u8868\u4e2d\u9009\u62e9\u201ccanary\u201d\u9009\u9879\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/179-0.png\" alt=\"\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<h4>6. \u521b\u5efa\u6784\u5efa\u6d41\u7a0b<\/h4>\n<p>\u4ece\u5de6\u4fa7\u83dc\u5355\u9009\u62e9\u201c\u521b\u5efa\u6784\u5efa\u7ba1\u9053\u201d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/182-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb\u201c\u521b\u5efa\u6784\u5efa\u6d41\u6c34\u7ebf\u201d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/184-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u8bf7\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\uff0c\u5e76\u70b9\u51fb\u201c\u521b\u5efa\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\u540d\u524d\uff1aimage-build-ship<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/187-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/188-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb&#8221;\u6dfb\u52a0\u821e\u53f0&#8221;\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/190-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u9009\u62e9&#8221;\u6258\u7ba1\u6784\u5efa&#8221;\uff0c\u7136\u540e\u70b9\u51fb&#8221;\u4e0b\u4e00\u6b65&#8221;\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/192-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/193-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\uff0c\u5e76\u70b9\u51fb\u201c\u9009\u62e9\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b9\u30c6\u30fc\u30b8\u540d\uff1acontainer-image-build<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30d3\u30eb\u30c9\u4ed5\u69d8\u30d5\u30a1\u30a4\u30eb\u30fb\u30d1\u30b9\uff1abuild_spec.yaml<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/196-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\uff0c\u7136\u540e\u70b9\u51fb\u201c\u9009\u62e9\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30bd\u30fc\u30b9\uff1a\u63a5\u7d9a\u30bf\u30a4\u30d7\uff1aOCI\u30b3\u30fc\u30c9\u30fb\u30ea\u30dd\u30b8\u30c8\u30ea<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">strategy-canary \u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30d6\u30e9\u30f3\u30c1\u306e\u9078\u629e\uff1amain<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/199-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/200-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb\u201c\u8ffd\u52a0\u201d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/202-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb&#8221;+&#8221;\u53f7\uff0c\u9009\u62e9&#8221;\u6dfb\u52a0\u9636\u6bb5&#8221;\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/204-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u9009\u62e9\u201c\u4f20\u8f93\u7269\u54c1\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/206-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/207-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\uff0c\u70b9\u51fb\u201c\u9009\u62e9\u5de5\u4ef6\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\u30b9\u30c6\u30fc\u30b8\u540d\uff1acontainer-image-ship<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/210-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u52fe\u9009\u300cocir-repository-canary\u300d\uff0c\u7136\u540e\u70b9\u51fb\u300c\u6dfb\u52a0\u300d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/212-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/213-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u5728&#8221;\u5efa\u7acb\u914d\u7f6e\/\u7d50\u679c\u7522\u7269\u540d&#8221;\u4e2d\u8a2d\u7f6e\u70ba&#8221;canary_image&#8221;\uff0c\u7136\u5f8c\u9ede\u64ca&#8221;\u65b0\u589e&#8221;\u6309\u9215\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/215-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/216-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb\u300c+\u300d\uff0c\u9009\u62e9\u300c\u6dfb\u52a0\u9636\u6bb5\u300d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/218-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u9009\u62e9\u201c\u90e8\u7f72\u89e6\u53d1\u5668\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/220-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/221-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\u540e\uff0c\u70b9\u51fb\u201c\u9009\u62e9\u90e8\u7f72\u7ba1\u9053\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\u30b9\u30c6\u30fc\u30b8\u540d\uff1aconnect-to-deployment-pipeline<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/224-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u52fe\u9009\u300c\u90e8\u7f72\u5230 OKE\u300d\u9009\u9879\uff0c\u5e76\u70b9\u51fb\u300c\u4fdd\u5b58\u66f4\u6539\u300d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/226-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/227-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u6700\u540e\u70b9\u51fb\u201c\u65b0\u589e\u201d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/229-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<p>\u4ece\u9762\u5305\u5c51\u5217\u8868\u4e2d\u9009\u62e9\u201ccanary\u201d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/231-0.png\" alt=\"\u30d3\u30eb\u30c9\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3 \u4f5c\u6210\" \/><\/div>\n<h4>7. \u521b\u5efa\u89e6\u53d1\u5668 q\u00ec)<\/h4>\n<p>\u6211\u5011\u5c07\u9032\u884c\u4e00\u9805\u8a2d\u5b9a\uff0c\u6839\u64da\u6e90\u4ee3\u78bc\u66f4\u65b0\u5f8c\u7684\u63a8\u9001\u89f8\u767cCanary\u9032\u884c\u57f7\u884c\u3002\u8acb\u5f9e\u5de6\u5074\u83dc\u55ae\u9078\u64c7\u300c\u89f8\u767c\u300d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/234-0.png\" alt=\"\u30c8\u30ea\u30ac\u30fc \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb\u201c\u521b\u5efa\u89e6\u53d1\u5668\u201d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/236-0.png\" alt=\"\u30c8\u30ea\u30ac\u30fc \u4f5c\u6210\" \/><\/div>\n<p>\u8fdb\u884c\u4ee5\u4e0b\u8bbe\u7f6e\u5e76\u70b9\u51fb\u201c\u9009\u62e9\u201d\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u540d\u524d\uff1adeploy-strategy-canary<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30bd\u30fc\u30b9\u63a5\u7d9a\uff1aOCI\u30b3\u30fc\u30c9\u30fb\u30ea\u30dd\u30b8\u30c8\u30ea<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/239-0.png\" alt=\"\u30c8\u30ea\u30ac\u30fc \u4f5c\u6210\" \/><\/div>\n<p>\u5728\u300c\u7b56\u7565-\u9488\u7078\u70b9\u300d\u590d\u9009\u6846\u4e2d\u52fe\u9009\uff0c\u5e76\u70b9\u51fb\u300c\u4fdd\u5b58\u66f4\u6539\u300d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/241-0.png\" alt=\"\u30c8\u30ea\u30ac\u30fc \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/242-0.png\" alt=\"\u30c8\u30ea\u30ac\u30fc \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb&#8221;\u6dfb\u52a0\u52a8\u4f5c&#8221;\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/244-0.png\" alt=\"\u30c8\u30ea\u30ac\u30fc \u4f5c\u6210\" \/><\/div>\n<p>\u5728&#8221;\u63a8\u9001&#8221;\u9009\u9879\u4e0a\u6253\u52fe\uff0c\u5e76\u70b9\u51fb&#8221;\u9009\u62e9&#8221;\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/246-0.png\" alt=\"\u30c8\u30ea\u30ac\u30fc \u4f5c\u6210\" \/><\/div>\n<p>\u52fe\u9009&#8221;\u56fe\u50cf\u6784\u5efa\u8239&#8221;\uff0c\u7136\u540e\u70b9\u51fb&#8221;\u9009\u62e9&#8221;\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/248-0.png\" alt=\"\u30c8\u30ea\u30ac\u30fc \u4f5c\u6210\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/249-0.png\" alt=\"\u30c8\u30ea\u30ac\u30fc \u4f5c\u6210\" \/><\/div>\n<p>\u70b9\u51fb&#8221;\u6dfb\u52a0\u64cd\u4f5c&#8221;\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/251-0.png\" alt=\"\u30c8\u30ea\u30ac\u30fc \u4f5c\u6210\" \/><\/div>\n<p>\u6700\u540e\uff0c\u70b9\u51fb\u201c\u521b\u5efa\u201d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/253-0.png\" alt=\"\u30c8\u30ea\u30ac\u30fc \u4f5c\u6210\" \/><\/div>\n<p>\u4ee5\u4e0a\u662f\u7ed3\u675f\u4e86\u3002<\/p>\n<h3>\u91d1\u4e1d\u96c0\u6267\u884c<\/h3>\n<p>\u4fee\u6539\u6e90\u4ee3\u7801\uff0c\u5e76\u5c06\u5176\u4f5c\u4e3a\u9996\u4e2a\u7248\u672c\u90e8\u7f72\u3002<\/p>\n<pre class=\"post-pre\"><code>cd strategy-canary\r\n<\/code><\/pre>\n<p>\u5c06\u663e\u793a\u7684\u6587\u672c\u201cHello, Canary deploy!!\u201d\u66f4\u6539\u4e3a\u201cHello, Canary first!!\u201d\u3002<\/p>\n<pre class=\"post-pre\"><code>vim content.html\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n\r\n&lt;meta charset=\"UTF-8\"&gt;\r\n\r\n&lt;title&gt;Blue-Green&lt;\/title&gt;\r\n\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;h1&gt;Hello, Canary deploy !!&lt;\/h1&gt; #\u300cCanary deploy first!!\u300d\u306b\u5909\u66f4\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u5c06\u4ee3\u7801\u5e93\u8fdb\u884c\u63a8\u9001\u3002<\/p>\n<pre class=\"post-pre\"><code>git add -A .\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>git commit -m \"second commit\"\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>[main 1e304fc] second commit\r\n 2 files changed, 2 insertions(+), 2 deletions(-)\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>git branch -M main\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>git push -u origin main\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>Enumerating objects: 7, done.\r\nCounting objects: 100% (7\/7), done.\r\nDelta compression using up to 2 threads\r\nCompressing objects: 100% (4\/4), done.\r\nWriting objects: 100% (4\/4), 496 bytes | 496.00 KiB\/s, done.\r\nTotal 4 (delta 2), reused 0 (delta 0), pack-reused 0\r\nremote: Resolving deltas: 100% (2\/2)\r\nTo https:\/\/devops.scmservice.uk-london-1.oci.oraclecloud.com\/namespaces\/orasejapan\/projects\/canary\/repositories\/strategy-canary\r\n   f70c893..1e304fc  main -&gt; main\r\nBranch 'main' set up to track remote branch 'main' from 'origin'.\r\n<\/code><\/pre>\n<p>\u624b\u52a8\u6267\u884c\u90e8\u7f72\u6d41\u6c34\u7ebf\u7684\u6279\u51c6\u8fc7\u7a0b\u3002<br \/>\n\u4ece\u201c\u786e\u8ba4\u201d\u6c49\u5821\u83dc\u5355\u4e2d\u9009\u62e9\u201c\u6279\u51c6\u201d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/269-0.png\" alt=\"\u30ab\u30ca\u30ea\u30a2 \u5b9f\u884c\" \/><\/div>\n<p>\u8f93\u5165\u300c\u597d\u7684\u300d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u786e\u8ba4\u201d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/271-0.png\" alt=\"\u30ab\u30ca\u30ea\u30a2 \u5b9f\u884c\" \/><\/div>\n<p>\u786e\u8ba4\u90e8\u7f72\u6d41\u7a0b\u6210\u529f\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/273-0.png\" alt=\"\u30ab\u30ca\u30ea\u30a2 \u5b9f\u884c\" \/><\/div>\n<p>\u4e3a\u4e86\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\uff0c\u9700\u8981\u786e\u8ba4\u5916\u90e8IP\u3002<\/p>\n<pre class=\"post-pre\"><code>kubectl get ingress\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>NAME             CLASS    HOSTS   ADDRESS           PORTS   AGE\r\nhelloworld-ing   &lt;none&gt;   *       193.xxx.xxx.xxx   80      10m\r\n<\/code><\/pre>\n<p>\u6253\u5f00\u6d4f\u89c8\u5668\u5e76\u8fdb\u884c\u8bbf\u95ee\u3002<\/p>\n<pre class=\"post-pre\"><code>http:\/\/193.xxx.xxx.xxx\/content.html\r\n<\/code><\/pre>\n<p>\u6211\u4f1a\u786e\u8ba4\u4ee5\u4e0b\u6240\u8ff0\u7684\u5185\u5bb9\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/280-0.png\" alt=\"\u30ab\u30ca\u30ea\u30a2 \u5b9f\u884c\" \/><\/div>\n<p>\u5728\u90e8\u7f72\u7b2c\u4e8c\u4e2a\u7248\u672c\u65f6\uff0c\u540c\u65f6\u8fdb\u884c\u91d1\u4e1d\u96c0\u6d4b\u8bd5\u3002<\/p>\n<p>\u5c06\u663e\u793a\u7684\u6587\u672c\u201cHello, Canary deploy first!!\u201d\u66f4\u6539\u4e3a\u201cHello, Canary second!!\u201d\u3002<\/p>\n<pre class=\"post-pre\"><code>vim content.html\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n\r\n&lt;meta charset=\"UTF-8\"&gt;\r\n\r\n&lt;title&gt;Blue-Green&lt;\/title&gt;\r\n\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;h1&gt;Hello, Canary deploy first!!&lt;\/h1&gt; #\u300cCanary deploy second!!\u300d\u306b\u5909\u66f4\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u5c06\u4ee3\u7801\u5e93\u63a8\u9001\u5230\u5b58\u50a8\u5e93\u3002<\/p>\n<pre class=\"post-pre\"><code>git add -A .\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>git commit -m \"third commit\"\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>[main dbeed1d] third commit\r\n 1 file changed, 1 insertion(+), 1 deletion(-)\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>git branch -M main\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>git push -u origin main\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>Enumerating objects: 5, done.\r\nCounting objects: 100% (5\/5), done.\r\nDelta compression using up to 2 threads\r\nCompressing objects: 100% (3\/3), done.\r\nWriting objects: 100% (3\/3), 311 bytes | 311.00 KiB\/s, done.\r\nTotal 3 (delta 2), reused 0 (delta 0), pack-reused 0\r\nremote: Resolving deltas: 100% (2\/2)\r\nTo https:\/\/devops.scmservice.uk-london-1.oci.oraclecloud.com\/namespaces\/orasejapan\/projects\/canary\/repositories\/strategy-canary\r\n   1305812..dbeed1d  main -&gt; main\r\nBranch 'main' set up to track remote branch 'main' from 'origin'.\r\n<\/code><\/pre>\n<p>\u5728\u6279\u51c6\u90e8\u7f72\u7ba1\u9053\u4e4b\u524d\uff0c\u6211\u4eec\u5c06\u786e\u4fdd\u5728\u9ed8\u8ba4\u547d\u540d\u7a7a\u95f4\u4e2d\u90e8\u7f72\u7684\u201cHello\uff0cCanary deploy first!!\u201d\u548c\u5728canary\u547d\u540d\u7a7a\u95f4\u4e2d\u90e8\u7f72\u7684\u201cHello\uff0cCanary deploy second!!\u201d\u4e24\u8005\u90fd\u80fd\u5728\u6d4f\u89c8\u5668\u4e2d\u663e\u793a\u51fa\u6765\u3002<\/p>\n<p>\u5728canary\u547d\u540d\u7a7a\u95f4\u4e2d\u90e8\u7f72\u7684\u201cHello\uff0cCanary deploy second!!\u201d\u5c06\u4f1a\u4ee5\u6211\u4eec\u5728\u521b\u5efa\u90e8\u7f72\u7ba1\u9053\u65f6\u8bbe\u7f6e\u768425%\u6bd4\u4f8b\u8fdb\u884c\u5c55\u793a\u3002<\/p>\n<p>\u786e\u8ba4\u7b49\u5f85\u5904\u7406\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/294-0.png\" alt=\"\u30ab\u30ca\u30ea\u30a2 \u5b9f\u884c\" \/><\/div>\n<p>\u6211\u4f1a\u4e00\u8fb9\u6309\u51e0\u6b21\u6d4f\u89c8\u5668\u7684\u5237\u65b0\u6309\u94ae\uff0c\u540c\u65f6\u786e\u8ba4\u4ee5\u4e0b\u4e24\u4e2a\u663e\u793a\u662f\u5426\u51fa\u73b0\u3002<\/p>\n<p>\u5728\u9ed8\u8ba4\u547d\u540d\u7a7a\u95f4\u4e2d\u90e8\u7f72\u7684\u662f\u201cHello, \u9996\u6b21\u91d1\u4e1d\u96c0\u90e8\u7f72\uff01\u201d<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/297-0.png\" alt=\"\u30ab\u30ca\u30ea\u30a2 \u5b9f\u884c\" \/><\/div>\n<p>\u5728Canary\u547d\u540d\u7a7a\u95f4\u4e0a\u90e8\u7f72\u7684\u662f&#8221;\u4f60\u597d\uff0cCanary\u7b2c\u4e8c\u6b21\u90e8\u7f72\uff01&#8221;<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/299-0.png\" alt=\"\u30ab\u30ca\u30ea\u30a2 \u5b9f\u884c\" \/><\/div>\n<p>\u5728\u786e\u8ba4\u4e4b\u540e\uff0c\u624b\u52a8\u6267\u884c\u90e8\u7f72\u6d41\u6c34\u7ebf\u7684\u6279\u51c6\u5904\u7406\u3002<br \/>\n\u4ece\u201c\u786e\u8ba4\u201d\u83dc\u5355\u4e2d\u9009\u62e9\u201c\u6279\u51c6\u201d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/301-0.png\" alt=\"\u30ab\u30ca\u30ea\u30a2 \u5b9f\u884c\" \/><\/div>\n<p>\u8acb\u8f38\u5165\u300cOK\u300d\u4e26\u4e14\u9ede\u64ca\u300c\u78ba\u8a8d\u300d\u6309\u9215\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/303-0.png\" alt=\"\u30ab\u30ca\u30ea\u30a2 \u5b9f\u884c\" \/><\/div>\n<p>\u786e\u8ba4\u90e8\u7f72\u6d41\u7a0b\u6210\u529f\u5b8c\u6210\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/305-0.png\" alt=\"\u30ab\u30ca\u30ea\u30a2 \u5b9f\u884c\" \/><\/div>\n<p>\u6211\u4f1a\u518d\u6b21\u4ece\u6d4f\u89c8\u5668\u8bbf\u95ee\u9875\u9762\uff0c\u5e76\u591a\u6b21\u70b9\u51fb\u66f4\u65b0\u6309\u94ae\u4ee5\u786e\u4fdd\u5c4f\u5e55\u4e0a\u663e\u793a&#8221;Hello, Canary deploy second!!&#8221;\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/307-0.png\" alt=\"\u30ab\u30ca\u30ea\u30a2 \u5b9f\u884c\" \/><\/div>\n<p>\u5728\u5904\u7406\u524d\uff0c\u670925%\u7684\u6d41\u91cf\u88ab\u8f6c\u79fb\u5230\u91d1\u4e1d\u96c0\u547d\u540d\u7a7a\u95f4\uff0c\u4f46\u5728\u5904\u7406\u540e\uff0c\u5e94\u7528\u7a0b\u5e8f\u88ab\u66f4\u65b0\u5230\u9ed8\u8ba4\u547d\u540d\u7a7a\u95f4\uff0c\u5e76\u4e14\u4ee5100%\u7684\u6bd4\u4f8b\u663e\u793a\u201cHello, Canary deploy second!!\u201d\u3002<\/p>\n<p>\u5728\u7b49\u5f85\u786e\u8ba4\u5904\u7406\u671f\u95f4\uff0ccanary\u547d\u540d\u7a7a\u95f4\u7684Ingress\u88ab\u8bbe\u5b9a\u4e3a&#8221;canary-weight: &#8220;25&#8221;&#8221;\u3002<\/p>\n<pre class=\"post-pre\"><code>kubectl get ingress -o yaml -n canary\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>apiVersion: v1\r\nitems:\r\n- apiVersion: networking.k8s.io\/v1\r\n  kind: Ingress\r\n  metadata:\r\n    annotations:\r\n      kubernetes.io\/ingress.class: nginx\r\n      nginx.ingress.kubernetes.io\/canary: \"true\"\r\n      nginx.ingress.kubernetes.io\/canary-by-header: redirect-to-canary\r\n      nginx.ingress.kubernetes.io\/canary-weight: \"25\"\r\n\u30fb\r\n\u30fb\uff1c\u7701\u7565\uff1e\r\n\u30fb\r\n<\/code><\/pre>\n<p>\u5728\u786e\u8ba4\u5904\u7406\u4e4b\u540e\uff0ccanary\u547d\u540d\u7a7a\u95f4\u7684Ingress\u4f1a\u53d8\u6210\u201ccanary-weight: &#8220;0&#8221;\u201d\u3002<\/p>\n<pre class=\"post-pre\"><code>kubectl get ingress -o yaml -n canary\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>apiVersion: v1\r\nitems:\r\n- apiVersion: networking.k8s.io\/v1\r\n  kind: Ingress\r\n  metadata:\r\n    annotations:\r\n      kubernetes.io\/ingress.class: nginx\r\n      nginx.ingress.kubernetes.io\/canary: \"true\"\r\n      nginx.ingress.kubernetes.io\/canary-by-header: redirect-to-canary\r\n      nginx.ingress.kubernetes.io\/canary-weight: \"0\"\r\n\u30fb\r\n\u30fb\uff1c\u7701\u7565\uff1e\r\n\u30fb\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u91d1\u4e1d\u96c0\u73af\u5883 \u73af\u5883\u603b\u89c8\u56fe \u597d\u7684 de) \u53c2\u8003\u4ee5\u4e0b\u7684\u6559\u7a0b\uff0c\u642d\u5efaKubernetes\u96c6\u7fa4\u3002 \u5728\u8fd9\u672c\u4e66\u4e2d\uff0c\u6211\u4eec\u5c06\u73af\u5883\u63cf [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32992","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>OCI DevOps\u548cOKE\u4e2d\u7684\u91d1\u4e1d\u96c0\u53d1\u5e03 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops\u548coke\u4e2d\u7684\u91d1\u4e1d\u96c0\u53d1\u5e03\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OCI DevOps\u548cOKE\u4e2d\u7684\u91d1\u4e1d\u96c0\u53d1\u5e03\" \/>\n<meta property=\"og:description\" content=\"\u91d1\u4e1d\u96c0\u73af\u5883 \u73af\u5883\u603b\u89c8\u56fe \u597d\u7684 de) \u53c2\u8003\u4ee5\u4e0b\u7684\u6559\u7a0b\uff0c\u642d\u5efaKubernetes\u96c6\u7fa4\u3002 \u5728\u8fd9\u672c\u4e66\u4e2d\uff0c\u6211\u4eec\u5c06\u73af\u5883\u63cf [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops\u548coke\u4e2d\u7684\u91d1\u4e1d\u96c0\u53d1\u5e03\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-27T03:14:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T06:57:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/2-0.png\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops%e5%92%8coke%e4%b8%ad%e7%9a%84%e9%87%91%e4%b8%9d%e9%9b%80%e5%8f%91%e5%b8%83\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops%e5%92%8coke%e4%b8%ad%e7%9a%84%e9%87%91%e4%b8%9d%e9%9b%80%e5%8f%91%e5%b8%83\/\",\"name\":\"OCI DevOps\u548cOKE\u4e2d\u7684\u91d1\u4e1d\u96c0\u53d1\u5e03 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-11-27T03:14:24+00:00\",\"dateModified\":\"2024-04-30T06:57:06+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops%e5%92%8coke%e4%b8%ad%e7%9a%84%e9%87%91%e4%b8%9d%e9%9b%80%e5%8f%91%e5%b8%83\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops%e5%92%8coke%e4%b8%ad%e7%9a%84%e9%87%91%e4%b8%9d%e9%9b%80%e5%8f%91%e5%b8%83\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops%e5%92%8coke%e4%b8%ad%e7%9a%84%e9%87%91%e4%b8%9d%e9%9b%80%e5%8f%91%e5%b8%83\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OCI DevOps\u548cOKE\u4e2d\u7684\u91d1\u4e1d\u96c0\u53d1\u5e03\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops%e5%92%8coke%e4%b8%ad%e7%9a%84%e9%87%91%e4%b8%9d%e9%9b%80%e5%8f%91%e5%b8%83\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"OCI DevOps\u548cOKE\u4e2d\u7684\u91d1\u4e1d\u96c0\u53d1\u5e03 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops\u548coke\u4e2d\u7684\u91d1\u4e1d\u96c0\u53d1\u5e03\/","og_locale":"zh_CN","og_type":"article","og_title":"OCI DevOps\u548cOKE\u4e2d\u7684\u91d1\u4e1d\u96c0\u53d1\u5e03","og_description":"\u91d1\u4e1d\u96c0\u73af\u5883 \u73af\u5883\u603b\u89c8\u56fe \u597d\u7684 de) \u53c2\u8003\u4ee5\u4e0b\u7684\u6559\u7a0b\uff0c\u642d\u5efaKubernetes\u96c6\u7fa4\u3002 \u5728\u8fd9\u672c\u4e66\u4e2d\uff0c\u6211\u4eec\u5c06\u73af\u5883\u63cf [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops\u548coke\u4e2d\u7684\u91d1\u4e1d\u96c0\u53d1\u5e03\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-11-27T03:14:24+00:00","article_modified_time":"2024-04-30T06:57:06+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14e737434c4406bfcc46\/2-0.png"}],"author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops%e5%92%8coke%e4%b8%ad%e7%9a%84%e9%87%91%e4%b8%9d%e9%9b%80%e5%8f%91%e5%b8%83\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops%e5%92%8coke%e4%b8%ad%e7%9a%84%e9%87%91%e4%b8%9d%e9%9b%80%e5%8f%91%e5%b8%83\/","name":"OCI DevOps\u548cOKE\u4e2d\u7684\u91d1\u4e1d\u96c0\u53d1\u5e03 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-11-27T03:14:24+00:00","dateModified":"2024-04-30T06:57:06+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops%e5%92%8coke%e4%b8%ad%e7%9a%84%e9%87%91%e4%b8%9d%e9%9b%80%e5%8f%91%e5%b8%83\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/oci-devops%e5%92%8coke%e4%b8%ad%e7%9a%84%e9%87%91%e4%b8%9d%e9%9b%80%e5%8f%91%e5%b8%83\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops%e5%92%8coke%e4%b8%ad%e7%9a%84%e9%87%91%e4%b8%9d%e9%9b%80%e5%8f%91%e5%b8%83\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"OCI DevOps\u548cOKE\u4e2d\u7684\u91d1\u4e1d\u96c0\u53d1\u5e03"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/oci-devops%e5%92%8coke%e4%b8%ad%e7%9a%84%e9%87%91%e4%b8%9d%e9%9b%80%e5%8f%91%e5%b8%83\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=32992"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32992\/revisions"}],"predecessor-version":[{"id":92590,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32992\/revisions\/92590"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=32992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=32992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=32992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}