{"id":132,"date":"2024-03-17T00:05:00","date_gmt":"2024-03-16T16:05:00","guid":{"rendered":"https:\/\/www.xueyaa.top\/?p=132"},"modified":"2026-03-10T22:48:52","modified_gmt":"2026-03-10T14:48:52","slug":"k8s%e9%83%a8%e7%bd%b2%e5%8c%bb%e7%96%97%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/www.xueyaa.top\/?p=132","title":{"rendered":"k8s\u90e8\u7f72\u533b\u7597\u670d\u52a1"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\" id=\"h3HFa\">1\uff09\u7f16\u5199\u8d44\u6e90\u6e05\u5355\u5e76\u63d0\u4ea4\u5230gitee<\/h3>\n\n\n\n<pre id=\"VJANH\" class=\"wp-block-code\"><code>\t1.\u7f16\u5199\u8d44\u6e90\u6e05\u5355\n&#91;root@worker233 oldboyedu-linux101-yiliao]# cat deploy-svc-yiliao.yaml\napiVersion: apps\/v1\nkind: Deployment\nmetadata:\n  name: deploy-yiliao\nspec:\n  replicas: 3\n  selector:\n    matchLabels:\n      apps: yiliao\n  template: \n    metadata:\n      labels:\n         apps: yiliao\n    spec:\n      containers:\n      - name: c1\n        image: harbor250.oldboyedu.com\/oldboyedu-yiliao\/demo:v0.1\n\n---\n\napiVersion: v1\nkind: Service\nmetadata:\n  name: svc-yiliao\nspec:\n  type: LoadBalancer\n  selector:\n    apps: yiliao\n  ports:\n  - port: 80\n\n&#91;root@worker233 oldboyedu-linux101-yiliao]# \n\t\n\t2.\u63d0\u4ea4\u8d44\u6e90\u6e05\u5355\u4ee3\u7801\u5230gitee\n&#91;root@worker233 oldboyedu-linux101-yiliao]# git add deploy-svc-yiliao.yaml \n&#91;root@worker233 oldboyedu-linux101-yiliao]# \n&#91;root@worker233 oldboyedu-linux101-yiliao]# git commit -m 'add k8s yiliao manifests'\n&#91;master 048d3db] add k8s yiliao manifests\n 1 file changed, 32 insertions(+)\n create mode 100644 deploy-svc-yiliao.yaml\n&#91;root@worker233 oldboyedu-linux101-yiliao]# \n&#91;root@worker233 oldboyedu-linux101-yiliao]# git push origin master\nUsername for 'https:\/\/gitee.com': yinzhengjie\nPassword for 'https:\/\/yinzhengjie@gitee.com': \nEnumerating objects: 4, done.\nCounting objects: 100% (4\/4), done.\nDelta compression using up to 4 threads\nCompressing objects: 100% (3\/3), done.\nWriting objects: 100% (3\/3), 556 bytes | 556.00 KiB\/s, done.\nTotal 3 (delta 1), reused 0 (delta 0), pack-reused 0\nremote: Powered by GITEE.COM &#91;1.1.23]\nremote: Set trace flag d14f4da9\nTo https:\/\/gitee.com\/yinzhengjie\/oldboyedu-linux101-yiliao.git\n   cf2df7f..048d3db  master -> master\n&#91;root@worker233 oldboyedu-linux101-yiliao]# \n\n\t3.gitee\u67e5\u770b\u8fdc\u7a0b\u4ed3\u5e93<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Xhu23\">2\uff09jenkins\u90e8\u7f72\u533b\u7597\u9879\u76ee\u5230K8S\u96c6\u7fa4<\/h3>\n\n\n\n<pre id=\"ClrPO\" class=\"wp-block-code\"><code>\t1.jenkins\u5b89\u88c5kubectl\u5ba2\u6237\u7aef\u5de5\u5177\u7ba1\u7406K8S\u96c6\u7fa4\n&#91;root@jenkins211 ~]# wget http:\/\/192.168.21.253\/Resources\/Kubernetes\/Project\/DevOps\/Jenkins\/kubectl-1.23.17\n\n&#91;root@jenkins211 ~]# mv kubectl-1.23.17 \/usr\/local\/bin\/kubectl\n\n&#91;root@jenkins211 ~]# chmod +x \/usr\/local\/bin\/kubectl\n\n\t2.\u51c6\u5907\u8ba4\u8bc1\u6587\u4ef6\n&#91;root@jenkins211 ~]# mkdir -p .kube\n&#91;root@jenkins211 ~]# scp 10.0.0.231:\/root\/.kube\/config .kube\nroot@10.0.0.231\u2019s password:  #\u8f93\u5165\u5bc6\u7801\nconfig                                                                                               100% 5634    10.7MB\/s   00:00    \n&#91;root@jenkins211 ~]# \n&#91;root@jenkins211 ~]# kubectl version\nClient Version: version.Info{Major:\"1\", Minor:\"23\", GitVersion:\"v1.23.17\", GitCommit:\"953be8927218ec8067e1af2641e540238ffd7576\", GitTreeState:\"clean\", BuildDate:\"2023-02-22T13:34:27Z\", GoVersion:\"go1.19.6\", Compiler:\"gc\", Platform:\"linux\/amd64\"}\nServer Version: version.Info{Major:\"1\", Minor:\"23\", GitVersion:\"v1.23.17\", GitCommit:\"953be8927218ec8067e1af2641e540238ffd7576\", GitTreeState:\"clean\", BuildDate:\"2023-02-22T13:27:46Z\", GoVersion:\"go1.19.6\", Compiler:\"gc\", Platform:\"linux\/amd64\"}\n&#91;root@jenkins211 ~]# \n&#91;root@jenkins211 ~]# kubectl get nodes -o wide\nNAME        STATUS   ROLES                  AGE     VERSION    INTERNAL-IP   EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION       CONTAINER-RUNTIME\nmaster231   Ready    control-plane,master   16d     v1.23.17   10.0.0.231    &lt;none&gt;        Ubuntu 22.04.4 LTS   5.15.0-163-generic   docker:\/\/20.10.24\nworker232   Ready    &lt;none&gt;                 16d     v1.23.17   10.0.0.232    &lt;none&gt;        Ubuntu 22.04.4 LTS   5.15.0-163-generic   docker:\/\/20.10.24\nworker233   Ready    &lt;none&gt;                 6d22h   v1.23.17   10.0.0.233    &lt;none&gt;        Ubuntu 22.04.4 LTS   5.15.0-163-generic   docker:\/\/20.10.24\n&#91;root@jenkins211 ~]#\n\n\t3.\u4fee\u6539jenkins\u7684\u6784\u5efa\u547d\u4ee4(\u6b64\u64cd\u4f5c\u4f1a\u5728jk\u8282\u70b9\u6267\u884c)\ndocker build -t  harbor250.oldboyedu.com\/oldboyedu-yiliao\/demo:v0.1 .\ndocker login -u admin -p 1 harbor250.oldboyedu.com\ndocker push harbor250.oldboyedu.com\/oldboyedu-yiliao\/demo:v0.1\ndocker logout harbor250.oldboyedu.com\nkubectl apply -f deploy-svc-yiliao.yaml\nkubectl get deploy,svc,pods -o wide<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"NWVrI\">3\uff09\u53c2\u6570\u5316\u6784\u5efa\u4e4b\u9009\u9879\u53c2\u6570\u5b9e\u6218<\/h3>\n\n\n\n<pre id=\"a0kbq\" class=\"wp-block-code\"><code>\t1.\u4fee\u6539\u6e90\u4ee3\u7801 #gitee\u91cc\u4e5f\u53ef\u4ee5\u4fee\u6539,\u4fee\u6539\u540e\u4fdd\u5b58\u5373\u53ef\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# vim code\/index.html  # \u81ea\u884c\u4fee\u6539\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# \n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# git commit -am 'update test v0.3'\n&#91;master 28aa42a] update test v0.3\n 1 file changed, 1 insertion(+), 1 deletion(-)\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# \n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# git push origin master \nUsername for 'https:\/\/gitee.com': yinzhengjie\nPassword for 'https:\/\/yinzhengjie@gitee.com': \nEnumerating objects: 7, done.\nCounting objects: 100% (7\/7), done.\nDelta compression using up to 2 threads\nCompressing objects: 100% (4\/4), done.\nWriting objects: 100% (4\/4), 466 bytes | 466.00 KiB\/s, done.\nTotal 4 (delta 3), reused 0 (delta 0), pack-reused 0\nremote: Powered by GITEE.COM &#91;1.1.23]\nremote: Set trace flag 9445ecb2\nTo https:\/\/gitee.com\/yinzhengjie\/oldboyedu-yiliao-linux100.git\n   b79556d..28aa42a  master -> master\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# \n\n\t\n\t2.\u6dfb\u52a0jenkins\u53d8\u91cf\n\u5047\u8bbe\u53d8\u91cf\u540d\u79f0\u4e3a'version'\n\n  \n\t3.\u4fee\u6539\u7f16\u8bd1\u7684\u811a\u672c\u5185\u5bb9\u5f15\u7528\u53d8\u91cf\nset +e  # \u8868\u793a\u5c31\u7b97\u540e\u7eed\u7684\u547d\u4ee4\u5982\u679c\u8fd4\u56de\u503c\u4e0d\u662f0\uff0c\u90a3\u4e48\u811a\u672c\u4f9d\u7136\u5411\u4e0b\u6267\u884c;\u5176\u4e2d'set -e'\u8868\u793a\u7acb\u523b\u505c\u6b62(\u662f\u4e25\u683c\u6a21\u5f0f)\ndocker build -t  harbor250.oldboyedu.com\/oldboyedu-yiliao\/demo:$version .\ndocker login -u admin -p 1 harbor250.oldboyedu.com\ndocker push harbor250.oldboyedu.com\/oldboyedu-yiliao\/demo:$version\ndocker logout harbor250.oldboyedu.com\n# deploy project\nkubectl get deployments.apps deploy-yiliao  2>\/dev\/null \nif &#91; $? -eq 0 ];then\n#\u5982\u679c\u6709\u4e0a\u9762\u7684deploy-yiliao\uff0c\u5c31\u505a\u66f4\u65b0\uff1b\u5982\u679c\u6ca1\u6709\uff0c\u5c31\u7528\u9ed8\u8ba4\u7684\u8d44\u6e90\u6e05\u5355\n\tkubectl set image deploy deploy-yiliao c1=harbor250.oldboyedu.com\/oldboyedu-yiliao\/demo:${version}\nelse\n\tkubectl apply -f deploy-svc-yiliao.yaml\nfi \nkubectl get deploy,svc,po -o wide --show-labels\n\n\n\t4.\u6784\u5efa\u6d4b\u8bd5\n\n\t5.\u8bbf\u95ee\u6d4b\u8bd5\u3002\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"m5kNh\">4\uff09git\u53c2\u6570\u5316\u6784\u5efa\u5b9e\u73b0\u53d1\u5e03\u548c\u56de\u6eda<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7531\u4e8egit\u7684\u7248\u672c\u53f7\u4e0d\u597d\u8bb0, \u8981\u5728\u5de5\u4f5c\u4e2d\u505a\u597d\u7559\u75d5(\u53d1\u9001\u5230\u90ae\u7bb1,\u9489\u9489\u7b49), \u65b9\u4fbf\u53d1\u5e03\u548c\u56de\u6eda<\/li>\n<\/ul>\n\n\n\n<pre id=\"df3zF\" class=\"wp-block-code\"><code>\t1.\u6dfb\u52a0git\u53c2\u6570\n\u5148\u5c06\u4e4b\u524d\u7684\u9009\u9879\u53c2\u6570\u5220\u9664\uff0c\u518d\u6dfb\u52a0git\u53c2\u6570\u3002\n\n\t2.\u518d\u6b21\u4fee\u6539\u4ee3\u7801\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# vim code\/index.html \n...\n 27 &lt;body>\n 28     &lt;h1 style='color: red;'>~&lt;\/h1>  \n...\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# git commit -am 'update test xixi'\n&#91;master bc46fd9] update test xixi\n 1 file changed, 1 insertion(+), 1 deletion(-)\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# \n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# git push origin master \nUsername for 'https:\/\/gitee.com': yinzhengjie\nPassword for 'https:\/\/yinzhengjie@gitee.com': \nEnumerating objects: 7, done.\nCounting objects: 100% (7\/7), done.\nDelta compression using up to 2 threads\nCompressing objects: 100% (4\/4), done.\nWriting objects: 100% (4\/4), 388 bytes | 388.00 KiB\/s, done.\nTotal 4 (delta 3), reused 0 (delta 0), pack-reused 0\nremote: Powered by GITEE.COM &#91;1.1.23]\nremote: Set trace flag 3d4ae085\nTo https:\/\/gitee.com\/yinzhengjie\/oldboyedu-yiliao-linux100.git\n   28aa42a..bc46fd9  master -> master\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# \n\n\n\t3.\u67e5\u770b\u63d0\u4ea4\u7684\u5386\u53f2\u7248\u672c\u4fe1\u606f\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# git log \ncommit bc46fd919969e6445b1ed3e58a619dd2e6d076db (HEAD -> master, origin\/master)\nAuthor:  &lt;8669059+yinzhengjie@user.noreply.gitee.com>\nDate:   Tue Dec 16 16:33:09 2025 +0800\n\n    update test xixi\n\ncommit 28aa42a4a10cdae108156fa3cf09400d37a9605c\nAuthor:  &lt;8669059+yinzhengjie@user.noreply.gitee.com>\nDate:   Tue Dec 16 16:25:34 2025 +0800\n\n    update test v0.3\n\ncommit b79556d4cffdb0bed59fd29acf12245550510969\nAuthor:  &lt;8669059+yinzhengjie@user.noreply.gitee.com>\nDate:   Tue Dec 16 15:29:07 2025 +0800\n\n    add manifests\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# \n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# git reflog \nbc46fd9 (HEAD -> master, origin\/master) HEAD@{0}: commit: update test xixi\n28aa42a HEAD@{1}: commit: update test v0.3\nb79556d HEAD@{2}: commit (initial): add manifests\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# \n\n\n\t4.jenkins\u53c2\u6570\u5316\u6784\u5efa\n\n\n\t5.\u8bbf\u95eewebUI\n\n\n\t6.\u56de\u6eda\u7248\u672c\uff08\u56e0\u4e3aharbor\u5df2\u7ecf\u6709\u6b64\u955c\u50cf\u4e86,\u76f4\u63a5\u90e8\u7f72\u5373\u53ef\uff09\nset +e  # \u8868\u793a\u5c31\u7b97\u540e\u7eed\u7684\u547d\u4ee4\u5982\u679c\u8fd4\u56de\u503c\u4e0d\u662f0\uff0c\u90a3\u4e48\u811a\u672c\u4f9d\u7136\u5411\u4e0b\u6267\u884c\uff0c\u5176\u4e2d'set -e'\u8868\u793a\u7acb\u523b\u505c\u6b62\u3002\nkubectl get deployments.apps deploy-yiliao  2>\/dev\/null \nif &#91; $? -eq 0 ];then\n#\u5982\u679c\u6709\u4e0a\u9762\u7684deploy-yiliao\uff0c\u5c31\u505a\u66f4\u65b0\uff1b\u5982\u679c\u6ca1\u6709\uff0c\u5c31\u7528\u9ed8\u8ba4\u7684\u8d44\u6e90\u6e05\u5355\n\tkubectl set image deploy deploy-yiliao c1=harbor250.oldboyedu.com\/oldboyedu-yiliao\/demo:${version}\nelse\n\tkubectl apply -f deploy-svc-yiliao.yaml\nfi \nkubectl get deploy,svc,po -o wide --show-labels\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"ylRxB\">5\uff09\u4f18\u5316\u4ee3\u7801\u7ed3\u6784\u5e76\u63d0\u4ea4\u5230gitee<\/h3>\n\n\n\n<pre id=\"GTDt7\" class=\"wp-block-code\"><code>\t1.\u4fee\u6539\u76ee\u5f55\u7ed3\u6784\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# tree -L 2 -a\n.\n\u251c\u2500\u2500 code  # \u6e90\u4ee3\u7801\u6587\u4ef6\n\u2502   \u251c\u2500\u2500 about.html\n\u2502   \u251c\u2500\u2500 album.html\n\u2502   \u251c\u2500\u2500 article_detail.html\n\u2502   \u251c\u2500\u2500 article.html\n\u2502   \u251c\u2500\u2500 comment.html\n\u2502   \u251c\u2500\u2500 contact.html\n\u2502   \u251c\u2500\u2500 css\n\u2502   \u251c\u2500\u2500 images\n\u2502   \u251c\u2500\u2500 index.html\n\u2502   \u251c\u2500\u2500 js\n\u2502   \u251c\u2500\u2500 product_detail.html\n\u2502   \u2514\u2500\u2500 product.html\n\u251c\u2500\u2500 Dockerfile  # \u7f16\u5199\u7684Dockerfile\u6587\u4ef6\n\u251c\u2500\u2500 .dockerignore  # \u5ffd\u7565\u4e0d\u5fc5\u8981\u7684\u6587\u4ef6\n\u251c\u2500\u2500 .git\n\u2502   \u251c\u2500\u2500 branches\n\u2502   \u251c\u2500\u2500 COMMIT_EDITMSG\n\u2502   \u251c\u2500\u2500 config\n\u2502   \u251c\u2500\u2500 description\n\u2502   \u251c\u2500\u2500 HEAD\n\u2502   \u251c\u2500\u2500 hooks\n\u2502   \u251c\u2500\u2500 index\n\u2502   \u251c\u2500\u2500 info\n\u2502   \u251c\u2500\u2500 logs\n\u2502   \u251c\u2500\u2500 objects\n\u2502   \u2514\u2500\u2500 refs\n\u2514\u2500\u2500 manifests  # K8S\u96c6\u7fa4\u90e8\u7f72\u7684\u8d44\u6e90\u6e05\u5355\n    \u251c\u2500\u2500 deployments.yaml\n    \u2514\u2500\u2500 services.yaml\n\n12 directories, 18 files\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# \n\n\n\t2.\u67e5\u770bDockerfile\u6587\u4ef6\u5185\u5bb9\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# cat Dockerfile \nFROM registry.cn-hangzhou.aliyuncs.com\/yinzhengjie-k8s\/apps:v1\n\nMAINTAINER Jason Yin\n\nRUN rm -rf \/usr\/share\/nginx\/html\/*\n\n# \u4e0d\u63a8\u8350\u8fd9\u6837\u4f7f\u7528\uff0c\u53ea\u8981\u4fee\u6539\u4efb\u610f\u6587\u4ef6\uff0c\u5c31\u53ef\u80fd\u65e0\u6cd5\u5145\u5206\u5229\u7528\u7f13\u5b58\u6280\u672f\uff01\n# COPY . \/usr\/share\/nginx\/html\/\n\n# \u63a8\u8350\u5c06\u6e90\u4ee3\u7801\u653e\u5728\u4e00\u4e2a\u7279\u5b9a\u76ee\u5f55\u4e2d\u8fdb\u884c\u62f7\u8d1d\u5373\u53ef\u3002\nCOPY code\/ \/usr\/share\/nginx\/html\/\n\nEXPOSE 80\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# \n\n\n\t\n\t3.\u67e5\u770b\u5ffd\u7565\u7684\u6587\u4ef6\u5185\u5bb9\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# cat .dockerignore \nmanifests\n.git\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# \n\n\t\n\t4.\u67e5\u770b\u8d44\u6e90\u6e05\u5355\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# cat manifests\/deployments.yaml \napiVersion: apps\/v1\nkind: Deployment\nmetadata:\n  name: deploy-yiliao\nspec:\n  replicas: 3\n  selector:\n    matchLabels:\n      apps: yiliao\n  template: \n    metadata:\n      labels:\n         apps: yiliao\n    spec:\n      containers:\n      - name: c1\n        image: harbor250.oldboyedu.com\/oldboyedu-yiliao\/demo:v0.1\n        ports:\n        - containerPort: 80\n          name: web\n\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# \n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# cat manifests\/services.yaml \napiVersion: v1\nkind: Service\nmetadata:\n  name: svc-yiliao\nspec:\n  type: LoadBalancer\n  selector:\n    apps: yiliao\n  ports:\n  - port: 80\n    targetPort: web\n    nodePort: 8080\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# \n\n\t\n\t5.\u5220\u9664\u8fdc\u7a0b\u4ed3\u5e93\u9879\u76ee\u91cd\u65b0\u521b\u5efa\uff08\u56e0\u4e3a\u4e4b\u524d\u7684\u73af\u5883\u5b58\u5728\u6269\u5c55\u6027\u5dee\u7684\u95ee\u9898\uff01\uff01\uff01\uff09\n\u5c06gitee\u7684'oldboyedu-yiliao-linux100'\u5220\u9664\u540e\u91cd\u65b0\u521b\u5efa\u3002\n\t\n\t6.\u63d0\u4ea4\u4ee3\u7801\u5230\u672c\u5730\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# rm -rf .git\/  # \u79fb\u9664\u4e4b\u524d\u7684\u73af\u5883\n\n\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# git init \n\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# git add .\n\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# git commit -m 'add manifests'\n\n\n\n\t6.\u63d0\u4ea4\u4ee3\u7801\u5230gitee\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# git remote add origin https:\/\/gitee.com\/yinzhengjie\/oldboyedu-yiliao-linux100.git\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# \n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# git remote  -v\norigin\thttps:\/\/gitee.com\/yinzhengjie\/oldboyedu-yiliao-linux100.git (fetch)\norigin\thttps:\/\/gitee.com\/yinzhengjie\/oldboyedu-yiliao-linux100.git (push)\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# \n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# git push origin master \nUsername for 'https:\/\/gitee.com': yinzhengjie\nPassword for 'https:\/\/yinzhengjie@gitee.com': \nEnumerating objects: 5, done.\nCounting objects: 100% (5\/5), done.\nDelta compression using up to 2 threads\nCompressing objects: 100% (2\/2), done.\nWriting objects: 100% (3\/3), 585 bytes | 585.00 KiB\/s, done.\nTotal 3 (delta 0), reused 0 (delta 0), pack-reused 0\nremote: Powered by GITEE.COM &#91;1.1.23]\nremote: Set trace flag c24569ba\nTo https:\/\/gitee.com\/yinzhengjie\/oldboyedu-yiliao-linux100.git\n   37e2714..ec359fe  master -> master\n&#91;root@harbor250.oldboyedu.com oldboyedu-yiliao-linux100]# \n\n\n\t7.gitee\u67e5\u770b\u8fdc\u7a0b\u4ed3\u5e93<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1\uff09\u7f16\u5199\u8d44\u6e90\u6e05\u5355\u5e76\u63d0\u4ea4\u5230gitee 2\uff09jenkins\u90e8\u7f72\u533b\u7597\u9879\u76ee\u5230K8S\u96c6\u7fa4 3\uff09\u53c2\u6570\u5316\u6784\u5efa\u4e4b\u9009\u9879\u53c2\u6570\u5b9e\u6218  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":126,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-132","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=132"}],"version-history":[{"count":1,"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":133,"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=\/wp\/v2\/posts\/132\/revisions\/133"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=\/wp\/v2\/media\/126"}],"wp:attachment":[{"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}