{"id":32192,"date":"2023-10-04T22:37:54","date_gmt":"2023-04-28T14:11:23","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8c%e4%ba%86openshift%e9%9b%86%e7%be%a4%e5%ba%94%e7%94%a8%e8%bf%81%e7%a7%bb%e5%b7%a5%e5%85%b7%e7%9a%84%e4%ba%8b%e6%83%85%e3%80%82-2\/"},"modified":"2024-05-04T02:54:09","modified_gmt":"2024-05-03T18:54:09","slug":"%e6%88%91%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8c%e4%ba%86openshift%e9%9b%86%e7%be%a4%e5%ba%94%e7%94%a8%e8%bf%81%e7%a7%bb%e5%b7%a5%e5%85%b7%e7%9a%84%e4%ba%8b%e6%83%85%e3%80%82-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8c%e4%ba%86openshift%e9%9b%86%e7%be%a4%e5%ba%94%e7%94%a8%e8%bf%81%e7%a7%bb%e5%b7%a5%e5%85%b7%e7%9a%84%e4%ba%8b%e6%83%85%e3%80%82-2\/","title":{"rendered":"\u6211\u5c1d\u8bd5\u8fd0\u884c\u4e86OpenShift\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u5de5\u5177\u7684\u4e8b\u60c5"},"content":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u662f2019\u5e74\u7684OpenShift Advent Calendar\u4e2d\u7684\u7b2c\u516d\u5929\u3002<\/p>\n<h1>\u9996\u5148<\/h1>\n<p>\u4ece\u7a0d\u5fae\u665a\u4e86\u4e00\u70b9\u7684\u65e5\u671f2019\u5e7410\u670831\u65e5\u8d77\uff0c\u300aOpenShift\u5bb9\u5668\u5e73\u53f0\uff08OCP\uff094.2\u300b\u63a8\u51fa\u4e86Cluster Application Migration\uff08CAM\uff09\u5de5\u5177\u7684GA\uff08\u901a\u7528\u53ef\u7528\u6027\uff09\u3002<\/p>\n<p>\u7531\u4e8eOCP 4\u4e0eOCP 3\u5728\u67b6\u6784\u4e0a\u53d1\u751f\u4e86\u91cd\u5927\u6539\u53d8\uff0c\u56e0\u6b64\u65e0\u6cd5\u4eceOCP 3\u76f4\u63a5\u5347\u7ea7\u5230OCP 4\u3002\u56e0\u6b64\uff0c\u63d0\u4f9b\u4e86\u4ee5\u4e0b\u4e24\u79cd\u8fc1\u79fb\u5de5\u5177\uff1a<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Control Plane Migration Assistant (CPMA)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Cluster Application Migration (CAM) tool<\/ul>\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u60f3\u4ecb\u7ecd\u4e00\u4e0b\u5728OCP 3\u96c6\u7fa4\u4e0a\u8fdb\u884c\u5e94\u7528\u7a0b\u5e8f\u8fc1\u79fb\u7684Cluster Application Migration (CAM)\u5de5\u5177\u3002<\/p>\n<h1>\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\uff08CAM\uff09\u5de5\u5177\u662f\u4ec0\u4e48\uff1f<\/h1>\n<p>\u7fa4\u96c6\u5e94\u7528\u8fc1\u79fb\uff08CAM\uff09\u5de5\u5177\u662f\u4e00\u4e2a\u57fa\u4e8e\u5f00\u6e90\u9879\u76eeVelero\u548cRestic\u7684\u5de5\u5177\uff0c\u7528\u4e8e\u5728OCP\u4e0a\u8fdb\u884c\u5e94\u7528\u7a0b\u5e8f\u8fc1\u79fb\u3002\u622a\u81f3\u672c\u6587\u64b0\u5199\u65f6\uff082019\u5e7412\u6708\uff09\uff0cCAM\u5de5\u5177\u652f\u6301\u4eceOCP 3.7\u53ca\u4ee5\u4e0a\u7248\u672c\u8fc1\u79fb\u5230OCP 4.2\u7684\u5e94\u7528\u7a0b\u5e8f\u8fc1\u79fb\u3002<\/p>\n<p>\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u5de5\u5177\u7684\u67b6\u6784\u5982\u4e0b\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10ba37434c4406bf1c16\/9-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 10.37.05.png\" \/><\/div>\n<p>Velero\u53ef\u4ee5\u5b89\u88c5\u5728\u8fc1\u79fb\u6e90\u548c\u76ee\u6807\u7684OCP\u96c6\u7fa4\u4e0a\uff0c\u901a\u8fc7Amazon S3\u517c\u5bb9\u7684\u5bf9\u8c61\u5b58\u50a8Replication repository\uff0c\u5728PV\uff08\u6301\u4e45\u5377\uff09\u4e2d\u8fc1\u79fb\u6570\u636e\u548c\u5e94\u7528\u5bb9\u5668\u955c\u50cf\u7b49\u3002<\/p>\n<h1>\u5c1d\u8bd5\u8fd0\u884c Cluster Application Migration (CAM) \u5de5\u5177\u3002<\/h1>\n<p>\u6211\u60f3\u8981\u8fb9\u8fd0\u884c Cluster Application Migration \u5de5\u5177\uff0c\u8fb9\u8fdb\u884c\u89e3\u91ca\u3002<\/p>\n<h2>\u8fc1\u79fb\u76ee\u6807\u5e94\u7528\u7a0b\u5e8f<\/h2>\n<p>\u672c\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u201cNode.js + MongoDB\u201d\u6a21\u677f\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u6837\u672c\u5e94\u7528\u7a0b\u5e8f\uff0c\u5728\u201cmigration-test\u201d\u9879\u76ee\u4e2d\u8fdb\u884c\u8fc1\u79fb\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\n<span class=\"gp\">$<\/span> oc get all <span class=\"nt\">-n<\/span> migration-test\r\n<span class=\"go\">NAME                                  READY     STATUS      RESTARTS   AGE\r\npod\/mongodb-1-qvp9q                   1\/1       Running     0          13m\r\npod\/nodejs-mongo-persistent-1-6rvb6   1\/1       Running     0          11m\r\npod\/nodejs-mongo-persistent-1-build   0\/1       Completed   0          13m\r\n\r\nNAME                                              DESIRED   CURRENT   READY     AGE\r\nreplicationcontroller\/mongodb-1                   1         1         1         13m\r\nreplicationcontroller\/nodejs-mongo-persistent-1   1         1         1         11m\r\n\r\nNAME                              TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)     AGE\r\n<\/span><span class=\"gp\">service\/mongodb                   ClusterIP   172.30.201.103   &lt;none&gt;<\/span>        27017\/TCP   13m\r\n<span class=\"gp\">service\/nodejs-mongo-persistent   ClusterIP   172.30.99.50     &lt;none&gt;<\/span>        8080\/TCP    13m\r\n<span class=\"go\">\r\nNAME                                                         REVISION   DESIRED   CURRENT   TRIGGERED BY\r\ndeploymentconfig.apps.openshift.io\/mongodb                   1          1         1         config,image(mongodb:3.4)\r\ndeploymentconfig.apps.openshift.io\/nodejs-mongo-persistent   1          1         1         config,image(nodejs-mongo-persistent:latest)\r\n\r\nNAME                                                     TYPE      FROM      LATEST\r\nbuildconfig.build.openshift.io\/nodejs-mongo-persistent   Source    Git       1\r\n\r\nNAME                                                 TYPE      FROM          STATUS     STARTED          DURATION\r\nbuild.build.openshift.io\/nodejs-mongo-persistent-1   Source    Git@e59fe75   Complete   13 minutes ago   2m21s\r\n\r\nNAME                                                     DOCKER REPO                                                               TAGS      UPDATED\r\nimagestream.image.openshift.io\/nodejs-mongo-persistent   docker-registry.default.svc:5000\/migration-test\/nodejs-mongo-persistent   latest    11 minutes ago\r\n\r\nNAME                                               HOST\/PORT                                                              PATH      SERVICES                  PORT      TERMINATION   WILDCARD\r\n<\/span><span class=\"gp\">route.route.openshift.io\/nodejs-mongo-persistent   nodejs-mongo-persistent-migration-test.apps.GUID.example.opentlc.com             nodejs-mongo-persistent   &lt;all&gt;<\/span>                   None\r\n<\/code><\/pre>\n<h2>\u524d\u63d0\u6761\u4ef6 t\u00ed<\/h2>\n<p>\u4e3a\u4e86\u5c06\u5e94\u7528\u7a0b\u5e8f\u4ece OCP 3 \u8fc1\u79fb\u5230 OCP 4 \u7fa4\u96c6\uff0c\u9700\u8981\u4e8b\u5148\u6ee1\u8db3\u4ee5\u4e0b\u524d\u63d0\u6761\u4ef6\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u5143\/\u5148\u306e OCP \u30af\u30e9\u30b9\u30bf\u306b\u5bfe\u3057\u3066 cluster-admin \u6a29\u9650\u3092\u6301\u3063\u3066\u3044\u308b\u3053\u3068<\/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\">OCP 3 \u30af\u30e9\u30b9\u30bf\u3078\u306e\u64cd\u4f5c\u306e\u305f\u3081 docker (\u3082\u3057\u304f\u306f podman) \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068<\/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\">Replication repository \u306b\u5229\u7528\u3059\u308b\u305f\u3081 Amazon S3 \u4e92\u63db\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u3053\u3068<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u5143\u306e OCP \u30af\u30e9\u30b9\u30bf\u306b\u304a\u3044\u3066\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e ImageStream (nodejs:6 \u306a\u3069) \u3092\u5229\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u5148\u306e OCP \u30af\u30e9\u30b9\u30bf\u306b\u5bfe\u3057\u3066 ImageStream \u304c\u4e8b\u524d\u306b\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u3053\u3068<\/ul>\n<p>\u8bf7\u5728 OCP 3 \u8fc1\u79fb\u5230 OCP 4 \u7684\u8fc7\u7a0b\u4e2d\uff0c\u9664\u4e0a\u8ff0\u5916\uff0c\u8fd8\u9700\u8003\u8651\u5230\u67b6\u6784\u65b9\u9762\u7684\u53d8\u5316\u3002\u8bf7\u67e5\u770b\u4ee5\u4e0b\u7684\u7f51\u5740\uff0c\u4e86\u89e3\u6240\u9700\u8003\u8651\u7684\u8981\u70b9\u3002<\/p>\n<p>1.2.2. \u8fc1\u79fb\u8003\u8651\u4e8b\u9879<br \/>\nhttps:\/\/access.redhat.com\/documentation\/en-us\/openshift_container_platform\/4.2\/html-single\/migration\/index#migration-considerations<\/p>\n<p>1.2.2. \u8fc1\u79fb\u7684\u8003\u8651\u4e8b\u9879<\/p>\n<h2>CAM\u64cd\u4f5c\u5458\u7684\u5b89\u88c5<\/h2>\n<p>\u5728 Cluster Application Migration \u5de5\u5177\u4e2d\uff0c\u9700\u8981\u4e3a\u6bcf\u4e2a\u8fc1\u79fb\u6e90\/\u76ee\u6807\u7684 OCP \u96c6\u7fa4\u5b89\u88c5 CAM Operator\u3002<\/p>\n<h3>\u5728OCP 3\u96c6\u7fa4\u4e2d\u5b89\u88c5CAM\u8fd0\u7b97\u7b26<\/h3>\n<p>\u9996\u5148\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u767b\u5f55\u5230Red Hat\u5bb9\u5668\u6ce8\u518c\u8868\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> docker login registry.redhat.io\r\n<\/code><\/pre>\n<p>\u63a5\u4e0b\u6765\uff0c\u901a\u8fc7\u6267\u884c\u4ee5\u4e0b\u4e24\u4e2a\u547d\u4ee4\uff0c\u4e0b\u8f7d\u5b89\u88c5CAM\u64cd\u4f5c\u5458\u6240\u9700\u7684\u6e05\u5355\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> docker <span class=\"nb\">cp<\/span> <span class=\"si\">$(<\/span>docker create registry.redhat.io\/rhcam-1-0\/openshift-migration-rhel7-operator:v1.0<span class=\"si\">)<\/span>:\/operator.yml .\/\r\n<span class=\"gp\">#<\/span> docker <span class=\"nb\">cp<\/span> <span class=\"si\">$(<\/span>docker create registry.redhat.io\/rhcam-1-0\/openshift-migration-rhel7-operator:v1.0<span class=\"si\">)<\/span>:\/controller-3.yml .\/\r\n<\/code><\/pre>\n<p>\u4ece\u5df2\u4e0b\u8f7d\u7684\u6e05\u5355\u6587\u4ef6\u4e2d\u751f\u6210CAM\u64cd\u4f5c\u5458\u7684\u81ea\u5b9a\u4e49\u8d44\u6e90\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> oc create <span class=\"nt\">-f<\/span> operator.yml \r\n<span class=\"go\">namespace\/openshift-migration created\r\nrolebinding.rbac.authorization.k8s.io\/system:deployers created\r\nrolebinding.rbac.authorization.k8s.io\/system:image-builders created\r\nrolebinding.rbac.authorization.k8s.io\/system:image-pullers created\r\nserviceaccount\/migration-operator created\r\ncustomresourcedefinition.apiextensions.k8s.io\/migrationcontrollers.migration.openshift.io created\r\nrole.rbac.authorization.k8s.io\/migration-operator created\r\nrolebinding.rbac.authorization.k8s.io\/migration-operator created\r\nclusterrolebinding.rbac.authorization.k8s.io\/migration-operator created\r\ndeployment.apps\/migration-operator created\r\n\r\n<\/span><span class=\"gp\">$<\/span> oc create <span class=\"nt\">-f<\/span> controller-3.yml \r\n<span class=\"go\">migrationcontroller.migration.openshift.io\/migration-controller created\r\n<\/span><\/code><\/pre>\n<p>\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u53ef\u4ee5\u786e\u8ba4CAM\u64cd\u4f5c\u5458\u5df2\u6210\u529f\u5b89\u88c5\u5230OCP 3\u96c6\u7fa4\u4e2d\uff0c\u5b8c\u6210CAM\u64cd\u4f5c\u5458\u7684\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> oc get po <span class=\"nt\">-n<\/span> openshift-migration\r\n<span class=\"go\">NAME                                  READY     STATUS    RESTARTS   AGE\r\nmigration-operator-69d58b9796-qznlz   2\/2       Running   0          1m\r\nrestic-2lw8h                          1\/1       Running   0          1m\r\nrestic-2qv2r                          1\/1       Running   0          1m\r\nrestic-5nd9c                          1\/1       Running   0          1m\r\nrestic-65xhr                          1\/1       Running   0          1m\r\nrestic-67kgb                          1\/1       Running   0          1m\r\nrestic-jzbrn                          1\/1       Running   0          1m\r\nrestic-kcp4c                          1\/1       Running   0          1m\r\nrestic-vnf2d                          1\/1       Running   0          1m\r\nvelero-d5c888f7d-nvtjh                1\/1       Running   0          1m\r\n<\/span><\/code><\/pre>\n<h3>\u5728\u8fc1\u79fb\u81f3 OCP 4.2 \u96c6\u7fa4\u7684\u76ee\u6807\u4f4d\u7f6e\u5b89\u88c5 CAM Operator\u3002<\/h3>\n<p>\u60a8\u53ef\u4ee5\u4eceOperatorHub\u5b89\u88c5CAM Operator\u5230OCP 4\u96c6\u7fa4\u7684\u8fc1\u79fb\u76ee\u6807\u3002<\/p>\n<p>\u9996\u5148\uff0c\u4eceWeb\u63a7\u5236\u53f0\u7684Administration -&gt; Namespaces\u4e2d\u9009\u62e9\u300cCreate Namespace\u300d\u6309\u94ae\u3002\u5728Name\u5b57\u6bb5\u4e2d\u8f93\u5165&#8221;openshift-migration&#8221;\uff0c\u7136\u540e\u70b9\u51fb\u300cCreate\u300d\u6309\u94ae\uff0c\u5373\u53ef\u521b\u5efa\u7528\u4e8e\u5b89\u88c5CAM Operator\u7684Namespace\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u4ece\u201c\u64cd\u4f5c\u5458\u201d-&gt;\u201c\u64cd\u4f5c\u5458\u4e2d\u5fc3\u201d\u4e2d\uff0c\u5c06\u7b5b\u9009\u5668\u8bbe\u7f6e\u4e3a\u201c\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u64cd\u4f5c\u5458\u201d\uff0c\u7136\u540e\u9009\u62e9\u663e\u793a\u7684\u201c\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u64cd\u4f5c\u5458\u201d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10ba37434c4406bf1c16\/36-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 12.46.43.png\" \/><\/div>\n<p>\u70b9\u51fb\u300c\u5b89\u88c5\u300d\u6309\u94ae\uff0c\u5728\u201c\u521b\u5efa\u64cd\u4f5c\u5458\u8ba2\u9605\u201d\u9875\u9762\u4e0a\uff0c\u6309\u4e0b\u9ed8\u8ba4\u8bbe\u7f6e\u7684\u300c\u8ba2\u9605\u300d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10ba37434c4406bf1c16\/38-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 12.48.41.png\" \/><\/div>\n<p>\u5f53\u753b\u9762\u663e\u793a\u540e\uff0c\u70b9\u51fb\u63d0\u4f9b\u7684API\u5217\u8868\u4e2d\u7684\u201c\u67e5\u770b\u66f4\u591a12\u4e2a&#8230;\u201d\u94fe\u63a5\u3002\u7136\u540e\u4ece\u201c\u521b\u5efa\u65b0\u201d\u6309\u94ae\u4e2d\u9009\u62e9\u201c\u8fc1\u79fb\u63a7\u5236\u5668\u201d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10ba37434c4406bf1c16\/40-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 12.53.19.png\" \/><\/div>\n<p>\u5728\u663e\u793a\u201c\u521b\u5efa\u8fc1\u79fb\u63a7\u5236\u5668\u201d\u754c\u9762\u540e\uff0c\u8bf7\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\/657d10ba37434c4406bf1c16\/42-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 13.00.58.png\" \/><\/div>\n<p>\u5982\u679c\u6240\u6709\u7684Pod\u90fd\u5df2\u7ecf\u5904\u4e8eRunning\u72b6\u6001\uff0c\u90a3\u4e48CAM Operator\u7684\u5b89\u88c5\u5c31\u5df2\u7ecf\u5b8c\u6210\u4e86\u3002<\/p>\n<h2>\u5728OCP 3\u96c6\u7fa4\u4e2d\u6dfb\u52a0CORS\uff08\u8de8\u6e90\u8d44\u6e90\u5171\u4eab\uff09\u7684\u914d\u7f6e<\/h2>\n<p>\u4e3a\u4e86\u5141\u8bb8 OCP 4 \u96c6\u7fa4\u4e0a\u7684 Cluster Application Migration \u5de5\u5177\u8fde\u63a5\u5230 OCP 3 \u7684 API \u670d\u52a1\u5668\uff0c\u9700\u8981\u5728 OCP 3 \u96c6\u7fa4\u4e0a\u6dfb\u52a0\u8de8\u57df\u8d44\u6e90\u5171\u4eab\uff08CORS\uff09\u914d\u7f6e\u3002<\/p>\n<p>\u9996\u5148\uff0c\u5728OCP 4\u96c6\u7fa4\u7684\u8fc1\u79fb\u76ee\u6807\u4e0a\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u751f\u6210CORS\u914d\u7f6e\u5185\u5bb9\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> oc get <span class=\"nt\">-n<\/span> openshift-migration route\/migration <span class=\"nt\">-o<\/span> go-template<span class=\"o\">=<\/span><span class=\"s1\">'(?i)\/\/{{ .spec.host }}(:|\\z){{ println }}'<\/span> | <span class=\"nb\">sed<\/span> <span class=\"s1\">'s,\\.,\\\\.,g'<\/span>\r\n<span class=\"go\">(?i)\/\/migration-openshift-migration\\.apps\\.cluster-GUID\\.sandboxXXXX\\.opentlc\\.com(:|\\z)\r\n<\/span><\/code><\/pre>\n<p>\u7136\u540e\uff0c\u5bf9\u6765\u81ea\u8fc1\u79fb\u6e90OCP 3\u96c6\u7fa4\u7684\u6bcf\u4e2aMaster\u8282\u70b9\u7684\/etc\/origin\/master\/master-config.yaml\u6587\u4ef6\uff0c\u4f7f\u7528\u4e0a\u8ff0\u547d\u4ee4\u83b7\u53d6\u7684\u5b57\u7b26\u4e32\u6dfb\u52a0\u5230corsAllowedOrigins\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"s\">(\u7701\u7565)<\/span>\r\n<span class=\"na\">corsAllowedOrigins<\/span><span class=\"pi\">:<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/127\\.0\\.0\\.1(:|\\z)<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/localhost(:|\\z)<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/192\\.168\\.0\\.66(:|\\z)<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/172\\.30\\.0\\.1(:|\\z)<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/kubernetes\\.default(:|\\z)<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/kubernetes\\.default\\.svc\\.cluster\\.local(:|\\z)<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/kubernetes(:|\\z)<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/openshift\\.default(:|\\z)<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/loadbalancer\\.d6bb\\.internal(:|\\z)<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/openshift\\.default\\.svc(:|\\z)<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/loadbalancer\\.d6bb\\.example\\.opentlc\\.com(:|\\z)<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/master1\\.d6bb\\.internal(:|\\z)<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/openshift\\.default\\.svc\\.cluster\\.local(:|\\z)<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/kubernetes\\.default\\.svc(:|\\z)<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/openshift(:|\\z)<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"s\">(?i)\/\/migration-openshift-migration\\.apps\\.cluster-GUID\\.sandboxXXXX\\.opentlc\\.com(:|\\z)<\/span>\r\n<span class=\"s\">(\u7701\u7565)<\/span>\r\n<\/code><\/pre>\n<p>\u4e3a\u4e86\u542f\u7528CORS\u8bbe\u7f6e\uff0c\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u91cd\u65b0\u542f\u52a8OCP 3\u96c6\u7fa4\u6bcf\u4e2aMaster\u8282\u70b9\u4e0a\u7684kubelet\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> \/usr\/local\/bin\/master-restart api\r\n<span class=\"gp\">#<\/span> \/usr\/local\/bin\/master-restart controllers\r\n<\/code><\/pre>\n<p>\u60a8\u53ef\u4ee5\u901a\u8fc7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u793a\u4f8b\u5e76\u68c0\u67e5\u662f\u5426\u8fd4\u56de HTTP \u54cd\u5e94\u4ee3\u7801204\u6765\u786e\u8ba4CORS\u662f\u5426\u5df2\u6b63\u786e\u914d\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> curl <span class=\"nt\">-v<\/span> <span class=\"nt\">-k<\/span> <span class=\"nt\">-X<\/span> OPTIONS <span class=\"se\">\\<\/span>\r\n<span class=\"o\">&gt;<\/span> <span class=\"s2\">\"(OCP 3 \u30af\u30e9\u30b9\u30bf\u306e URL)\/apis\/migration.openshift.io\/v1alpha1\/namespaces\/openshift-migration\/migclusters\"<\/span> <span class=\"se\">\\<\/span>\r\n<span class=\"o\">&gt;<\/span> <span class=\"nt\">-H<\/span> <span class=\"s2\">\"Access-Control-Request-Method: GET\"<\/span> <span class=\"se\">\\<\/span>\r\n<span class=\"o\">&gt;<\/span> <span class=\"nt\">-H<\/span> <span class=\"s2\">\"Access-Control-Request-Headers: authorization\"<\/span> <span class=\"se\">\\<\/span>\r\n<span class=\"o\">&gt;<\/span> <span class=\"nt\">-H<\/span> <span class=\"s2\">\"Origin: (OCP 4 \u30af\u30e9\u30b9\u30bf\u4e0a\u306e CAM Web \u30b3\u30f3\u30bd\u30fc\u30eb\u306e URL)\"<\/span> \r\n<span class=\"go\">\r\n (\u4e2d\u7565)\r\n\r\n&lt; HTTP\/1.1 204 No Content\r\n&lt; Access-Control-Allow-Credentials: true\r\n&lt; Access-Control-Allow-Headers: Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, X-Requested-With, If-Modified-Since\r\n&lt; Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE, PATCH\r\n&lt; Access-Control-Allow-Origin: https:\/\/migration-openshift-migration.apps.cluster-GUID.sandboxXXXX.opentlc.com\r\n&lt; Access-Control-Expose-Headers: Date\r\n&lt; Cache-Control: no-store\r\n&lt; Date: Thu, 28 Nov 2019 01:56:43 GMT\r\n&lt; \r\n<\/span><span class=\"gp\">* Connection #<\/span>0 to host loadbalancer.GUID.example.opentlc.com left intact\r\n<\/code><\/pre>\n<h2>\u4f7f\u7528CAM Web\u63a7\u5236\u53f0\u64cd\u4f5c<\/h2>\n<p>\u56e0\u4e3a\u5df2\u7ecf\u5728\u6b64\u4e4b\u524d\u5b8c\u6210\u4e86 Cluster Application Migration \u5de5\u5177\u7684\u5b89\u88c5\u548c\u914d\u7f6e\uff0c\u6240\u4ee5\u63a5\u4e0b\u6765\u5c06\u89e3\u91ca CAM Web \u63a7\u5236\u53f0\u7684\u64cd\u4f5c\u6b65\u9aa4\u3002<\/p>\n<h3>\u5728 OCP 3 \u96c6\u7fa4\u4e2d\u6dfb\u52a0\u8fc1\u79fb\u6e90<\/h3>\n<p>\u5728\u4f7f\u7528OCP 4\u96c6\u7fa4\u65f6\uff0c\u901a\u8fc7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5e76\u5c06\u7ed3\u679c\u4e2d\u7684URL\u590d\u5236\u5230\u6d4f\u89c8\u5668\u4e2d\uff0c\u53ef\u4ee5\u6253\u5f00CAM Web\u63a7\u5236\u53f0\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> oc get route\/migration <span class=\"nt\">-n<\/span> openshift-migration <span class=\"nt\">-o<\/span> go-template<span class=\"o\">=<\/span><span class=\"s2\">\"{{.spec.host}}\"<\/span>\r\n<span class=\"go\">migration-openshift-migration.apps.cluster-GUID.sandboxXXXX.opentlc.com\r\n<\/span><\/code><\/pre>\n<p>\u8bf7\u4f7f\u7528OCP 4\u96c6\u7fa4\u7684\u8ba4\u8bc1\u4fe1\u606f\u767b\u5f55\uff0c\u5c4f\u5e55\u4e0a\u4f1a\u663e\u793a\u767b\u5f55\u754c\u9762\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u4e3a\u4e86\u5411Cluster Application Migration tool\u6dfb\u52a0OCP 3\u96c6\u7fa4\uff0c\u9700\u8981\u5728OCP 3\u96c6\u7fa4\u4e0a\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u83b7\u53d6\u4ee4\u724c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> oc sa get-token mig <span class=\"nt\">-n<\/span> openshift-migration\r\n<\/code><\/pre>\n<p>\u5728CAM Web\u63a7\u5236\u53f0\u4e2d\uff0c\u4f9d\u6b21\u70b9\u51fb&#8221;Clusters&#8221; -&gt; &#8220;Add cluster&#8221;\uff0c\u7136\u540e\u8f93\u5165\u4ee5\u4e0b\u6570\u503c\uff0c\u5e76\u70b9\u51fb&#8221;Add Cluster&#8221;\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Cluster Name: (OCP 3 \u30af\u30e9\u30b9\u30bf\u540d)<\/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\">Url: (OCP 3 \u30af\u30e9\u30b9\u30bf\u306e URL)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Service account token: (\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u306b\u3088\u308a\u53d6\u5f97\u3057\u305f\u30c8\u30fc\u30af\u30f3)<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10ba37434c4406bf1c16\/64-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 15.06.04.png\" \/><\/div>\n<p>\u5f53\u663e\u793a\u51fa&#8221;\u8fde\u63a5\u6210\u529f&#8221;\u65f6\uff0c\u5219\u8868\u793a\u4eceOCP 3\u96c6\u7fa4\u7684\u8fc1\u79fb\u6e90\u5df2\u7ecf\u6dfb\u52a0\u5b8c\u6210\u3002<\/p>\n<h3>\u65b0\u589e\u590d\u5236\u4ed3\u5e93<\/h3>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u6dfb\u52a0\u4e00\u4e2a\u590d\u5236\u5b58\u50a8\u5e93\u4ee5\u8fc1\u79fb\u5e94\u7528\u7a0b\u5e8f\u5bb9\u5668\u6620\u50cf\u548cPV\uff08\u6301\u4e45\u5377\uff09\u4e2d\u7684\u6570\u636e\u3002<\/p>\n<p>\u5728CAM Web\u63a7\u5236\u53f0\u4e2d\uff0c\u4eceRepositories -&gt; Add repository\uff0c\u5206\u522b\u8f93\u5165\u4ee5\u4e0b\u503c\uff0c\u5e76\u70b9\u51fb&#8221;Add Repository&#8221;\u6309\u94ae\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Repository Name: (\u4efb\u610f\u306e\u30ec\u30dd\u30b8\u30c8\u30ea\u540d)<\/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\">S3 Bucket Name: (Amazon S3 \u306e\u30d0\u30b1\u30c3\u30c8\u540d)<\/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\">S3 Bucket Region: (AWS\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\">S3 Endpoint: (Amazon S3 \u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306e URL)<\/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\">S3 Provider Access Key: (AWS\u306e\u30a2\u30af\u30bb\u30b9\u30ad\u30fc)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">S3 Provider Secret Access Key: (AWS\u306e\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30a2\u30af\u30bb\u30b9\u30ad\u30fc)<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10ba37434c4406bf1c16\/70-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 16.30.27.png\" \/><\/div>\n<p>\u5f53\u663e\u793a\u51fa&#8221;\u8fde\u63a5\u6210\u529f&#8221;\u65f6\uff0c\u8868\u793a\u590d\u5236\u5b58\u50a8\u5e93\u7684\u6dfb\u52a0\u5df2\u5b8c\u6210\u3002<\/p>\n<h3>\u653e\u5bbd\u8fc1\u79fb\u8ba1\u5212\u7684\u4e0a\u9650<\/h3>\n<p>\u4e00\u4e2a\u8fc1\u79fb\u8ba1\u5212\u9ed8\u8ba4\u8bbe\u7f6e\u4e86\u4ee5\u4e0b\u4e0a\u9650\u503c\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">10 namespaces<\/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\">100 Pods<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">100 persistent volumes<\/ul>\n<p>\u5982\u679c\u60f3\u8981\u5728\u8d85\u8fc7\u4e0a\u8ff0\u9650\u5236\u65f6\u8fdb\u884c\u8fc1\u79fb\u64cd\u4f5c\uff0c\u9700\u8981\u5728 OCP 4 \u96c6\u7fa4\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5e76\u7f16\u8f91 MigrationController \u7684\u81ea\u5b9a\u4e49\u8d44\u6e90\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> oc edit migrationcontroller <span class=\"nt\">-n<\/span> openshift-migration\r\n<\/code><\/pre>\n<h3>\u5236\u5b9a\u8fc1\u79fb\u8ba1\u5212<\/h3>\n<p>\u8ba1\u5212-&gt;\u6dfb\u52a0\u8ba1\u5212\u540e\uff0c\u5c06\u521b\u5efa\u8fc1\u79fb\u8ba1\u5212\u3002<\/p>\n<p>\u8bf7\u8f93\u5165\u4efb\u610f\u7684\u8fc1\u79fb\u8ba1\u5212\u540d\u79f0\u5728\u8ba1\u5212\u540d\u79f0\u4e00\u680f\uff0c\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\/657d10ba37434c4406bf1c16\/80-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 15.23.59.png\" \/><\/div>\n<p>\u5728\u6e90\u96c6\u7fa4\u4e2d\u9009\u62e9\u521a\u521a\u6ce8\u518c\u7684 OCP 3 \u96c6\u7fa4\uff0c\u5e76\u5728\u590d\u5236\u5b58\u50a8\u5e93\u4e2d\u9009\u62e9\u521a\u521a\u6ce8\u518c\u7684\u590d\u5236\u5b58\u50a8\u5e93\uff0c\u5728\u76ee\u6807\u96c6\u7fa4\u4e2d\u9009\u62e9\u9ed8\u8ba4\u6ce8\u518c\u7684&#8221;\u4e3b\u673a&#8221;\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10ba37434c4406bf1c16\/82-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 15.27.38.png\" \/><\/div>\n<p>\u5728\u672c\u753b\u9762\u7684\u5e95\u90e8\uff0c\u4f1a\u663e\u793a\u4e00\u4e2a\u9009\u62e9\u8fc1\u79fb\u9879\u76ee\u7684\u9875\u9762\uff0c\u8bf7\u9009\u62e9\u8fc1\u79fb\u9879\u76ee\uff08\u4f8b\u5982\uff1amigration-test\uff09\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\/657d10ba37434c4406bf1c16\/84-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 15.29.32.png\" \/><\/div>\n<p>\u5728\u663e\u793a\u8fc1\u79fb\u76ee\u6807\u7684\u6301\u4e45\u5377 (PV) \u540e\uff0c\u9009\u62e9 &#8220;Copy\/Move&#8221; \u4e2d\u7684\u4efb\u610f\u4e00\u9879\uff0c\u5e76\u6309\u4e0b &#8220;\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\/657d10ba37434c4406bf1c16\/86-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 15.31.47.png\" \/><\/div>\n<p>\u9009\u62e9&#8221;\u590d\u5236\/\u79fb\u52a8&#8221;\u662f\u4e3a\u4e86\u6307\u5b9a\u5b58\u50a8\u5728PV\uff08\u6301\u4e45\u5377\uff09\u4e2d\u7684\u6570\u636e\u8fc1\u79fb\u65b9\u5f0f\u3002\u5982\u679c\u9009\u62e9&#8221;\u590d\u5236&#8221;\uff0c\u6570\u636e\u5c06\u88ab\u590d\u5236\u5230\u590d\u5236\u5b58\u50a8\u5e93\uff0c\u5e76\u5c06\u6570\u636e\u590d\u5236\u5230\u8fc1\u79fb\u5230\u7684OCP 4\u7fa4\u96c6\u65b0\u521b\u5efa\u7684PV\uff08\u6301\u4e45\u5377\uff09\u3002\u76f8\u53cd\uff0c\u5982\u679c\u9009\u62e9&#8221;\u79fb\u52a8&#8221;\uff0cPV\uff08\u6301\u4e45\u5377\uff09\u5c06\u4ece\u8fc1\u79fb\u6e90OCP 3\u7fa4\u96c6\u5378\u8f7d\uff0c\u5e76\u5728\u8fc1\u79fb\u5230\u7684OCP 4\u7fa4\u96c6\u4e2d\u4f7f\u7528\u76f8\u540c\u7684\u8fdc\u7a0b\u5377\u521b\u5efa\u65b0\u7684PV\uff08\u6301\u4e45\u5377\uff09\u3002<\/p>\n<p>\u9009\u62e9\u65b0\u521b\u5efa\u7684PV\uff08\u6301\u4e45\u5316\u5377\uff09\u7684StorageClass\uff0c\u5e76\u70b9\u51fb\u201c\u5b8c\u6210\u201d\u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10ba37434c4406bf1c16\/89-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 18.31.06.png\" \/><\/div>\n<p>\u8fd9\u610f\u5473\u7740\u8fc1\u79fb\u8ba1\u5212\u7684\u521b\u5efa\u5df2\u7ecf\u5b8c\u6210\uff0c\u5df2\u7ecf\u521b\u5efa\u7684\u8fc1\u79fb\u8ba1\u5212\u5c06\u663e\u793a\u5728CAM Web\u63a7\u5236\u53f0\u4e2d\uff0c\u8be6\u89c1\u4ee5\u4e0b\u5185\u5bb9\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10ba37434c4406bf1c16\/91-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 15.39.51.png\" \/><\/div>\n<h3>\u8fdb\u884c\u8fc1\u79fb<\/h3>\n<p>\u56e0\u4e3a\u5230\u8fd9\u91cc\u4e3a\u6b62\u5df2\u7ecf\u5b8c\u5168\u5b8c\u6210\u4e86\u8fc1\u79fb\u6240\u9700\u7684\u8bbe\u7f6e\uff0c\u6240\u4ee5\u73b0\u5728\u7ec8\u4e8e\u53ef\u4ee5\u6267\u884c\u8fc1\u79fb\u4e86\u3002<\/p>\n<p>\u5728 Cluster Application Migration \u5de5\u5177\u4e2d\uff0c\u8fc1\u79fb\u7684\u8fc7\u7a0b\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10ba37434c4406bf1c16\/95-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 15.52.08.png\" \/><\/div>\n<p>\u5728\u201cStage\u201d\u8fc7\u7a0b\u4e2d\uff0c\u4ece\u8fc1\u79fb\u6e90OCP 3\u96c6\u7fa4\u590d\u5236\u6570\u636e\uff0c\u6b64\u8fc7\u7a0b\u4e0d\u4f1a\u505c\u6b62\u8fc1\u79fb\u6e90OCP 3\u96c6\u7fa4\u3002<br \/>\n\u5728\u201cMigrate\u201d\u8fc7\u7a0b\u4e2d\uff0c\u6839\u636e\u53ef\u9009\u914d\u7f6e\uff0c\u5c06\u4f1a\u505c\u6b62\u8fc1\u79fb\u6e90OCP 3\u96c6\u7fa4\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u6267\u884c\u5c06\u5176\u8fc1\u79fb\u5230\u76ee\u6807OCP 4\u96c6\u7fa4\u7684\u64cd\u4f5c\u3002<\/p>\n<p>\u5728CAM Web\u63a7\u5236\u53f0\u4e0a\uff0c\u901a\u8fc7\u70b9\u51fbPlans\u4e2d\u7684\u201cStage\u201d\u6309\u94ae\uff0c\u53ef\u4ee5\u542f\u52a8\u4eceOCP 3\u96c6\u7fa4\u8fc1\u79fb\u6570\u636e\u7684\u590d\u5236\u8fc7\u7a0b\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10ba37434c4406bf1c16\/98-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 16.02.29.png\" \/><\/div>\n<p>\u5f53 &#8220;Last Status&#8221; \u5217\u663e\u793a &#8220;Stage Succeeded&#8221; \u65f6\uff0c\u70b9\u51fb &#8220;Migrate&#8221; \u6309\u94ae\u5f00\u59cb\u8fc1\u79fb\u81f3 OCP 4 \u96c6\u7fa4\u3002\u82e5\u60f3\u907f\u514d\u8fc1\u79fb\u671f\u95f4\u505c\u6b62\u8fc1\u79fb\u6e90 OCP 3 \u96c6\u7fa4\u4e0a\u7684\u4e8b\u52a1\uff0c\u8bf7\u52fe\u9009 &#8220;Don&#8217;t halt transactions on the source while migrating&#8221;\uff0c\u7136\u540e\u70b9\u51fb &#8220;Migrate&#8221; \u6309\u94ae\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10ba37434c4406bf1c16\/100-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 16.22.05.png\" \/><\/div>\n<p>\u5f53\u5728\u201c\u6700\u65b0\u72b6\u6001\u201d\u680f\u4e2d\u663e\u793a\u4e3a\u201c\u5df2\u5173\u95ed\u201d\u65f6\uff0c\u8868\u793a\u8fc1\u79fb\u81f3 OCP 4 \u96c6\u7fa4\u5df2\u5b8c\u6210\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10ba37434c4406bf1c16\/102-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-11-29 16.27.18.png\" \/><\/div>\n<h2>\u786e\u8ba4\u6837\u672c\u5e94\u7528\u7a0b\u5e8f\u7684\u8fc1\u79fb\u60c5\u51b5<\/h2>\n<p>\u8bf7\u786e\u8ba4\u5df2\u7ecf\u6210\u529f\u5c06\u57fa\u4e8e &#8220;Node.js + MongoDB&#8221; \u6a21\u677f\u7684\u793a\u4f8b\u5e94\u7528\u7a0b\u5e8f\u8fc1\u79fb\u5230 OCP 4 \u96c6\u7fa4\u4e0a\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u786e\u8ba4\u76ee\u6807\u793a\u4f8b\u5e94\u7528\u5df2\u6210\u529f\u4eceOCP 4\u7fa4\u96c6\u8fc1\u79fb\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> oc get all,pv <span class=\"nt\">-n<\/span> migration-test \r\n<span class=\"go\">NAME                                   READY   STATUS      RESTARTS   AGE\r\npod\/mongodb-1-7rrfx                    1\/1     Running     0          127m\r\npod\/mongodb-1-deploy                   0\/1     Completed   0          127m\r\npod\/nodejs-mongo-persistent-1-build    0\/1     Completed   0          127m\r\npod\/nodejs-mongo-persistent-1-deploy   0\/1     Completed   0          127m\r\npod\/nodejs-mongo-persistent-2-deploy   0\/1     Completed   0          125m\r\npod\/nodejs-mongo-persistent-2-svvsp    1\/1     Running     0          125m\r\n\r\nNAME                                              DESIRED   CURRENT   READY   AGE\r\nreplicationcontroller\/mongodb-1                   1         1         1       127m\r\nreplicationcontroller\/nodejs-mongo-persistent-1   0         0         0       127m\r\nreplicationcontroller\/nodejs-mongo-persistent-2   1         1         1       125m\r\n\r\nNAME                              TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)     AGE\r\n<\/span><span class=\"gp\">service\/mongodb                   ClusterIP   172.30.135.243   &lt;none&gt;<\/span>        27017\/TCP   127m\r\n<span class=\"gp\">service\/nodejs-mongo-persistent   ClusterIP   172.30.252.153   &lt;none&gt;<\/span>        8080\/TCP    127m\r\n<span class=\"go\">\r\nNAME                                                         REVISION   DESIRED   CURRENT   TRIGGERED BY\r\ndeploymentconfig.apps.openshift.io\/mongodb                   1          1         1         config,image(mongodb:3.4)\r\ndeploymentconfig.apps.openshift.io\/nodejs-mongo-persistent   2          1         1         config,image(nodejs-mongo-persistent:latest)\r\n\r\nNAME                                                     TYPE     FROM   LATEST\r\nbuildconfig.build.openshift.io\/nodejs-mongo-persistent   Source   Git    1\r\n\r\nNAME                                                 TYPE     FROM          STATUS     STARTED       DURATION\r\nbuild.build.openshift.io\/nodejs-mongo-persistent-1   Source   Git@e59fe75   Complete   2 hours ago   1m42s\r\n\r\nNAME                                                     IMAGE REPOSITORY                                                                          TAGS     UPDATED\r\nimagestream.image.openshift.io\/nodejs-mongo-persistent   image-registry.openshift-image-registry.svc:5000\/migration-test\/nodejs-mongo-persistent   latest   2 hours ago\r\n\r\nNAME                                               HOST\/PORT                                                                          PATH   SERVICES                  PORT    TERMINATION   WILDCARD\r\n<\/span><span class=\"gp\">route.route.openshift.io\/nodejs-mongo-persistent   nodejs-mongo-persistent-migration-test.apps.cluster-GUID.sandboxXXXX.opentlc.com          nodejs-mongo-persistent   &lt;all&gt;<\/span>                 None\r\n<span class=\"go\">\r\nNAME                                                        CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM                    STORAGECLASS   REASON   AGE\r\npersistentvolume\/pvc-a7259657-1276-11ea-88f6-0e2402e84846   1Gi        RWO            Delete           Bound    migration-test\/mongodb   gp2                     148m\r\n<\/span><\/code><\/pre>\n<h1>\u6700\u540e<\/h1>\n<p>\u672c\u6587\u4ecb\u7ecd\u4e86Cluster Application Migration\u5de5\u5177\u3002\u6709\u53e6\u5916\u4e00\u4e2a\u63d0\u4f9b\u7684\u8fc1\u79fb\u5de5\u5177\uff0c\u540d\u4e3a&#8221;\u63a7\u5236\u5e73\u9762\u8fc1\u79fb\u52a9\u624b\uff08CPMA\uff09&#8221;\uff0c\u636e\u8bf4\u5728OpenShift Advent Calendar 2019\u4e2d\u4f1a\u6709\u5176\u4ed6\u4eba\u64b0\u5199\u76f8\u5e94\u7684\u6587\u7ae0\u3002\u5982\u679c\u60a8\u5bf9&#8221;\u63a7\u5236\u5e73\u9762\u8fc1\u79fb\u52a9\u624b\uff08CPMA\uff09&#8221;\u611f\u5174\u8da3\uff0c\u4e5f\u8bf7\u67e5\u9605\u76f8\u5173\u4ecb\u7ecd\u6587\u7ae0\u3002<\/p>\n<h1>\u8bf7\u63d0\u4f9b\u4ee5\u4e0b\u4e2d\u56fd\u7248\u7684\u53c2\u8003\u3002<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Migrating your applications to OpenShift 4<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Migrating from OpenShift Container Platform 3 to 4<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u662f2019\u5e74\u7684OpenShift Advent Calendar\u4e2d\u7684\u7b2c\u516d\u5929\u3002 \u9996\u5148 \u4ece\u7a0d\u5fae\u665a\u4e86\u4e00\u70b9\u7684\u65e5 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32192","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>\u6211\u5c1d\u8bd5\u8fd0\u884c\u4e86OpenShift\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u5de5\u5177\u7684\u4e8b\u60c5 - 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\/\u6211\u5c1d\u8bd5\u8fd0\u884c\u4e86openshift\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u5de5\u5177\u7684\u4e8b\u60c5\u3002-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6211\u5c1d\u8bd5\u8fd0\u884c\u4e86OpenShift\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u5de5\u5177\u7684\u4e8b\u60c5\" \/>\n<meta property=\"og:description\" content=\"\u8fd9\u7bc7\u6587\u7ae0\u662f2019\u5e74\u7684OpenShift Advent Calendar\u4e2d\u7684\u7b2c\u516d\u5929\u3002 \u9996\u5148 \u4ece\u7a0d\u5fae\u665a\u4e86\u4e00\u70b9\u7684\u65e5 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5c1d\u8bd5\u8fd0\u884c\u4e86openshift\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u5de5\u5177\u7684\u4e8b\u60c5\u3002-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-28T14:11:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-03T18:54:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10ba37434c4406bf1c16\/9-0.png\" \/>\n<meta name=\"author\" content=\"\u79d1, \u96c5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u96c5\" \/>\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\/%e6%88%91%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8c%e4%ba%86openshift%e9%9b%86%e7%be%a4%e5%ba%94%e7%94%a8%e8%bf%81%e7%a7%bb%e5%b7%a5%e5%85%b7%e7%9a%84%e4%ba%8b%e6%83%85%e3%80%82-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8c%e4%ba%86openshift%e9%9b%86%e7%be%a4%e5%ba%94%e7%94%a8%e8%bf%81%e7%a7%bb%e5%b7%a5%e5%85%b7%e7%9a%84%e4%ba%8b%e6%83%85%e3%80%82-2\/\",\"name\":\"\u6211\u5c1d\u8bd5\u8fd0\u884c\u4e86OpenShift\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u5de5\u5177\u7684\u4e8b\u60c5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-04-28T14:11:23+00:00\",\"dateModified\":\"2024-05-03T18:54:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8c%e4%ba%86openshift%e9%9b%86%e7%be%a4%e5%ba%94%e7%94%a8%e8%bf%81%e7%a7%bb%e5%b7%a5%e5%85%b7%e7%9a%84%e4%ba%8b%e6%83%85%e3%80%82-2\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8c%e4%ba%86openshift%e9%9b%86%e7%be%a4%e5%ba%94%e7%94%a8%e8%bf%81%e7%a7%bb%e5%b7%a5%e5%85%b7%e7%9a%84%e4%ba%8b%e6%83%85%e3%80%82-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8c%e4%ba%86openshift%e9%9b%86%e7%be%a4%e5%ba%94%e7%94%a8%e8%bf%81%e7%a7%bb%e5%b7%a5%e5%85%b7%e7%9a%84%e4%ba%8b%e6%83%85%e3%80%82-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6211\u5c1d\u8bd5\u8fd0\u884c\u4e86OpenShift\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u5de5\u5177\u7684\u4e8b\u60c5\"}]},{\"@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\/41e222757cdd2a3365361328bd79970a\",\"name\":\"\u79d1, \u96c5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u96c5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8c%e4%ba%86openshift%e9%9b%86%e7%be%a4%e5%ba%94%e7%94%a8%e8%bf%81%e7%a7%bb%e5%b7%a5%e5%85%b7%e7%9a%84%e4%ba%8b%e6%83%85%e3%80%82-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6211\u5c1d\u8bd5\u8fd0\u884c\u4e86OpenShift\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u5de5\u5177\u7684\u4e8b\u60c5 - 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\/\u6211\u5c1d\u8bd5\u8fd0\u884c\u4e86openshift\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u5de5\u5177\u7684\u4e8b\u60c5\u3002-2\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6211\u5c1d\u8bd5\u8fd0\u884c\u4e86OpenShift\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u5de5\u5177\u7684\u4e8b\u60c5","og_description":"\u8fd9\u7bc7\u6587\u7ae0\u662f2019\u5e74\u7684OpenShift Advent Calendar\u4e2d\u7684\u7b2c\u516d\u5929\u3002 \u9996\u5148 \u4ece\u7a0d\u5fae\u665a\u4e86\u4e00\u70b9\u7684\u65e5 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5c1d\u8bd5\u8fd0\u884c\u4e86openshift\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u5de5\u5177\u7684\u4e8b\u60c5\u3002-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-28T14:11:23+00:00","article_modified_time":"2024-05-03T18:54:09+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d10ba37434c4406bf1c16\/9-0.png"}],"author":"\u79d1, \u96c5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u96c5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8c%e4%ba%86openshift%e9%9b%86%e7%be%a4%e5%ba%94%e7%94%a8%e8%bf%81%e7%a7%bb%e5%b7%a5%e5%85%b7%e7%9a%84%e4%ba%8b%e6%83%85%e3%80%82-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8c%e4%ba%86openshift%e9%9b%86%e7%be%a4%e5%ba%94%e7%94%a8%e8%bf%81%e7%a7%bb%e5%b7%a5%e5%85%b7%e7%9a%84%e4%ba%8b%e6%83%85%e3%80%82-2\/","name":"\u6211\u5c1d\u8bd5\u8fd0\u884c\u4e86OpenShift\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u5de5\u5177\u7684\u4e8b\u60c5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-04-28T14:11:23+00:00","dateModified":"2024-05-03T18:54:09+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8c%e4%ba%86openshift%e9%9b%86%e7%be%a4%e5%ba%94%e7%94%a8%e8%bf%81%e7%a7%bb%e5%b7%a5%e5%85%b7%e7%9a%84%e4%ba%8b%e6%83%85%e3%80%82-2\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8c%e4%ba%86openshift%e9%9b%86%e7%be%a4%e5%ba%94%e7%94%a8%e8%bf%81%e7%a7%bb%e5%b7%a5%e5%85%b7%e7%9a%84%e4%ba%8b%e6%83%85%e3%80%82-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8c%e4%ba%86openshift%e9%9b%86%e7%be%a4%e5%ba%94%e7%94%a8%e8%bf%81%e7%a7%bb%e5%b7%a5%e5%85%b7%e7%9a%84%e4%ba%8b%e6%83%85%e3%80%82-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6211\u5c1d\u8bd5\u8fd0\u884c\u4e86OpenShift\u96c6\u7fa4\u5e94\u7528\u8fc1\u79fb\u5de5\u5177\u7684\u4e8b\u60c5"}]},{"@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\/41e222757cdd2a3365361328bd79970a","name":"\u79d1, \u96c5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","caption":"\u79d1, \u96c5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8c%e4%ba%86openshift%e9%9b%86%e7%be%a4%e5%ba%94%e7%94%a8%e8%bf%81%e7%a7%bb%e5%b7%a5%e5%85%b7%e7%9a%84%e4%ba%8b%e6%83%85%e3%80%82-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32192","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=32192"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32192\/revisions"}],"predecessor-version":[{"id":95681,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32192\/revisions\/95681"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=32192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=32192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=32192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}