{"id":43680,"date":"2022-12-25T04:24:34","date_gmt":"2024-01-19T04:29:51","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ibm%e4%ba%91%e4%b8%8a%e9%83%a8%e7%bd%b2red-hat-openshift%e5%86%85%e9%83%a8pod%e7%9a%84gitlab%e3%80%82\/"},"modified":"2024-04-29T06:52:15","modified_gmt":"2024-04-28T22:52:15","slug":"%e5%9c%a8ibm%e4%ba%91%e4%b8%8a%e9%83%a8%e7%bd%b2red-hat-openshift%e5%86%85%e9%83%a8pod%e7%9a%84gitlab%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ibm%e4%ba%91%e4%b8%8a%e9%83%a8%e7%bd%b2red-hat-openshift%e5%86%85%e9%83%a8pod%e7%9a%84gitlab%e3%80%82\/","title":{"rendered":"\u5728IBM\u4e91\u4e0a\u90e8\u7f72Red Hat OpenShift\u5185\u90e8Pod\u7684GitLab"},"content":{"rendered":"<h1>\u6240\u8ffd\u6c42\u7684\u76ee\u6807<\/h1>\n<p>\u56e0\u4e3a\u4e00\u4e9b\u7279\u6b8a\u60c5\u51b5\uff0c\u6211\u60f3\u4f7f\u7528GitLab\uff0c\u4f46\u662fIBM Cloud\u7684GitLab\u7248\u672c\u6709\u70b9\u65e7\uff0c\u6216\u8005\u4e00\u4e9b\u8bbe\u7f6e\u65e0\u6cd5\u81ea\u7531\u66f4\u6539\uff0c\u56e0\u6b64\u6211\u9009\u62e9\u5c06\u5176\u90e8\u7f72\u5230Red Hat OpenShift on IBM Cloud\uff08ROKS\uff09\u3002GitLab\u539f\u672c\u5c31\u652f\u6301Kubernetes\uff0c\u4f46\u662fOpenShift\u548cROKS\u6709\u5176\u7279\u5b9a\u7684\u64cd\u4f5c\u6b65\u9aa4\uff0c\u6211\u60f3\u5728\u8fd9\u91cc\u8bf4\u660e\u4e00\u4e0b\u3002<\/p>\n<p>\u53e6\u5916\uff0cGitLab\u7684\u5206\u53d1\u7248\u672c\u53ef\u4ee5\u5728Pod\u4e2d\u8fd0\u884c\u5185\u90e8\u4f7f\u7528\u7684PostgreSQL\u548cRedis\u7b49\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5916\u90e8\u670d\u52a1\u3002\u8fd9\u6b21\u6211\u4eec\u5c1d\u8bd5\u4e86\u5728Pod\u4e2d\u8fd0\u884c\u3002<\/p>\n<h1>\u64cd\u4f5c\u6b65\u9aa4<\/h1>\n<p>\u8fd9\u662f\u6211\u4eec\u7684\u6307\u5357\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u8fd9\u6b21\u5c06\u901a\u8fc7Helm\u5b89\u88c5\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<h2>\u521b\u5efa\u516c\u5171\u57df\u540d\u548cTLS\u8bc1\u4e66\u3002<\/h2>\n<p>\u5f53\u8fd0\u884cHelm\u65f6\uff0c\u4f1a\u81ea\u52a8\u90e8\u7f72Nginx Ingress\uff0c\u5e76\u4e14\u4f1a\u4e3aIBM Cloud VPC\u914d\u7f6e\u8d1f\u8f7d\u5747\u8861\u5668\u3002\u7136\u800c\uff0c\u7531\u4e8e\u8d1f\u8f7d\u5747\u8861\u5668\u6ca1\u6709TLS\u8bc1\u4e66\uff0c\u6240\u4ee5\u65e0\u6cd5\u76f4\u63a5\u901a\u8fc7HTTPS\u8fdb\u884c\u901a\u4fe1\u3002\u867d\u7136\u53ef\u4ee5\u81ea\u884c\u8ba2\u8d2d\u548c\u83b7\u53d6TLS\u8bc1\u4e66\uff0c\u4f46\u672c\u6b21\u6211\u4eec\u5c06\u4f7f\u7528IBM Cloud\u63d0\u4f9b\u7684\u6807\u51c6\u8bc1\u4e66\u3002<\/p>\n<blockquote><p>\u5982\u679c\u4f7f\u7528OpenShift\uff0c\u53ef\u80fd\u4f1a\u8003\u8651\u4f7f\u7528Router\uff0c\u4f46GitLab\u5728git\u901a\u4fe1\u4e2d\u4f7f\u7528SSH\uff0c\u56e0\u6b64\u6211\u4eec\u4f7f\u7528\u4e86\u4e0eHTTP\u65e0\u5173\u7684Router\uff0c\u5e76\u4f7f\u7528\u4e86GitLab\u9644\u5e26\u7684Nginx Ingress\u3002<\/p><\/blockquote>\n<p>ROKS\u7684\u9ed8\u8ba4\u8bbe\u7f6e\u5305\u62ec\u6ce8\u518c\u9762\u5411\u516c\u4f17\u7684FQDN\u548c\u8d1f\u8f7d\u5747\u8861\u5668\u3002<\/p>\n<pre class=\"post-pre\"><code>$ ibmcloud oc nlb-dns ls -c ${\u30af\u30e9\u30b9\u30bf\u30fc\u540d}\r\nOK\r\n\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3                                                                        \u30bf\u30fc\u30b2\u30c3\u30c8                            SSL \u8a3c\u660e\u66f8\u306e\u72b6\u6cc1   SSL \u8a3c\u660e\u66f8\u306e\u79d8\u5bc6\u540d                                \u79d8\u5bc6\u306e\u540d\u524d \u7a7a\u9593\r\n********-********d72d9643e3d07091333056f5-0000.jp-tok.containers.appdomain.cloud   ********-jp-tok.lb.appdomain.cloud   created           ********-********d72d9643e3d07091333056f5-0000   openshift-ingress\r\n<\/code><\/pre>\n<p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u4f1a\u8bb0\u4f4f\u8d1f\u8f7d\u5747\u8861\u5668\u7684\u540d\u79f0\u3002\u867d\u7136\u4e0d\u4f1a\u76f4\u63a5\u4f7f\u7528\uff0c\u4f46\u6211\u4eec\u4f1a\u6682\u65f6\u501f\u7528\u5b83\u7684\u540d\u5b57\u3002<\/p>\n<p>\u5982\u679c\u8fd8\u6ca1\u6709\u4e3a\u5b89\u88c5GitLab\u521b\u5efa\u547d\u540d\u7a7a\u95f4\uff0c\u5219\u9700\u8981\u4e8b\u5148\u521b\u5efa\u5b83\u3002<\/p>\n<pre class=\"post-pre\"><code>$ oc create ns ${\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u540d}\r\n<\/code><\/pre>\n<p>\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\uff0c\u6dfb\u52a0\u4e00\u4e2a\u9762\u5411\u516c\u4f17\u7684\u57df\u540d\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u540d: GitLab\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u540d<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u540d: \u5148\u307b\u3069\u63a7\u3048\u305f\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u540d<\/ul>\n<pre class=\"post-pre\"><code>$ ibmcloud oc nlb-dns create vpc-gen2 -c ${\u30af\u30e9\u30b9\u30bf\u30fc\u540d} --secret-namespace ${\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u540d} --type public --lb-host ${\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u540d}\r\nNLB DNS \u3092\u4f5c\u6210\u4e2d...\r\nOK\r\nNLB \u30db\u30b9\u30c8\u540d\u304c ********-********d72d9643e3d07091333056f5-0001.jp-tok.containers.appdomain.cloud \u3068\u3057\u3066\u4f5c\u6210\u3055\u308c\u3001public DNS \u306b\u767b\u9332\u3055\u308c\u307e\u3057\u305f\r\n<\/code><\/pre>\n<p>\u6211\u4f1a\u786e\u8ba4\u8bc1\u4e66\u7684\u521b\u5efa\u60c5\u51b5\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u7b2c\u4e8c\u884c\u7684&#8221;-0001&#8243;\u662f\u521a\u521a\u6dfb\u52a0\u7684\u57df\u540d\u3002\u8bf7\u7a0d\u7b49\uff0c\u53ea\u8981SSL\u8bc1\u4e66\u7684\u72b6\u6001\u53d8\u6210\u4e86&#8221;created&#8221;\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<blockquote><p>\u6709\u65f6\u5019\u8fd9\u91cc\u53ef\u80fd\u4f1a\u5904\u4e8e\u5f85\u5904\u7406\u72b6\u6001\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528ibmcloud ks nlb-dns secret regenerate\u547d\u4ee4\u6765\u751f\u6210\u3002\u5982\u679c\u4ecd\u7136\u65e0\u6cd5\u89e3\u51b3\u95ee\u9898\uff0c\u8bf7\u8054\u7cfb\u6280\u672f\u652f\u6301\u3002<\/p><\/blockquote>\n<p>\u8bf7\u8bb0\u5f55\u4e0b\u6240\u663e\u793a\u7684\u5b50\u57df\u540d\uff08-0001\uff09\u548cSSL\u8bc1\u4e66\u7684\u5bc6\u94a5\u540d\u79f0\u3002<\/p>\n<pre class=\"post-pre\"><code>$ ibmcloud oc nlb-dns ls -c ${\u30af\u30e9\u30b9\u30bf\u30fc\u540d}\r\nOK\r\n\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3                                                                        \u30bf\u30fc\u30b2\u30c3\u30c8                            SSL \u8a3c\u660e\u66f8\u306e\u72b6\u6cc1    SSL \u8a3c\u660e\u66f8\u306e\u79d8\u5bc6\u540d                                \u79d8\u5bc6\u306e\u540d\u524d\u7a7a\u9593\r\n********-********d72d9643e3d07091333056f5-0000.jp-tok.containers.appdomain.cloud   ********-jp-tok.lb.appdomain.cloud   created            ********-********d72d9643e3d07091333056f5-0000   openshift-ingress\r\n********-********d72d9643e3d07091333056f5-0001.jp-tok.containers.appdomain.cloud   ********-jp-tok.lb.appdomain.cloud   created            ********-********d72d9643e3d07091333056f5-0001   ********\r\n<\/code><\/pre>\n<h2>\u6dfb\u52a0GitLab Helm\u5e93<\/h2>\n<p>\u6dfb\u52a0Helm\u5b58\u50a8\u5e93\u3002<\/p>\n<pre class=\"post-pre\"><code>$ helm repo add gitlab https:\/\/charts.gitlab.io\/\r\n$ helm repo update\r\n<\/code><\/pre>\n<h2>\u6dfb\u52a0ServiceAccount<\/h2>\n<p>\u7531\u4e8eOpenShift\u7279\u5b9a\u7684SCC\u9650\u5236\uff0c\u539f\u672c\u7684ServiceAccount\u5728Helm\u4e2d\u4f1a\u81ea\u52a8\u521b\u5efa\uff0c\u4f46\u4e0d\u80fd\u76f4\u63a5\u4f7f\u7528\u3002\u6211\u4eec\u9700\u8981\u4e8b\u5148\u521b\u5efa\u5b83\uff0c\u4ee5\u4fbf\u5728\u4f7f\u7528Helm\u8fdb\u884c\u5b89\u88c5\u65f6\u80fd\u591f\u987a\u5229\u8fd0\u884c\u3002<\/p>\n<p>\u521b\u5efa\u5fc5\u8981\u7684ServiceAccount\u3002<\/p>\n<pre class=\"post-pre\"><code>$ oc create sa gitlab-certmanager-issuer\r\n$ oc create sa gitlab-gitlab-runner\r\n$ oc create sa gitlab-nginx-ingress\r\n$ oc create sa gitlab-nginx-ingress-backend\r\n$ oc create sa gitlab-prometheus-server\r\n$ oc create sa gitlab-shared-secrets\r\n<\/code><\/pre>\n<p>\u6388\u4e88\u5fc5\u8981\u7684\u6743\u9650\u3002<\/p>\n<pre class=\"post-pre\"><code>$ oc adm policy add-scc-to-user anyuid -z default\r\n$ oc adm policy add-scc-to-user anyuid -z gitlab-certmanager-issuer\r\n$ oc adm policy add-scc-to-user privileged -z gitlab-gitlab-runner\r\n$ oc adm policy add-scc-to-user privileged -z gitlab-nginx-ingress\r\n$ oc adm policy add-scc-to-user anyuid -z gitlab-nginx-ingress-backend\r\n$ oc adm policy add-scc-to-user anyuid -z gitlab-prometheus-server\r\n$ oc adm policy add-scc-to-user anyuid -z gitlab-shared-secrets\r\n<\/code><\/pre>\n<p>\u4e3a\u6b64\u5fc5\u987b\u6dfb\u52a0\u6807\u7b7e\uff0c\u5426\u5219\u5728Helm\u5b89\u88c5\u65f6\u5c06\u88ab\u89c6\u4e3a\u91cd\u590d\u7684ServiceAccount\uff0c\u4ece\u800c\u5bfc\u81f4\u5931\u8d25\u3002<\/p>\n<pre class=\"post-pre\"><code>$ oc label sa gitlab-certmanager-issuer app.kubernetes.io\/managed-by=Helm\r\n$ oc label sa gitlab-gitlab-runner app.kubernetes.io\/managed-by=Helm\r\n$ oc label sa gitlab-nginx-ingress app.kubernetes.io\/managed-by=Helm\r\n$ oc label sa gitlab-nginx-ingress-backend app.kubernetes.io\/managed-by=Helm\r\n$ oc label sa gitlab-prometheus-server app.kubernetes.io\/managed-by=Helm\r\n$ oc label sa gitlab-shared-secrets app.kubernetes.io\/managed-by=Helm\r\n<\/code><\/pre>\n<p>\u5728\u76f8\u4f3c\u7684\u7528\u6cd5\u4e2d\uff0c\u7ed9\u51fa\u6ce8\u91ca\u3002<\/p>\n<pre class=\"post-pre\"><code>$ oc annotate sa gitlab-certmanager-issuer meta.helm.sh\/release-name=gitlab meta.helm.sh\/release-namespace=${\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u540d}\r\n$ oc annotate sa gitlab-gitlab-runner meta.helm.sh\/release-name=gitlab meta.helm.sh\/release-namespace=${\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u540d}\r\n$ oc annotate sa gitlab-nginx-ingress meta.helm.sh\/release-name=gitlab meta.helm.sh\/release-namespace=${\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u540d}\r\n$ oc annotate sa gitlab-nginx-ingress-backend meta.helm.sh\/release-name=gitlab meta.helm.sh\/release-namespace=${\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u540d}\r\n$ oc annotate sa gitlab-prometheus-server meta.helm.sh\/release-name=gitlab meta.helm.sh\/release-namespace=${\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u540d}\r\n$ oc annotate sa gitlab-shared-secrets meta.helm.sh\/release-name=gitlab meta.helm.sh\/release-namespace=${\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u540d}\r\n<\/code><\/pre>\n<h2>GitLab\u7684\u5b89\u88c5<\/h2>\n<p>\u7ec8\u4e8e\u8981\u5b89\u88c5GitLab\u4e86\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u540d: \u4efb\u610f<\/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\">\u30c9\u30e1\u30a4\u30f3\u540d: \u5148\u307b\u3069\u63a7\u3048\u305f\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\uff08-0001\uff09<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u540d: \u5148\u307b\u3069\u63a7\u3048\u305fSSL\u8a3c\u660e\u66f8\u306e\u79d8\u5bc6\u540d<\/ul>\n<pre class=\"post-pre\"><code>$ helm upgrade --install ${\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u540d} gitlab\/gitlab --timeout 300s \\\r\n  --set certmanager-issuer.email=me@example.com \\\r\n  --set global.hosts.domain=${\u30c9\u30e1\u30a4\u30f3\u540d} \\\r\n  --set global.ingress.tls.secretName=${\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u540d}\r\n<\/code><\/pre>\n<p>\u5982\u679c\u60a8\u60f3\u4f7f\u7528GitLab Pages\uff0c\u8bf7\u6dfb\u52a0\u4ee5\u4e0b\u53c2\u6570\u3002<\/p>\n<pre class=\"post-pre\"><code>  --set global.pages.enabled=true \\\r\n  --set global.pages.host=${\u30c9\u30e1\u30a4\u30f3\u540d}\r\n<\/code><\/pre>\n<p>\u5982\u679c\u4e4b\u524d\u7684\u8bbe\u7f6e\u6ca1\u6709\u95ee\u9898\uff0cPod\u5e94\u8be5\u80fd\u591f\u987a\u5229\u542f\u52a8\uff0c\u4f46\u662f\u53ea\u6709gitlab-runner\u9884\u8ba1\u4f1a\u542f\u52a8\u5931\u8d25\u3002\u539f\u56e0\u662f\u56e0\u4e3a\u4e4b\u524d\u8bbe\u7f6e\u7684\u57df\u540d\u901a\u4fe1\u4ecd\u7136\u65e0\u6cd5\u8fdb\u884c\u3002<\/p>\n<h2>\u57df\u540d\u76ee\u6807\u66f4\u6539<\/h2>\n<p>\u90e8\u7f72GitLab\u65f6\uff0c\u5c06\u81ea\u52a8\u4e3aNginx Ingress\u914d\u7f6e\u4e00\u4e2a\u8d1f\u8f7d\u5747\u8861\u5668\u3002\u8bf7\u8bb0\u4e0b\u5b83\u7684\u540d\u79f0\u3002<\/p>\n<pre class=\"post-pre\"><code>$ oc get svc | grep LoadBalancer\r\ngitlab-nginx-ingress-controller           LoadBalancer   172.21.161.208   ********-jp-tok.lb.appdomain.cloud   80:31150\/TCP,443:30340\/TCP,22:30119\/TCP   4m37s\r\n<\/code><\/pre>\n<p>\u6211\u5c06\u628a\u5148\u524d\u6ce8\u518c\u7684\u57df\u540d\u7684\u76ee\u6807\u5730\u5740\u66f4\u6539\u4e3a\u4e0a\u8ff0\u540d\u79f0\u3002<\/p>\n<pre class=\"post-pre\"><code>$ ibmcloud oc nlb-dns replace -c ${\u30af\u30e9\u30b9\u30bf\u30fc\u540d} --lb-host ********-jp-tok.lb.appdomain.cloud --nlb-subdomain ********-********d72d9643e3d07091333056f5-0001.jp-tok.containers.appdomain.cloud\r\nNLB DNS \u3092\u66f4\u65b0\u4e2d...\r\n\u6ce8: \u5909\u66f4\u304c\u9069\u7528\u3055\u308c\u308b\u307e\u3067\u6570\u5206\u304b\u304b\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\r\nOK\r\n<\/code><\/pre>\n<p>\u7a0d\u7b49\u4e00\u4e0b\uff0cgitlab-runner\u4f1a\u53d8\u4e3aRunning\u72b6\u6001\u3002<\/p>\n<blockquote><p>\u7531\u4e8eDNS\u8bb0\u5f55\u4f20\u64ad\u7684\u5173\u7cfb\uff0c\u53ef\u80fd\u9700\u8981\u51e0\u5341\u5206\u949f\u5de6\u53f3\u7684\u65f6\u95f4\u3002<\/p><\/blockquote>\n<h2>\u786e\u8ba4root\u5bc6\u7801<\/h2>\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u786e\u8ba4root\u7ba1\u7406\u5458\u7528\u6237\u7684\u521d\u59cb\u5bc6\u7801\u3002<\/p>\n<pre class=\"post-pre\"><code>$ oc get secret ${\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u540d}-gitlab-initial-root-password -o jsonpath='{.data.password}' | base64 -d; echo\r\n********\r\n<\/code><\/pre>\n<h2>\u8bbf\u95eeGitLab<\/h2>\n<blockquote><p>\u8bf7\u63d0\u4f9b\u4ee5\u4e0b\u9009\u9879\u7684\u4e2d\u6587\u672c\u5730\u5316\u7248\u672c\uff1a<\/p>\n<p>https:\/\/gitlab.********-********d72d9643e3d07091333056f5-0001.jp-tok.containers.appdomain.cloud\/ -&gt;<\/p>\n<p>https:\/\/gitlab.********-********d72d9643e3d07091333056f5-0001.jp-tok.containers.appdomain.cloud\/<\/p><\/blockquote>\n<h1>\u8bf7\u6ce8\u610f<\/h1>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u4ee5\u4e0b\u5b58\u50a8\u7a7a\u95f4\u6b63\u5728\u4f7f\u7528\u4e2d\u3002\u8bf7\u6ce8\u610f\uff0c\u6b64\u4e3a\u6536\u8d39\u670d\u52a1\u3002<\/p>\n<pre class=\"post-pre\"><code>$ oc get pvc\r\nNAME                               STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS                 AGE\r\ndata-gitlab-postgresql-0           Bound    pvc-817fe266-d46e-4ce8-aa37-1e48ce42a1e3   10Gi       RWO            ibmc-vpc-block-10iops-tier   44h\r\ngitlab-minio                       Bound    pvc-fa24be28-5c07-4111-8e3b-1d8134fe081e   10Gi       RWO            ibmc-vpc-block-10iops-tier   44h\r\ngitlab-prometheus-server           Bound    pvc-2ade9e01-a65f-43b9-ac0c-178377e819dd   10Gi       RWO            ibmc-vpc-block-10iops-tier   44h\r\nredis-data-gitlab-redis-master-0   Bound    pvc-93ea63c4-9e4c-41ad-81a1-31a6fdee5d88   10Gi       RWO            ibmc-vpc-block-10iops-tier   44h\r\nrepo-data-gitlab-gitaly-0          Bound    pvc-8172fd76-5ceb-468d-ab9d-91f43dcfdd63   50Gi       RWO            ibmc-vpc-block-10iops-tier   44h\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6240\u8ffd\u6c42\u7684\u76ee\u6807 \u56e0\u4e3a\u4e00\u4e9b\u7279\u6b8a\u60c5\u51b5\uff0c\u6211\u60f3\u4f7f\u7528GitLab\uff0c\u4f46\u662fIBM Cloud\u7684GitLab\u7248\u672c\u6709\u70b9\u65e7\uff0c\u6216\u8005\u4e00\u4e9b [&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-43680","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>\u5728IBM\u4e91\u4e0a\u90e8\u7f72Red Hat OpenShift\u5185\u90e8Pod\u7684GitLab - 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\/\u5728ibm\u4e91\u4e0a\u90e8\u7f72red-hat-openshift\u5185\u90e8pod\u7684gitlab\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728IBM\u4e91\u4e0a\u90e8\u7f72Red Hat OpenShift\u5185\u90e8Pod\u7684GitLab\" \/>\n<meta property=\"og:description\" content=\"\u6240\u8ffd\u6c42\u7684\u76ee\u6807 \u56e0\u4e3a\u4e00\u4e9b\u7279\u6b8a\u60c5\u51b5\uff0c\u6211\u60f3\u4f7f\u7528GitLab\uff0c\u4f46\u662fIBM Cloud\u7684GitLab\u7248\u672c\u6709\u70b9\u65e7\uff0c\u6216\u8005\u4e00\u4e9b [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728ibm\u4e91\u4e0a\u90e8\u7f72red-hat-openshift\u5185\u90e8pod\u7684gitlab\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-19T04:29:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T22:52:15+00:00\" \/>\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=\"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%9c%a8ibm%e4%ba%91%e4%b8%8a%e9%83%a8%e7%bd%b2red-hat-openshift%e5%86%85%e9%83%a8pod%e7%9a%84gitlab%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ibm%e4%ba%91%e4%b8%8a%e9%83%a8%e7%bd%b2red-hat-openshift%e5%86%85%e9%83%a8pod%e7%9a%84gitlab%e3%80%82\/\",\"name\":\"\u5728IBM\u4e91\u4e0a\u90e8\u7f72Red Hat OpenShift\u5185\u90e8Pod\u7684GitLab - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-01-19T04:29:51+00:00\",\"dateModified\":\"2024-04-28T22:52:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ibm%e4%ba%91%e4%b8%8a%e9%83%a8%e7%bd%b2red-hat-openshift%e5%86%85%e9%83%a8pod%e7%9a%84gitlab%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ibm%e4%ba%91%e4%b8%8a%e9%83%a8%e7%bd%b2red-hat-openshift%e5%86%85%e9%83%a8pod%e7%9a%84gitlab%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ibm%e4%ba%91%e4%b8%8a%e9%83%a8%e7%bd%b2red-hat-openshift%e5%86%85%e9%83%a8pod%e7%9a%84gitlab%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728IBM\u4e91\u4e0a\u90e8\u7f72Red Hat OpenShift\u5185\u90e8Pod\u7684GitLab\"}]},{\"@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\/%e5%9c%a8ibm%e4%ba%91%e4%b8%8a%e9%83%a8%e7%bd%b2red-hat-openshift%e5%86%85%e9%83%a8pod%e7%9a%84gitlab%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728IBM\u4e91\u4e0a\u90e8\u7f72Red Hat OpenShift\u5185\u90e8Pod\u7684GitLab - 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\/\u5728ibm\u4e91\u4e0a\u90e8\u7f72red-hat-openshift\u5185\u90e8pod\u7684gitlab\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728IBM\u4e91\u4e0a\u90e8\u7f72Red Hat OpenShift\u5185\u90e8Pod\u7684GitLab","og_description":"\u6240\u8ffd\u6c42\u7684\u76ee\u6807 \u56e0\u4e3a\u4e00\u4e9b\u7279\u6b8a\u60c5\u51b5\uff0c\u6211\u60f3\u4f7f\u7528GitLab\uff0c\u4f46\u662fIBM Cloud\u7684GitLab\u7248\u672c\u6709\u70b9\u65e7\uff0c\u6216\u8005\u4e00\u4e9b [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728ibm\u4e91\u4e0a\u90e8\u7f72red-hat-openshift\u5185\u90e8pod\u7684gitlab\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-01-19T04:29:51+00:00","article_modified_time":"2024-04-28T22:52:15+00:00","author":"\u79d1, \u96c5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u96c5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ibm%e4%ba%91%e4%b8%8a%e9%83%a8%e7%bd%b2red-hat-openshift%e5%86%85%e9%83%a8pod%e7%9a%84gitlab%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ibm%e4%ba%91%e4%b8%8a%e9%83%a8%e7%bd%b2red-hat-openshift%e5%86%85%e9%83%a8pod%e7%9a%84gitlab%e3%80%82\/","name":"\u5728IBM\u4e91\u4e0a\u90e8\u7f72Red Hat OpenShift\u5185\u90e8Pod\u7684GitLab - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-01-19T04:29:51+00:00","dateModified":"2024-04-28T22:52:15+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ibm%e4%ba%91%e4%b8%8a%e9%83%a8%e7%bd%b2red-hat-openshift%e5%86%85%e9%83%a8pod%e7%9a%84gitlab%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ibm%e4%ba%91%e4%b8%8a%e9%83%a8%e7%bd%b2red-hat-openshift%e5%86%85%e9%83%a8pod%e7%9a%84gitlab%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ibm%e4%ba%91%e4%b8%8a%e9%83%a8%e7%bd%b2red-hat-openshift%e5%86%85%e9%83%a8pod%e7%9a%84gitlab%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728IBM\u4e91\u4e0a\u90e8\u7f72Red Hat OpenShift\u5185\u90e8Pod\u7684GitLab"}]},{"@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\/%e5%9c%a8ibm%e4%ba%91%e4%b8%8a%e9%83%a8%e7%bd%b2red-hat-openshift%e5%86%85%e9%83%a8pod%e7%9a%84gitlab%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\/43680","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=43680"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43680\/revisions"}],"predecessor-version":[{"id":83712,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43680\/revisions\/83712"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=43680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=43680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=43680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}