{"id":29612,"date":"2023-06-05T21:38:05","date_gmt":"2023-11-16T00:26:30","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e6%89%a7%e8%a1%8copenshift-origin%e7%9a%84%e8%af%95%e4%b8%80%e8%af%95%e5%8a%9f%e8%83%bd%e5%b9%b6%e9%83%a8%e7%bd%b2mongodb%e3%80%82\/"},"modified":"2025-08-12T14:59:39","modified_gmt":"2025-08-12T06:59:39","slug":"%e5%b0%9d%e8%af%95%e6%89%a7%e8%a1%8copenshift-origin%e7%9a%84%e8%af%95%e4%b8%80%e8%af%95%e5%8a%9f%e8%83%bd%e5%b9%b6%e9%83%a8%e7%bd%b2mongodb%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e6%89%a7%e8%a1%8copenshift-origin%e7%9a%84%e8%af%95%e4%b8%80%e8%af%95%e5%8a%9f%e8%83%bd%e5%b9%b6%e9%83%a8%e7%bd%b2mongodb%e3%80%82\/","title":{"rendered":"\u5c1d\u8bd5\u6267\u884cOpenShift Origin\u7684\u201c\u8bd5\u4e00\u8bd5\u201d\u529f\u80fd\u5e76\u90e8\u7f72mongoDB"},"content":{"rendered":"<h1>\u9996\u5148<\/p>\n<h2>\u7ecf\u8fc7\u524d\u56de \u300eGMO\u30af\u30e9\u30a6\u30c9ALTUS Basic with Docker\u4e0a\u306b OpenShift Origin \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u300f\u306b\u3066 OpenShift Origin \u3092 Docker \u30b3\u30f3\u30c6\u30ca\u3067\u8d77\u52d5\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u3092\u8a18\u8f09\u3057\u307e\u3057\u305f\u3002<br \/>\n\u4eca\u56de\u306f\u3001\u305d\u306e\u74b0\u5883\u3092\u4f7f\u3063\u3066 OpenShift Origin \u306e Try It Out \u306e\u5b9f\u65bd\u3068 MongoDB \u306e\u30c7\u30d7\u30ed\u30a4\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<h2>\u6982\u5ff5<\/p>\n<ul class=\"post-ul\">OpenShift Origin \u3092\u306a\u308b\u3079\u304f\u7c21\u5358\u306b\u8a66\u3059\u3002<\/ul>\n<h2>\u603b\u7ed3<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">OpenShift Origin \u74b0\u5883\u3092\u6e96\u5099\u3057\u307e\u3059<\/ul>\n<\/li>\n<\/ul>\n<p>OpenShift Origin \u306e Try It Out \u3092\u8a66\u3057\u307e\u3059<\/p>\n<p>MongoDB \u3092 Openshift Origin \u306b\u30c7\u30d7\u30ed\u30a4\u3057\u307e\u3059<\/p>\n<h1>OpenShift Origin \u74b0\u5883\u306e\u6e96\u5099Docker \u4e0a\u3067 OpenShift Origin \u30b3\u30f3\u30c6\u30ca\u304c\u5b9f\u884c\u3055\u308c\u308b\u74b0\u5883\u3092\u5229\u7528\u3057\u307e\u3059\u3002<br \/>\n\u5b9f\u884c\u74b0\u5883\u306e\u6e96\u5099\u304c\u304a\u6e08\u307f\u3067\u306a\u3044\u65b9\u306f\u3001\u524d\u56de\u306e\u8a18\u4e8b \u3067\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u53c2\u8003\u307e\u3067\u306b\u3069\u3046\u305e\u3002<\/p>\n<h1>\u53ef\u4ee5\u9032\u884c\u5404\u7a2e\u6d3b\u52d5\u3002<\/p>\n<div>\n<div class=\"post-table\">\u9805\u76ee\u5185\u5bb9\u30b5\u30fc\u30d0\u30fc<a href=\"https:\/\/www.gmocloud.com\/\" target=\"_blank\" rel=\"nofollow noopener\">GMO\u30af\u30e9\u30a6\u30c9 ALTUS Basic\u30b7\u30ea\u30fc\u30ba<\/a>\u5229\u7528\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8Ubuntu 14.04 64bit with Docker_20160428\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u306e\u7a2e\u985eCustom ServerCPU2vCPUMemory4GBHDD20GBDockerv1.11.0VM\u306e\u30ed\u30fc\u30ab\u30ebIP\uff08\u4f8b\uff0910.0.0.1OpenShift Originv1.3.0-alpha.2-250-g61eba05kubernetesv1.3.0-alpha.3-599-g2746284<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d02fb37434c4406bd2675\/11-0.jpeg\" alt=\"overview\" \/>\u4ee5\u4e0b\u662f\u9488\u5bf9172.30.1.1\u548c172.30.2.2\u7684\u793a\u4f8b\uff0c\u5b83\u4eec\u662f\u5728Docker\u5185\u90e8\u7f51\u7edc\u4e2d\u5206\u914d\u7684\u672c\u5730IP\u5730\u5740\u3002<\/p>\n<h1>\u767b\u5f55\u548c\u9000\u51fa\uff0c\u64cd\u4f5c\u9879\u76ee\u3002\u5728\u4e0a\u4e00\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u786e\u8ba4\u4e86WebUI\u7684\u542f\u52a8\u60c5\u51b5\uff0c\u4f46\u662f\u73b0\u5728\u6211\u4eec\u5c06\u6309\u7167\u201cTry It Out\u201d\u4e2d\u6240\u8ff0\uff0c\u5728CLI\u4e2d\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<h2>\u4ece\u767b\u5f55\u5230\u521b\u5efa\u9879\u76ee\u3002<\/p>\n<h3>\u4e3a\u4e86\u64cd\u4f5cOpenShift\uff0c\u8fde\u63a5\u5230\u8fd0\u884c\u5728Docker\u4e0a\u7684OpenShift Origin\u5bb9\u5668\u3002# \u6267\u884c docker exec -it origin bash \u547d\u4ee4<br \/>\n\u203b\u8bf7\u6839\u636e\u60a8\u7684\u73af\u5883\u9002\u5f53\u66f4\u6539 origin \u4e3a\u5bb9\u5668\u540d\u79f0\u3002<\/p>\n<h3>2.oc \u30b3\u30de\u30f3\u30c9\u3067 OpenShift Origin \u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002# \u767b\u5f55oc<br \/>\n\u7528\u6237\u540d\uff1a\u6d4b\u8bd5<br \/>\n\u5bc6\u7801\uff1a\u6d4b\u8bd5<\/p>\n<pre class=\"post-pre\"><code>Authentication required for https:\/\/10.0.0.1:8443 (openshift)\r\nUsername: test\r\nPassword:\r\nLogin successful.\r\n\r\nYou don't have any projects. You can try to create a new project, by running\r\n\r\n    oc new-project &lt;projectname&gt;\r\n<\/code><\/pre>\n<p>\u3010\u5907\u6ce8\u3011\u5982\u679c\u5b58\u5728\u591a\u4e2a\u9879\u76ee\uff0c\u5728\u6ce8\u9500\u540e\u518d\u6b21\u767b\u5f55\u65f6\uff0c\u5c06\u9009\u62e9\u4e0a\u6b21\u4f7f\u7528\u7684\u9879\u76ee\uff0c\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<pre class=\"post-pre\"><code>Login successful.\r\n\r\nYou have access to the following projects and can switch between them with 'oc project &lt;projectname&gt;':\r\n\r\n  * mongo-db\r\n    test\r\n\r\nUsing project \"mongo-db\".\r\n<\/code><\/pre>\n<h3>3. \u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u65b0\u9879\u76ee\u3002\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a&#8221;test&#8221;\u7684\u65b0\u9879\u76ee\u3002<\/p>\n<pre class=\"post-pre\"><code>Now using project \"test\" on server \"https:\/\/10.0.0.1:8443\".\r\n\r\nYou can add applications to this project with the 'new-app' command. For example, try:\r\n\r\n    oc new-app centos\/ruby-22-centos7~https:\/\/github.com\/openshift\/ruby-ex.git\r\n\r\nto build a new example application in Ruby.\r\n<\/code><\/pre>\n<p>\u3010\u88dc\u8db3\u3011\u65e2\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\u7570\u306a\u308b\u30e6\u30fc\u30b6\u30fc\u3067\u3082\u540c\u3058\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u3067\u4f5c\u6210\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\nError from server: project &#8220;test&#8221; already exists<\/p>\n<h2>\u5176\u4ed6\u64cd\u4f5c\u547d\u4ee4<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ed\u30b0\u30a2\u30a6\u30c8<\/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\"># oc logout<\/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\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4e00\u89a7\u306e\u53d6\u5f97<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\"># oc get project<\/ul>\n<pre class=\"post-pre\"><code>NAME       DISPLAY NAME   STATUS\r\nmongo-db                     Active\r\ntest                         Active\r\ndelete-test                  Active\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5207\u66ff\u3048<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\"># oc project mongo-db<\/ul>\n<pre class=\"post-pre\"><code>Now using project \"mongo-db\" on server \"https:\/\/10.0.0.1:8443\".\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u524a\u9664<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\"># oc delete project delete-test<\/ul>\n<pre class=\"post-pre\"><code>project \"delete-test\" deleted\r\n<\/code><\/pre>\n<h1>\u8bd5\u8bd5\u770b\u5728OpenShift Origin\u4e0a\u521b\u5efa\u9879\u76ee\u540e\uff0c\u6309\u7167\u201c\u8bd5\u7528\u4e00\u4e0b\u201d\u7684\u6307\u793a\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u3002<br \/>\n\u8bf7\u786e\u4fdd8080\u548c8443\u7aef\u53e3\u6ca1\u6709\u88ab\u9650\u5236\u3002<\/p>\n<p>\u4f7f\u7528 docker exec -it origin bash \u547d\u4ee4\u8fde\u63a5\u5230 OpenShift Origin \u5bb9\u5668\uff08\u547d\u4ee4\u4e2d\u7684 origin \u662f\u5bb9\u5668\u540d\u79f0\uff09\u5e76\u6267\u884c\u4e86\u4e0b\u8ff0\u64cd\u4f5c\u3002<\/p>\n<h2>\u4f7f\u7528\u7684\u8a5e\u5f59<\/p>\n<div>\n<div class=\"post-table\">\u7528\u8a9e\u7565\u8a9e\u6982\u8981Podpod\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u969b\u306e\u6700\u5c0f\u5358\u4f4d\u3002\uff11\u3064\u4ee5\u4e0a\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u542b\u307f\u307e\u3059\u3002Image StreamisOpenShit Origin \u3067\u5229\u7528\u3055\u308c\u308b\u30b3\u30f3\u30c6\u30ca\u672c\u4f53\u3002Docker Image \u306e\u3088\u3046\u306a\u3082\u306e\u3002Replication ControllerrcPod \u306e\u540c\u6642\u8d77\u52d5\u6570\u5236\u5fa1\u5f79ServicesvcPod \u3078\u306e\u901a\u4fe1\u5206\u6563\u5f79Deployment ConfigdcReplication Controller \u306e\u5236\u5fa1\u3084 Pod \u306e\u8d77\u52d5\u5f79<\/p>\n<h2>\u90e8\u7f72\u540e\u7684\u56fe\u50cf<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d02fb37434c4406bd2675\/40-0.jpeg\" alt=\"service_and_etc\" \/><\/p>\n<h2>\u8bd5\u4e00\u4e0b<\/p>\n<h3>1. \u90e8\u7f72\u4e00\u4e2a\u57fa\u4e8eNode.js\u7684\u793a\u4f8b\u5e94\u7528\u7a0b\u5e8f\uff0c\u8be5\u793a\u4f8b\u5e94\u7528\u7a0b\u5e8f\u5728Try It Out\u4e0a\u88ab\u4f7f\u7528\u3002<br \/>\n\u7528OpenShift\u7684deployment-example\u521b\u5efa\u4e00\u4e2a\u65b0\u5e94\u7528<\/p>\n<pre class=\"post-pre\"><code>--&gt; Found Docker image 1c839d8 (12 months old) from Docker Hub for \"openshift\/deployment-example\"\r\n\r\n    * An image stream will be created as \"deployment-example:latest\" that will track this image\r\n    * This image will be deployed in deployment config \"deployment-example\"\r\n    * Port 8080\/tcp will be load balanced by service \"deployment-example\"\r\n      * Other containers can access this service through the hostname \"deployment-example\"\r\n    * WARNING: Image \"openshift\/deployment-example\" runs as the 'root' user which may not be permitted by your cluster administrator\r\n\r\n--&gt; Creating resources with label app=deployment-example ...\r\n    imagestream \"deployment-example\" created\r\n    deploymentconfig \"deployment-example\" created\r\n    service \"deployment-example\" created\r\n--&gt; Success\r\n    WARNING: No Docker registry has been configured with the server. Automatic builds and deployments may not function.\r\n    Run 'oc status' to view your app.\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u662f\u5728\u5220\u9664\u9664\u4e86Image Stream\u4e4b\u5916\u7684\u5185\u5bb9\u540e\u518d\u6b21\u6267\u884coc new-app\u547d\u4ee4\u7684\u7ed3\u679c\u3002\u5982\u679c\u5df2\u7ecf\u6ce8\u518c\u4e86Image Stream\u3001Deployment Config\u3001Service\u7b49\u5185\u5bb9\uff0c\u5219\u4f1a\u8f93\u51faError\u548cFailed\uff0c\u4f46\u6700\u7ec8\u4f3c\u4e4e\u53ef\u4ee5\u987a\u5229\u90e8\u7f72\u3002<br \/>\n\u203b\u8bf7\u6ce8\u610f\uff0c\u6839\u636e\u5bb9\u5668\u7c7b\u578b\u548c\u72b6\u6001\uff0c\u53ef\u80fd\u6709\u4e00\u4e9b\u65e0\u6cd5\u6b63\u5e38\u6267\u884c\u7684\u60c5\u51b5\u3002<br \/>\n\u203b\u5173\u4e8e\u5728OpenShift Origin\u4e0a\u6784\u5efa\u7684\u73af\u5883\u7684\u5220\u9664\u65b9\u6cd5\u5c06\u5728\u540e\u6587\u4e2d\u8bf4\u660e\u3002<\/p>\n<p>\u4f7f\u7528\u539f\u751f\u7684\u4e2d\u6587\u5c06\u4ee5\u4e0b\u5185\u5bb9\u6539\u5199\uff0c\u53ea\u9700\u63d0\u4f9b\u4e00\u79cd\u9009\u62e9\uff1a<br \/>\n# \u4f7f\u7528OpenShift\u7684\u90e8\u7f72\u793a\u4f8b\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5e94\u7528<\/p>\n<pre class=\"post-pre\"><code>--&gt; Found Docker image 1c839d8 (12 months old) from Docker Hub for \"openshift\/deployment-example\"\r\n\r\n    * An image stream will be created as \"deployment-example:latest\" that will track this image\r\n    * This image will be deployed in deployment config \"deployment-example\"\r\n    * Port 8080\/tcp will be load balanced by service \"deployment-example\"\r\n      * Other containers can access this service through the hostname \"deployment-example\"\r\n    * WARNING: Image \"openshift\/deployment-example\" runs as the 'root' user which may not be permitted by your cluster administrator\r\n\r\n--&gt; Creating resources with label app=deployment-example ...\r\n    error: imagestreams \"deployment-example\" already exists\r\n    deploymentconfig \"deployment-example\" created\r\n    service \"deployment-example\" created\r\n--&gt; Failed\r\n<\/code><\/pre>\n<h3>\u515c\u5708\u5b50\u5f53\u60a8\u767b\u5f55\u5230OpenShift Origin\u7684WebUI\u65f6\uff0c\u60a8\u53ef\u4ee5\u786e\u8ba4Pod\u548cService\u7b49\u5df2\u88ab\u521b\u5efa\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d02fb37434c4406bd2675\/50-0.jpeg\" alt=\"openshift-login-test-project\" \/><\/p>\n<h3>2.\u786e\u8ba4\u5148\u524d\u521b\u5efa\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u72b6\u6001\u548cIP\u5730\u5740\u3002# \u72b6\u6001 oc<\/p>\n<pre class=\"post-pre\"><code>In project test on server https:\/\/10.0.0.1:8443\r\n\r\nsvc\/deployment-example - 172.30.1.1:8080\r\n  dc\/deployment-example deploys istag\/deployment-example:latest\r\n    deployment #1 deployed 55 seconds ago - 1 pod\r\n\r\n1 warning identified, use 'oc status -v' to see details.\r\n<\/code><\/pre>\n<h3>3. \u8fdb\u884c\u8fde\u63a5\u786e\u8ba4\u3002\uff08IP\u5730\u5740\u662f\u5206\u914d\u7ed9 deployment-example \u7684\u793a\u4f8b\uff09\u7531\u4e8e\u662f\u672c\u5730IP\uff0c\u56e0\u6b64\u65e0\u6cd5\u76f4\u63a5\u5728Web\u6d4f\u89c8\u5668\u4e2d\u8fdb\u884c\u8fde\u63a5\u786e\u8ba4\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u7aef\u53e3\u8f6c\u53d1\u5728Web\u6d4f\u89c8\u5668\u4e0a\u8fdb\u884c\u786e\u8ba4\uff0c\u6216\u8005\u901a\u8fc7OpenShift Origin\u5bb9\u5668\u4e0a\u7684curl\u547d\u4ee4\u8fdb\u884c\u786e\u8ba4\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30dd\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c9\u3059\u308b\u5834\u5408\u306f\u3001\u4e0b\u8a18\u3092\u8a2d\u5b9a\u5f8c\u3001 http:\/\/localhost:8888 \u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u203b\u8a2d\u5b9a\u306f TeraTermPro \u306e\u4f8b\u306b\u306a\u308a\u307e\u3059\u3002<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d02fb37434c4406bd2675\/57-0.jpeg\" alt=\"openshift-origin-try-it-out-port-forward\" \/>http:\/\/localhost:8888 \u30a2\u30af\u30bb\u30b9\u7d50\u679c<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d02fb37434c4406bd2675\/59-0.jpeg\" alt=\"openshift-origin-deployment-example\" \/><\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">curl \u30b3\u30de\u30f3\u30c9\u306b\u3088\u308b\u78ba\u8a8d<\/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\">curl \u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3059\u308b\u5834\u5408\u306f OpenShift Origin \u306e\u30b3\u30f3\u30c6\u30ca\u306b\u3066\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/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\">\u203bIP\u30a2\u30c9\u30ec\u30b9\u306f\u3001oc status\u3067\u78ba\u8a8d\u3057\u305f deployment-example(Node.js) \u306e\u30ed\u30fc\u30ab\u30eb IP \u30a2\u30c9\u30ec\u30b9\u306e\u4f8b\u3068\u306a\u308a\u307e\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\"># curl http:\/\/172.30.1.1:8080<\/ul>\n<pre class=\"post-pre\"><code>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"en\"&gt;\r\n&lt;head&gt;\r\n  &lt;meta charset=\"utf-8\"&gt;\r\n  &lt;title&gt;Deployment Demonstration&lt;\/title&gt;\r\n  &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\r\n  &lt;style&gt;\r\n    HTML{height:100%;}\r\n    BODY{font-family:Helvetica,Arial;display:flex;display:-webkit-flex;align-items:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-webkit-justify-content:center;height:100%;}\r\n    .box{background:#006e9c;color:white;text-align:center;border-radius:10px;display:inline-block;}\r\n    H1{font-size:10em;line-height:1.5em;margin:0 0.5em;}\r\n    H2{margin-top:0;}\r\n  &lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div class=\"box\"&gt;&lt;h1&gt;v1&lt;\/h1&gt;&lt;h2&gt;&lt;\/h2&gt;&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;[root@openshift-test3 origin]#\r\n<\/code><\/pre>\n<h3>\u8bf7\u63d0\u4f9b\u5176\u4ed6\u786e\u8ba4\u6307\u4ee4\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Pod \u306e\u78ba\u8a8d<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\"># oc get pods<\/ul>\n<pre class=\"post-pre\"><code>NAME                         READY     STATUS    RESTARTS   AGE\r\ndeployment-example-1-ugzlm   1\/1       Running   0          6m\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Service \u306e\u78ba\u8a8d<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\"># oc get services<\/ul>\n<pre class=\"post-pre\"><code>NAME                 CLUSTER-IP     EXTERNAL-IP   PORT(S)    AGE\r\ndeployment-example   172.30.1.1   &lt;none&gt;        8080\/TCP   7m\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Replication Controller \u306e\u78ba\u8a8d<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\"># oc get rc<\/ul>\n<pre class=\"post-pre\"><code>NAME                   DESIRED   CURRENT   AGE\r\ndeployment-example-1   1         1         7m\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Deployment Config \u306e\u78ba\u8a8d<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\"># oc get dc<\/ul>\n<pre class=\"post-pre\"><code>NAME                 REVISION   DESIRED   CURRENT   TRIGGERED BY\r\ndeployment-example   1          1         1         config,image(deployment-example:latest)\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Image Stream \u306e\u78ba\u8a8d<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\"># oc get is<\/ul>\n<pre class=\"post-pre\"><code>NAME                 DOCKER REPO   TAGS      UPDATED\r\ndeployment-example                 latest    8 minutes ago\r\n<\/code><\/pre>\n<p>\u8bf7\u5c1d\u8bd5\u5b83\u6765\u786e\u8ba4\uff0c\u4ee5\u4e0a\u5c31\u662f\u786e\u8ba4\u7684\u6b65\u9aa4\u3002<\/p>\n<h1>\u53c2\u8003\u60c5\u5831\u306f\u3053\u3061\u3089 &#8211; MongoDB \u7684\u90e8\u7f72 (\u5b98\u65b9\u8d44\u6599)\u524d\u63d0\u6761\u4ef6 &#8211; t\u00ed<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Docker OpenShift Origin \u30b3\u30f3\u30c6\u30ca\u306b\u63a5\u7d9a<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">oc login \u6e08\u307f<\/ul>\n<h2>\u5f00\u59cb\u90e8\u7f72MongoDB\u4f5c\u4e3a\u4e8b\u524d\u51c6\u5907\uff0c\u5728\u4e0a\u8ff0\u9879\u76ee\u64cd\u4f5c\u4e2d\uff0c\u521b\u5efa\u5e76\u5207\u6362\u5230\u4efb\u610f\u9879\u76ee\u3002<\/p>\n<h3>\u521b\u5efa\u548c\u5207\u6362\u9879\u76ee\u65b0\u5efa\u9879\u76eemongo-db<br \/>\n\u5207\u6362\u5230\u9879\u76eemongo-db<\/p>\n<h3>2.oc new-app \u30b3\u30de\u30f3\u30c9\u3067 MongoDB \u3092\u30c7\u30d7\u30ed\u30a4\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u5185\u5bb9\u8bf7\u6839\u636e\u9700\u8981\u968f\u610f\u66f4\u6539\u4f7f\u7528\u3002<br \/>\n&lt;\u7528\u6237\u540d&gt;<br \/>\n&lt;\u7528\u6237\u5bc6\u7801&gt;<br \/>\n&lt;\u6570\u636e\u5e93\u540d\u79f0&gt;<br \/>\n&lt;\u7ba1\u7406\u5458\u5bc6\u7801&gt;<\/p>\n<pre class=\"post-pre\"><code># oc new-app -e \\    MONGODB_USER='&lt;USER_NAME&gt;',MONGODB_PASSWORD='&lt;USER_PASS&gt;',MONGODB_DATABASE='&lt;DB_NAME&gt;',MONGODB_ADMIN_PASSWORD='&lt;ADMIN_PASS&gt;' \\\r\n    centos\/mongodb-26-centos7\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>--&gt; Found Docker image 00c0f2d (43 hours old) from Docker Hub for \"centos\/mongodb-26-centos7\"\r\n\r\n    MongoDB 2.6\r\n    -----------\r\n    MongoDB is a scalable, high-performance, open source NoSQL database.\r\n\r\n    Tags: database, mongodb, rh-mongodb26\r\n\r\n    * An image stream will be created as \"mongodb-26-centos7:latest\" that will track this image\r\n    * This image will be deployed in deployment config \"mongodb-26-centos7\"\r\n    * Port 27017\/tcp will be load balanced by service \"mongodb-26-centos7\"\r\n      * Other containers can access this service through the hostname \"mongodb-26-centos7\"\r\n    * This image declares volumes and will default to use non-persistent, host-local storage.\r\n      You can add persistent volumes later by running 'volume dc\/mongodb-26-centos7 --add ...'\r\n\r\n--&gt; Creating resources with label app=mongodb-26-centos7 ...\r\n    imagestream \"mongodb-26-centos7\" created\r\n    deploymentconfig \"mongodb-26-centos7\" created\r\n    service \"mongodb-26-centos7\" created\r\n--&gt; Success\r\n    WARNING: No Docker registry has been configured with the server. Automatic builds and deployments may not function.\r\n    Run 'oc status' to view your app.\r\n<\/code><\/pre>\n<h3>\u6211\u8981\u786e\u8ba4\u4e00\u4e0b pod \u7684\u540d\u79f0\u3002\u83b7\u53d6Pod\u5217\u8868<\/p>\n<pre class=\"post-pre\"><code>NAME                         READY     STATUS    RESTARTS   AGE\r\nmongodb-26-centos7-1-vee52   1\/1       Running   0          1m\r\n<\/code><\/pre>\n<p>\u83b7\u53d6\u670d\u52a1\u3002<\/p>\n<pre class=\"post-pre\"><code>NAME                 CLUSTER-IP       EXTERNAL-IP   PORT(S)     AGE\r\nmongodb-26-centos7   172.30.2.2   &lt;none&gt;        27017\/TCP   1m\r\n<\/code><\/pre>\n<h3>\u901a\u8fc7oc rsh\u547d\u4ee4\uff0c\u5c06\u8fde\u63a5\u8fdc\u7a0bshell\u5230\u76ee\u6807\u7684pod\u3002\u5728\u672c\u5730\u4e2d\u6587\u4e2d\u6539\u8ff0\u4ee5\u4e0b\u53e5\u5b50\uff0c\u53ea\u9700\u63d0\u4f9b\u4e00\u79cd\u9009\u9879\uff1a<br \/>\n# oc rsh mongodb-26-centos7-1-vee52<\/p>\n<p>\u7528\u4e2d\u6587\u6539\u8ff0\u4e0a\u8ff0\u53e5\u5b50\uff0c\u53ea\u9700\u4e00\u79cd\u9009\u9879\uff1a<br \/>\n&#8220;`<br \/>\n\u5728oc\u4e2d\u7528rsh\u547d\u4ee4\u8fde\u63a5\u5230mongodb-26-centos7-1-vee52\u5b9e\u4f8b<br \/>\n&#8220;`<\/p>\n<pre class=\"post-pre\"><code>sh-4.2$\r\n<\/code><\/pre>\n<h3>\u901a\u8fc7mongo\u547d\u4ee4\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002\u5728\u670d\u52a1\u90e8\u7f72\u671f\u95f4\uff0c\u4ee5\u4e0b\u5185\u5bb9\u5df2\u7ecf\u88ab\u6ce8\u518c\u4e3a\u73af\u5883\u53d8\u91cf\uff0c\u5c06\u4f7f\u7528\u5176\u4e2d\u4e00\u90e8\u5206\u6765\u8bbf\u95ee\u6570\u636e\u5e93\u3002<br \/>\nMONGODB_USER='&lt;\u7528\u6237\u540d\u79f0&gt;&#8217;<br \/>\nMONGODB_PASSWORD='&lt;\u7528\u6237\u5bc6\u7801&gt;&#8217;<br \/>\nMONGODB_DATABASE='&lt;\u6570\u636e\u5e93\u540d\u79f0&gt;&#8217;<br \/>\nMONGODB_ADMIN_PASSWORD='&lt;\u7ba1\u7406\u5458\u5bc6\u7801&gt;&#8217;<\/p>\n<p>\u4f7f\u7528Mongo\u547d\u4ee4\uff0c\u8fde\u63a5\u5230$MONGODB_DATABASE\u6570\u636e\u5e93\uff0c\u5e76\u63d0\u4f9b\u7528\u6237\u540d$MONGODB_USER\u548c\u5bc6\u7801$MONGODB_PASSWORD\u3002<\/p>\n<pre class=\"post-pre\"><code>MongoDB shell version: 2.6.9\r\nconnecting to: &lt;DB_NAME&gt;\r\nWelcome to the MongoDB shell.\r\nFor interactive help, type \"help\".\r\nFor more comprehensive documentation, see\r\n        http:\/\/docs.mongodb.org\/\r\nQuestions? Try the support group\r\n        http:\/\/groups.google.com\/group\/mongodb-user\r\n<\/code><\/pre>\n<p>\u901a\u8fc7\u6267\u884c db.stats() \u547d\u4ee4\u786e\u8ba4\u6210\u529f\u90e8\u7f72\uff0c\u5e76\u901a\u8fc7 exit \u547d\u4ee4\u9000\u51fa\u6570\u636e\u5e93\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cMongoDB \u7684\u786e\u8ba4\u662f\u57fa\u4e8e MongoDB \u7684CRUD \u64cd\u4f5c\u8fdb\u884c\u53c2\u8003\u7684\u3002<\/p>\n<p>\u5173\u4e8eMongoDB\u7684\u90e8\u7f72\uff0c\u5c31\u662f\u8fd9\u6837\u4e86\u3002<\/p>\n<h1>\u5173\u4e8e\u5220\u9664 Pod \u6216 Service \u7684\u65b9\u6cd5\u6211\u5728\u6b64\u63d0\u4f9b\u5220\u9664\u65b9\u5f0f\u7684\u793a\u4f8b\uff0c\u5220\u9664\u7684\u662f\u5728 Try It Out \u4e2d\u4f7f\u7528\u7684 deployment-example\u3002<\/p>\n<h2>\u5f00\u59cb\u6536\u62fe\u540e\u4e8b<\/p>\n<h3>\u5220\u9664\u90e8\u7f72\u914d\u7f6e\u3002<br \/>\n\u5220\u9664\u540d\u4e3a&#8221;deployment-example&#8221;\u7684\u90e8\u7f72\u914d\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>deploymentconfig \"deployment-example\" deleted\r\n<\/code><\/pre>\n<h3>2.\u786e\u8ba4\u5728\u5220\u9664\u90e8\u7f72\u914d\u7f6e\u540e\uff0c\u4e5f\u540c\u65f6\u5220\u9664\u4e86\u90e8\u7f72\u914d\u7f6e\u3001\u590d\u5236\u63a7\u5236\u5668\u548cPod\u3002\u5982\u679c\u6709\u4efb\u4f55\u65e0\u6cd5\u5220\u9664\u7684\u9879\u76ee\uff0c\u8bf7\u4f7f\u7528oc delete\u547d\u4ee4\u6765\u5220\u9664\u76f8\u5e94\u7684\u5bf9\u8c61\u3002<\/p>\n<p>\u83b7\u53d6\u90e8\u7f72\u914d\u7f6e<br \/>\n\u83b7\u53d6\u526f\u672c\u63a7\u5236\u5668<br \/>\n\u83b7\u53d6\u5bb9\u5668\u5b9e\u4f8b<\/p>\n<h3>\u6211\u4f1a\u68c0\u67e5\u670d\u52a1\u3002# \u4f7f\u7528\u547d\u4ee4 oc get services \u83b7\u53d6\u670d\u52a1\u5217\u8868\u3002<\/p>\n<pre class=\"post-pre\"><code>NAME                 CLUSTER-IP     EXTERNAL-IP   PORT(S)    AGE\r\ndeployment-example   172.30.1.1   &lt;none&gt;        8080\/TCP   7m\r\n<\/code><\/pre>\n<h3>\u5220\u9664\u670d\u52a1\u3002\u5220\u9664\u670d\u52a1deployment-example<\/p>\n<pre class=\"post-pre\"><code>service \"deployment-example\" deleted\r\n<\/code><\/pre>\n<h3>\u786e\u8ba4\u670d\u52a1\u5df2\u88ab\u5220\u9664\u3002\u83b7\u53d6\u670d\u52a1<\/p>\n<h3>\u5220\u9664\u56fe\u50cf\u6d41\u3002\u5220\u9664deployment-example: oc delete deployment-example<\/p>\n<p>\u56fe\u7247\u6d41 &#8220;deployment-example&#8221; \u5df2\u5220\u9664\u3002<\/p>\n<h3>7. \u786e\u8ba4\u56fe\u50cf\u6d41\u5df2\u88ab\u5220\u9664\u30021. \u53d6\u5f97\u5373\u65f6\u3002<\/p>\n<p>\u3010\u6ce8\u610f\u4e8b\u9879\u3011<br \/>\n\u65e0\u8bba\u5220\u9664\u591a\u5c11\u6b21\uff0c\u5982\u679c\u4e0d\u5220\u9664rc(\u590d\u5236\u63a7\u5236\u5668)\u7684Pod\u542f\u52a8\u6570\u91cf\u76f4\u52300\u6216\u8005dc(\u90e8\u7f72\u914d\u7f6e) \uff0cPod\u5c06\u4f1a\u7ee7\u7eed\u751f\u6210\u65b0\u7684\u3002<\/p>\n<h1>\u6700\u540e<\/p>\n<h2>\u4e00\u53e5\u8bdd (y\u012b j\u00f9 hu\u00e0)\u975e\u5e38\u611f\u8c22\u60a8\u5728\u8fd9\u4e2a\u5927\u81f4\u7684\u5185\u5bb9\u7684\u966a\u4f34\u4e0b\u8bfb\u5230\u6700\u540e\u3002\u81f3\u4e8eOpenShift Origin\uff0c\u8ba1\u5212\u662f\u505c\u7528\u5b83\u3002<\/p>\n<p>\u5728OpenShift Origin\u4e2d\u9009\u62e9\u4e86\u4e00\u4e9b\u7b80\u5355\u7684\u914d\u7f6e\u548c\u5185\u5bb9\uff0c\u4f46\u7531\u4e8e\u7f3a\u4e4f\u4e8b\u5148\u77e5\u8bc6\uff0c\u6240\u4ee5\u611f\u89c9\u8fd8\u662f\u6709\u70b9\u96be\u3002\u5982\u679c\u8003\u8651\u8fdb\u884c\u6b63\u5f0f\u4f7f\u7528\uff0c\u6211\u89c9\u5f97\u9700\u8981\u4e86\u89e3OpenShift Origin\u4e2d\u627f\u62c5\u6838\u5fc3\u89d2\u8272\u7684\u6982\u5ff5\uff0c\u6bd4\u5982Kubernetes\u7684Service\u548cPod\u7b49\u3002<\/p>\n<p>\u6211\u5e0c\u671b\u672a\u6765\u5728\u5c1d\u8bd5\u5f15\u4eba\u6ce8\u610f\u7684\u6280\u672f\u65f6\uff0c\u4e5f\u80fd\u5c1d\u8bd5\u5c06\u5176\u53d1\u5e03\u5230\u6587\u7ae0\u4e2d\u3002<\/p>\n<h2>\u5f9e\u958b\u767c\u548c\u904b\u71df\u8005\u7684\u89d2\u5ea6\u4f86\u601d\u8003\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u958b\u767a\u8005\u8996\u70b9<\/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\u30c6\u30ca\u306e\u8d77\u52d5\u306f\u65e9\u3044\u3057\u3001\u591a\u91cd\u5316\u3082\u7c21\u5358\u306a\u306e\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u81ea\u52d5\u5316\u74b0\u5883\u307e\u3067\u4f5c\u308c\u305f\u3089\u3001\u53d6\u308a\u5165\u308c\u305f\u3044\u3068\u601d\u3048\u308b\u30dd\u30a4\u30f3\u30c8\u306b\u306a\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u611f\u3058\u307e\u3057\u305f\u3002<\/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\">\u904b\u7528\u8005\u8996\u70b9<\/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\">Docker \u3068 Kubernetes \u3068 OpenShift \u306e\u77e5\u8b58\u304c\u5fc5\u8981\u306b\u306a\u308b\u305f\u3081\u3001\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u5c11\u3057\u9ad8\u3044\u3088\u3046\u306b\u601d\u308f\u308c\u307e\u3057\u305f\u304c Service \u3054\u3068\u306b\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u305f\u308a\u3001WebUI \u304b\u3089\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u4f7f\u3048\u305f\u308a\u3059\u308b\u306e\u306f\u4fbf\u5229\u306a\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u3057\u305f\u74b0\u5883\u3067\u5229\u7528\u3059\u308b\u5206\u306b\u306f\u826f\u3044\u3068\u601d\u3044\u307e\u3057\u305f\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u3057\u304b\u3057\u3001\u554f\u984c\u5207\u308a\u5206\u3051\u307e\u3067\u6c42\u3081\u3089\u308c\u308b\u74b0\u5883\u3067\u306f\u904b\u7528\u3059\u308b\u306b\u3042\u305f\u3063\u3066\u5207\u308a\u5206\u3051\u306b\u82e6\u52b4\u3057\u305d\u3046\u306a\u306e\u3067\u3001\u5b89\u5b9a\u7a3c\u52d5\u3092\u76ee\u6307\u3059\u74b0\u5883\u3067\u81ea\u5206\u304c\u904b\u7528\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u5c11\u3057\u656c\u9060\u3057\u305f\u304f\u306a\u308b\u69cb\u6210\u3060\u3068\u611f\u3058\u307e\u3057\u305f\u3002<\/ul>\n<h1>\u8bf7\u53c2\u9605\u8fd9\u4e00\u70b9\u3002Pods and Services\uff08\u82f1\u6587\u5b98\u65b9\uff09<br \/>\nOpenShift Origin\uff08\u82f1\u6587\u5b98\u65b9\uff09<br \/>\n\u8bd5\u4e00\u8bd5\uff08\u82f1\u6587\u5b98\u65b9\uff09<br \/>\nOpenShift v3 \u6280\u672f\u6982\u8ff0\uff08SlideShare\uff09<br \/>\nOpenShift v3 \u4e0e source-to-image\uff08s2i\uff09\uff08Qiita\uff09<br \/>\nMongoDB\u7684CRUD\uff08Qiita\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u7ecf\u8fc7\u524d\u56de \u300eGMO\u30af\u30e9\u30a6\u30c9ALTUS Basic with Docker\u4e0a\u306b OpenShift Ori [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-29612","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"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>\u5c1d\u8bd5\u6267\u884cOpenShift Origin\u7684\u201c\u8bd5\u4e00\u8bd5\u201d\u529f\u80fd\u5e76\u90e8\u7f72mongoDB - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u5c1d\u8bd5\u6267\u884cOpenShift Origin\u7684\u201c\u8bd5\u4e00\u8bd5\u201d\u529f\u80fd\u5e76\u90e8\u7f72mongoDB\u7684\u6280\u672f\u6587\u7ae0\" \/>\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\/\u5c1d\u8bd5\u6267\u884copenshift-origin\u7684\u8bd5\u4e00\u8bd5\u529f\u80fd\u5e76\u90e8\u7f72mongodb\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5c1d\u8bd5\u6267\u884cOpenShift Origin\u7684\u201c\u8bd5\u4e00\u8bd5\u201d\u529f\u80fd\u5e76\u90e8\u7f72mongoDB\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u5c1d\u8bd5\u6267\u884cOpenShift Origin\u7684\u201c\u8bd5\u4e00\u8bd5\u201d\u529f\u80fd\u5e76\u90e8\u7f72mongoDB\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5c1d\u8bd5\u6267\u884copenshift-origin\u7684\u8bd5\u4e00\u8bd5\u529f\u80fd\u5e76\u90e8\u7f72mongodb\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-16T00:26:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-12T06:59:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d02fb37434c4406bd2675\/11-0.jpeg\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\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, \u9896\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \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\/%e5%b0%9d%e8%af%95%e6%89%a7%e8%a1%8copenshift-origin%e7%9a%84%e8%af%95%e4%b8%80%e8%af%95%e5%8a%9f%e8%83%bd%e5%b9%b6%e9%83%a8%e7%bd%b2mongodb%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e6%89%a7%e8%a1%8copenshift-origin%e7%9a%84%e8%af%95%e4%b8%80%e8%af%95%e5%8a%9f%e8%83%bd%e5%b9%b6%e9%83%a8%e7%bd%b2mongodb%e3%80%82\/\",\"name\":\"\u5c1d\u8bd5\u6267\u884cOpenShift Origin\u7684\u201c\u8bd5\u4e00\u8bd5\u201d\u529f\u80fd\u5e76\u90e8\u7f72mongoDB - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-11-16T00:26:30+00:00\",\"dateModified\":\"2025-08-12T06:59:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"description\":\"\u5173\u4e8e\u5c1d\u8bd5\u6267\u884cOpenShift Origin\u7684\u201c\u8bd5\u4e00\u8bd5\u201d\u529f\u80fd\u5e76\u90e8\u7f72mongoDB\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e6%89%a7%e8%a1%8copenshift-origin%e7%9a%84%e8%af%95%e4%b8%80%e8%af%95%e5%8a%9f%e8%83%bd%e5%b9%b6%e9%83%a8%e7%bd%b2mongodb%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e6%89%a7%e8%a1%8copenshift-origin%e7%9a%84%e8%af%95%e4%b8%80%e8%af%95%e5%8a%9f%e8%83%bd%e5%b9%b6%e9%83%a8%e7%bd%b2mongodb%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e6%89%a7%e8%a1%8copenshift-origin%e7%9a%84%e8%af%95%e4%b8%80%e8%af%95%e5%8a%9f%e8%83%bd%e5%b9%b6%e9%83%a8%e7%bd%b2mongodb%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5c1d\u8bd5\u6267\u884cOpenShift Origin\u7684\u201c\u8bd5\u4e00\u8bd5\u201d\u529f\u80fd\u5e76\u90e8\u7f72mongoDB\"}]},{\"@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\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e6%89%a7%e8%a1%8copenshift-origin%e7%9a%84%e8%af%95%e4%b8%80%e8%af%95%e5%8a%9f%e8%83%bd%e5%b9%b6%e9%83%a8%e7%bd%b2mongodb%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5c1d\u8bd5\u6267\u884cOpenShift Origin\u7684\u201c\u8bd5\u4e00\u8bd5\u201d\u529f\u80fd\u5e76\u90e8\u7f72mongoDB - Blog - Silicon Cloud","description":"\u5173\u4e8e\u5c1d\u8bd5\u6267\u884cOpenShift Origin\u7684\u201c\u8bd5\u4e00\u8bd5\u201d\u529f\u80fd\u5e76\u90e8\u7f72mongoDB\u7684\u6280\u672f\u6587\u7ae0","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\/\u5c1d\u8bd5\u6267\u884copenshift-origin\u7684\u8bd5\u4e00\u8bd5\u529f\u80fd\u5e76\u90e8\u7f72mongodb\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5c1d\u8bd5\u6267\u884cOpenShift Origin\u7684\u201c\u8bd5\u4e00\u8bd5\u201d\u529f\u80fd\u5e76\u90e8\u7f72mongoDB","og_description":"\u5173\u4e8e\u5c1d\u8bd5\u6267\u884cOpenShift Origin\u7684\u201c\u8bd5\u4e00\u8bd5\u201d\u529f\u80fd\u5e76\u90e8\u7f72mongoDB\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5c1d\u8bd5\u6267\u884copenshift-origin\u7684\u8bd5\u4e00\u8bd5\u529f\u80fd\u5e76\u90e8\u7f72mongodb\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-16T00:26:30+00:00","article_modified_time":"2025-08-12T06:59:39+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d02fb37434c4406bd2675\/11-0.jpeg"}],"author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e6%89%a7%e8%a1%8copenshift-origin%e7%9a%84%e8%af%95%e4%b8%80%e8%af%95%e5%8a%9f%e8%83%bd%e5%b9%b6%e9%83%a8%e7%bd%b2mongodb%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e6%89%a7%e8%a1%8copenshift-origin%e7%9a%84%e8%af%95%e4%b8%80%e8%af%95%e5%8a%9f%e8%83%bd%e5%b9%b6%e9%83%a8%e7%bd%b2mongodb%e3%80%82\/","name":"\u5c1d\u8bd5\u6267\u884cOpenShift Origin\u7684\u201c\u8bd5\u4e00\u8bd5\u201d\u529f\u80fd\u5e76\u90e8\u7f72mongoDB - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-11-16T00:26:30+00:00","dateModified":"2025-08-12T06:59:39+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"description":"\u5173\u4e8e\u5c1d\u8bd5\u6267\u884cOpenShift Origin\u7684\u201c\u8bd5\u4e00\u8bd5\u201d\u529f\u80fd\u5e76\u90e8\u7f72mongoDB\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e6%89%a7%e8%a1%8copenshift-origin%e7%9a%84%e8%af%95%e4%b8%80%e8%af%95%e5%8a%9f%e8%83%bd%e5%b9%b6%e9%83%a8%e7%bd%b2mongodb%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e6%89%a7%e8%a1%8copenshift-origin%e7%9a%84%e8%af%95%e4%b8%80%e8%af%95%e5%8a%9f%e8%83%bd%e5%b9%b6%e9%83%a8%e7%bd%b2mongodb%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e6%89%a7%e8%a1%8copenshift-origin%e7%9a%84%e8%af%95%e4%b8%80%e8%af%95%e5%8a%9f%e8%83%bd%e5%b9%b6%e9%83%a8%e7%bd%b2mongodb%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5c1d\u8bd5\u6267\u884cOpenShift Origin\u7684\u201c\u8bd5\u4e00\u8bd5\u201d\u529f\u80fd\u5e76\u90e8\u7f72mongoDB"}]},{"@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\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e6%89%a7%e8%a1%8copenshift-origin%e7%9a%84%e8%af%95%e4%b8%80%e8%af%95%e5%8a%9f%e8%83%bd%e5%b9%b6%e9%83%a8%e7%bd%b2mongodb%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/29612","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=29612"}],"version-history":[{"count":3,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/29612\/revisions"}],"predecessor-version":[{"id":111513,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/29612\/revisions\/111513"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=29612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=29612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=29612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}