{"id":1892,"date":"2023-03-31T06:26:57","date_gmt":"2023-03-30T22:26:57","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1892"},"modified":"2023-04-22T08:59:04","modified_gmt":"2023-04-22T00:59:04","slug":"kubernetes-deploy-application","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/31\/kubernetes-deploy-application\/","title":{"rendered":"Kubernetes\u90e8\u7f72\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f"},"content":{"rendered":"<h2>Kubernetes\u529f\u80fd<\/h2>\n<p>\u5b98\u65b9\u5b9a\u4e49k8s\u80fd\u591f\u5bf9\u5bb9\u5668\u5316\u8f6f\u4ef6\u8fdb\u884c\u90e8\u7f72\u7ba1\u7406\uff0c\u5728\u4e0d\u505c\u673a\u7684\u524d\u63d0\u4e0b\u63d0\u4f9b\u7b80\u5355\u5feb\u901f\u7684\u53d1\u5e03\u548c\u66f4\u65b0\u65b9\u5f0f\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u5982\u679c\u9879\u76ee\u9700\u8981\u591a\u673a\u5668\u8282\u70b9\u7684\u5fae\u670d\u52a1\u67b6\u6784\uff0c\u5e76\u4e14\u91c7\u7528Docker image\uff08\u955c\u50cf\uff09\u8fdb\u884c\u5bb9\u5668\u5316\u90e8\u7f72\uff0c\u90a3\u4e48k8s\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5c4f\u853d\u6389\u96c6\u7fa4\u7684\u590d\u6742\u6027\uff0c\u81ea\u52a8\u9009\u62e9\u6700\u4f18\u8d44\u6e90\u5206\u914d\u65b9\u5f0f\u8fdb\u884c\u90e8\u7f72\u3002\u5728\u6b64\u57fa\u7840\u4e0a\uff0ck8s\u8fd8\u63d0\u4f9b\u7b80\u5355\u7684\u591a\u5b9e\u4f8b\u90e8\u7f72\u53ca\u66f4\u65b0\u65b9\u6848\uff0c\u4ec5\u9700\u51e0\u4e2a\u64cd\u4f5c\u547d\u4ee4\u5c31\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0<\/p>\n<p><!-- more --><\/p>\n<h2>K8s\u96c6\u7fa4\u7b80\u5355\u4ecb\u7ecd<\/h2>\n<p>\u4e0b\u56fe\u63cf\u8ff0\u7684\u662f\u62e5\u6709\u4e00\u4e2aMaster(\u4e3b)\u8282\u70b9\u548c\u516d\u4e2aWorker(\u5de5\u4f5c)\u8282\u70b9\u7684k8s\u96c6\u7fa4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/module_01.f6dc9f93.svg\" alt=\"k8s\u96c6\u7fa4\" \/><\/p>\n<p>Master \u8d1f\u8d23\u7ba1\u7406\u96c6\u7fa4 \u8d1f\u8d23\u534f\u8c03\u96c6\u7fa4\u4e2d\u7684\u6240\u6709\u6d3b\u52a8\uff0c\u4f8b\u5982\u8c03\u5ea6\u5e94\u7528\u7a0b\u5e8f\uff0c\u7ef4\u62a4\u5e94\u7528\u7a0b\u5e8f\u7684\u72b6\u6001\uff0c\u6269\u5c55\u548c\u66f4\u65b0\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>Worker\u8282\u70b9(\u5373\u56fe\u4e2d\u7684Node)\u662fVM(\u865a\u62df\u673a)\u6216\u7269\u7406\u8ba1\u7b97\u673a\uff0c\u5145\u5f53k8s\u96c6\u7fa4\u4e2d\u7684\u5de5\u4f5c\u8ba1\u7b97\u673a\u3002\u6bcf\u4e2aWorker\u8282\u70b9\u90fd\u6709\u4e00\u4e2aKubelet\uff0c\u5b83\u7ba1\u7406\u8be5Worker\u8282\u70b9\u5e76\u8d1f\u8d23\u4e0eMaster\u8282\u70b9\u901a\u4fe1\u3002\u8be5Worker\u8282\u70b9\u8fd8\u5e94\u5177\u6709\u7528\u4e8e\u5904\u7406\u5bb9\u5668\u64cd\u4f5c\u7684\u5de5\u5177\uff0c\u4f8b\u5982Docker\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/module_01_cluster.8f54b2c5.svg\" alt=\"k8s\u96c6\u7fa4\u89d2\u8272\" \/><\/p>\n<h2>\u90e8\u7f72\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f<\/h2>\n<p>\u672c\u6587\u7ffb\u8bd1\u81ea Kubernetes \u5b98\u7f51 <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/kubernetes.io\/docs\/tutorials\/kubernetes-basics\/deploy-app\/deploy-intro\/\" title=\"Using kubectl to Create a Deployment\">Using kubectl to Create a Deployment<\/a>\uff0c\u5e76\u6709\u6240\u6539\u5199<\/p>\n<h3>\u524d\u63d0<\/h3>\n<p>\u5b8c\u6210 Kubernetes \u96c6\u7fa4\u7684\u5b89\u88c5\uff0c\u8bf7\u53c2\u8003\u6587\u6863 <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.kuboard.cn\/install\/install-k8s.html\" title=\"\u5b89\u88c5 Kubernetes \u5355Master\u8282\u70b9\">\u5b89\u88c5 Kubernetes \u5355Master\u8282\u70b9<\/a><br \/>\n\u5b8c\u6210 Kuboard \u7684\u5b89\u88c5\uff0c\u8bf7\u53c2\u8003\u6587\u6863 <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.kuboard.cn\/install\/install-dashboard.html\" title=\"\u5b89\u88c5 Kuboard\">\u5b89\u88c5 Kuboard<\/a><\/p>\n<h3>\u76ee\u6807<\/h3>\n<p>\u4f7f\u7528 kubectl \u5728 k8s \u4e0a\u90e8\u7f72\u7b2c\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<ul>\n<li>kubectl \u662f k8s \u7684\u5ba2\u6237\u7aef\u5de5\u5177\uff0c\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u7ba1\u7406\u96c6\u7fa4\u3002<\/li>\n<li>\u5982\u679c\u53c2\u8003\u6587\u6863 \u5b89\u88c5 Kubernetes \u5355Master\u8282\u70b9\uff0c\u60a8\u53ef\u4ee5\u5728 master \u8282\u70b9\u7684 root \u7528\u6237\u4f7f\u7528 kubectl \u64cd\u4f5c\u60a8\u7684\u96c6\u7fa4<\/li>\n<li>\u4e5f\u53ef\u4ee5\u5c1d\u8bd5 \u4ece\u5ba2\u6237\u7aef\u7535\u8111\u8fdc\u7a0b\u7ba1\u7406 Kubernetes<\/li>\n<\/ul>\n<h3>Kubernetes \u90e8\u7f72<\/h3>\n<p>\u5728 k8s \u4e0a\u8fdb\u884c\u90e8\u7f72\u524d\uff0c\u9996\u5148\u9700\u8981\u4e86\u89e3\u4e00\u4e2a\u57fa\u672c\u6982\u5ff5<code>Deployment<\/code><\/p>\n<p><code>Deployment<\/code>\u8bd1\u540d\u4e3a<code>\u90e8\u7f72<\/code>\u3002\u5728k8s\u4e2d\uff0c\u901a\u8fc7\u53d1\u5e03 Deployment\uff0c\u53ef\u4ee5\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f (docker image) \u7684\u5b9e\u4f8b (docker container)\uff0c\u8fd9\u4e2a\u5b9e\u4f8b\u4f1a\u88ab\u5305\u542b\u5728\u79f0\u4e3a<code>Pod<\/code>\u7684\u6982\u5ff5\u4e2d\uff0c<code>Pod<\/code>\u662f k8s \u4e2d\u6700\u5c0f\u53ef\u7ba1\u7406\u5355\u5143\u3002<\/p>\n<p>\u5728 k8s \u96c6\u7fa4\u4e2d\u53d1\u5e03 Deployment \u540e\uff0cDeployment \u5c06\u6307\u793a k8s \u5982\u4f55\u521b\u5efa\u548c\u66f4\u65b0\u5e94\u7528\u7a0b\u5e8f\u7684\u5b9e\u4f8b\uff0cmaster \u8282\u70b9\u5c06\u5e94\u7528\u7a0b\u5e8f\u5b9e\u4f8b\u8c03\u5ea6\u5230\u96c6\u7fa4\u4e2d\u7684\u5177\u4f53\u8282\u70b9\u4e0a\u3002<\/p>\n<p>\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f\u5b9e\u4f8b\u540e\uff0cKubernetes Deployment Controller \u4f1a\u6301\u7eed\u76d1\u63a7\u8fd9\u4e9b\u5b9e\u4f8b\u3002\u5982\u679c\u8fd0\u884c\u5b9e\u4f8b\u7684 worker \u8282\u70b9\u5173\u673a\u6216\u88ab\u5220\u9664\uff0c\u5219 Kubernetes Deployment Controller \u5c06\u5728\u7fa4\u96c6\u4e2d\u8d44\u6e90\u6700\u4f18\u7684\u53e6\u4e00\u4e2a worker \u8282\u70b9\u4e0a\u91cd\u65b0\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5b9e\u4f8b\u3002\u8fd9\u63d0\u4f9b\u4e86\u4e00\u79cd\u81ea\u6211\u4fee\u590d\u673a\u5236\u6765\u89e3\u51b3\u673a\u5668\u6545\u969c\u6216\u7ef4\u62a4\u95ee\u9898\u3002<\/p>\n<p>\u5728\u5bb9\u5668\u7f16\u6392\u4e4b\u524d\u7684\u65f6\u4ee3\uff0c\u5404\u79cd\u5b89\u88c5\u811a\u672c\u901a\u5e38\u7528\u4e8e\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f46\u662f\u4e0d\u80fd\u591f\u4f7f\u5e94\u7528\u7a0b\u5e8f\u4ece\u673a\u5668\u6545\u969c\u4e2d\u6062\u590d\u3002\u901a\u8fc7\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f\u5b9e\u4f8b\u5e76\u786e\u4fdd\u5b83\u4eec\u5728\u96c6\u7fa4\u8282\u70b9\u4e2d\u7684\u8fd0\u884c\u5b9e\u4f8b\u4e2a\u6570\uff0cKubernetes Deployment \u63d0\u4f9b\u4e86\u4e00\u79cd\u5b8c\u5168\u4e0d\u540c\u7684\u65b9\u5f0f\u6765\u7ba1\u7406\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<h3>\u5728 Kubernetes \u4e0a\u90e8\u7f72\u7b2c\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f<\/h3>\n<p>\u4e0b\u56fe\u662f\u5728 Kubernetes \u96c6\u7fa4\u7684\u57fa\u7840\u4e0a\uff0c\u6dfb\u52a0\u4e0a\u4e86<code>Deployment<\/code>\u3001<code>Pod<\/code>\u548c<code>Container<\/code>\u3002<\/p>\n<p>Deployment \u5904\u4e8e master \u8282\u70b9\u4e0a\uff0c\u901a\u8fc7\u53d1\u5e03 Deployment\uff0cmaster \u8282\u70b9\u4f1a\u9009\u62e9\u5408\u9002\u7684 worker \u8282\u70b9\u521b\u5efa Container\uff08\u5373\u56fe\u4e2d\u7684\u6b63\u65b9\u4f53\uff09\uff0cContainer \u4f1a\u88ab\u5305\u542b\u5728 Pod \uff08\u5373\u84dd\u8272\u5706\u5708\uff09\u91cc\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/module_02_first_app.25e902c4.svg\" alt=\"k8s\u96c6\u7fa4\u89d2\u8272\" \/><\/p>\n<h3>\u5b9e\u6218\uff1a\u90e8\u7f72 nginx Deployment<\/h3>\n<p>\u672c\u5957\u6559\u7a0b\u63d0\u4f9b\u4e86\u4e24\u79cd\u5b9e\u6218\u65b9\u5f0f\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528 kubectl<\/li>\n<li>\u4f7f\u7528 Kuboard<\/li>\n<\/ul>\n<h4>\u4f7f\u7528 kubectl<\/h4>\n<p><strong>\u521b\u5efa YAML \u6587\u4ef6<\/strong><\/p>\n<p>\u521b\u5efa\u6587\u4ef6<code>nginx-deployment.yaml<\/code>\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-yml\">apiVersion: apps\/v1    #\u4e0ek8s\u96c6\u7fa4\u7248\u672c\u6709\u5173\uff0c\u4f7f\u7528 kubectl api-versions \u5373\u53ef\u67e5\u770b\u5f53\u524d\u96c6\u7fa4\u652f\u6301\u7684\u7248\u672c\nkind: Deployment    #\u8be5\u914d\u7f6e\u7684\u7c7b\u578b\uff0c\u6211\u4eec\u4f7f\u7528\u7684\u662f Deployment\nmetadata:            #\u8bd1\u540d\u4e3a\u5143\u6570\u636e\uff0c\u5373 Deployment \u7684\u4e00\u4e9b\u57fa\u672c\u5c5e\u6027\u548c\u4fe1\u606f\n  name: nginx-deployment    #Deployment \u7684\u540d\u79f0\n  labels:        #\u6807\u7b7e\uff0c\u53ef\u4ee5\u7075\u6d3b\u5b9a\u4f4d\u4e00\u4e2a\u6216\u591a\u4e2a\u8d44\u6e90\uff0c\u5176\u4e2dkey\u548cvalue\u5747\u53ef\u81ea\u5b9a\u4e49\uff0c\u53ef\u4ee5\u5b9a\u4e49\u591a\u7ec4\uff0c\u76ee\u524d\u4e0d\u9700\u8981\u7406\u89e3\n    app: nginx    #\u4e3a\u8be5Deployment\u8bbe\u7f6ekey\u4e3aapp\uff0cvalue\u4e3anginx\u7684\u6807\u7b7e\nspec:            #\u8fd9\u662f\u5173\u4e8e\u8be5Deployment\u7684\u63cf\u8ff0\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3a\u4f60\u671f\u5f85\u8be5Deployment\u5728k8s\u4e2d\u5982\u4f55\u4f7f\u7528\n  replicas: 1    #\u4f7f\u7528\u8be5Deployment\u521b\u5efa\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u5b9e\u4f8b\n  selector:        #\u6807\u7b7e\u9009\u62e9\u5668\uff0c\u4e0e\u4e0a\u9762\u7684\u6807\u7b7e\u5171\u540c\u4f5c\u7528\uff0c\u76ee\u524d\u4e0d\u9700\u8981\u7406\u89e3\n    matchLabels: #\u9009\u62e9\u5305\u542b\u6807\u7b7eapp:nginx\u7684\u8d44\u6e90\n      app: nginx\n  template:        #\u8fd9\u662f\u9009\u62e9\u6216\u521b\u5efa\u7684Pod\u7684\u6a21\u677f\n    metadata:    #Pod\u7684\u5143\u6570\u636e\n      labels:    #Pod\u7684\u6807\u7b7e\uff0c\u4e0a\u9762\u7684selector\u5373\u9009\u62e9\u5305\u542b\u6807\u7b7eapp:nginx\u7684Pod\n        app: nginx\n    spec:        #\u671f\u671bPod\u5b9e\u73b0\u7684\u529f\u80fd\uff08\u5373\u5728pod\u4e2d\u90e8\u7f72\uff09\n      containers:    #\u751f\u6210container\uff0c\u4e0edocker\u4e2d\u7684container\u662f\u540c\u4e00\u79cd\n      - name: nginx    #container\u7684\u540d\u79f0\n        image: nginx:1.7.9    #\u4f7f\u7528\u955c\u50cfnginx:1.7.9\u521b\u5efacontainer\uff0c\u8be5container\u9ed8\u8ba480\u7aef\u53e3\u53ef\u8bbf\u95ee<\/code><\/pre>\n<p><strong>\u5e94\u7528 YAML \u6587\u4ef6<\/strong><\/p>\n<pre><code class=\"language-bash\">kubectl apply -f nginx-deployment.yaml<\/code><\/pre>\n<p><strong>\u67e5\u770b\u90e8\u7f72\u7ed3\u679c<\/strong><\/p>\n<pre><code class=\"language-bash\"># \u67e5\u770b Deployment\nkubectl get deployments\n\n# \u67e5\u770b Pod\nkubectl get pods<\/code><\/pre>\n<p>\u53ef\u5206\u522b\u67e5\u770b\u5230\u4e00\u4e2a\u540d\u4e3a<code>nginx-deployment<\/code>\u7684 Deployment \u548c\u4e00\u4e2a\u540d\u4e3a<code>nginx-deployment-xxxxxxx<\/code>\u7684 Pod<\/p>\n<h4>\u4f7f\u7528 Kuboard<\/h4>\n<p>\u6253\u5f00 Kuboard \u96c6\u7fa4\u6982\u89c8\u754c\u9762\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200429234145358.b68f087f.png\" alt=\"Kuboard\u96c6\u7fa4\u6982\u89c8\" \/><\/p>\n<p>\u70b9\u51fb default \u540d\u79f0\u7a7a\u95f4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200429234212468.eb76a7e5.png\" alt=\"Kuboard default\u540d\u79f0\u7a7a\u95f4\" \/><\/p>\n<p>\u70b9\u51fb<strong>\u521b\u5efa\u5de5\u4f5c\u8d1f\u8f7d<\/strong>\uff0c\u5e76\u586b\u5199\u8868\u5355\u5982\u4e0b\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\u5b57\u6bb5\u540d<\/th>\n<th style=\"text-align: left;\">\u586b\u5199\u5185\u5bb9<\/th>\n<th style=\"text-align: left;\">\u5907\u6ce8<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">\u670d\u52a1\u7c7b\u578b<\/td>\n<td style=\"text-align: left;\">Deployment<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u670d\u52a1\u5206\u5c42<\/td>\n<td style=\"text-align: left;\">\u5c55\u73b0\u5c42<\/td>\n<td style=\"text-align: left;\">Kuboard\u4f7f\u7528\u8fd9\u4e2a\u5b57\u6bb5\u786e\u5b9a\u5c06\u90e8\u7f72\u663e\u793a\u5728\u5fae\u670d\u52a1\u67b6\u6784\u7684\u54ea\u4e2a\u5206\u5c42<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u670d\u52a1\u540d\u79f0<\/td>\n<td style=\"text-align: left;\">nginx<\/td>\n<td style=\"text-align: left;\">\u670d\u52a1\u5206\u5c42\u7684\u524d\u7f00 + \u670d\u52a1\u540d \u7ec4\u6210\u6700\u7ec8\u7684 K8S Deployment name<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u670d\u52a1\u63cf\u8ff0<\/td>\n<td style=\"text-align: left;\">Nginx\u90e8\u7f72<\/td>\n<td style=\"text-align: left;\">\u663e\u793a\u5728\u5fae\u670d\u52a1\u5206\u5c42\u67b6\u6784\u56fe\u4e2d\u4fbf\u4e8e\u8bc6\u522b\u7684\u540d\u5b57\uff0c\u53ef\u4ee5\u662f\u4e2d\u6587<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u526f\u672c\u6570\u91cf<\/td>\n<td style=\"text-align: left;\">1<\/td>\n<td style=\"text-align: left;\">replicas<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u5bb9\u5668\u540d\u79f0<\/td>\n<td style=\"text-align: left;\">nginx<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u955c\u50cf<\/td>\n<td style=\"text-align: left;\">nginx:1.7.9<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">\u6293\u53d6\u7b56\u7565<\/td>\n<td style=\"text-align: left;\">Always<\/td>\n<td style=\"text-align: left;\">\u6bcf\u6b21\u521b\u5efa Pod \u90fd\u5c1d\u8bd5\u6293\u53d6\u955c\u50cf<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">Ports<\/td>\n<td style=\"text-align: left;\">TCP : 80<\/td>\n<td style=\"text-align: left;\">\u8be5\u5bb9\u5668\u7ec4\u76d1\u542c TCP 80 \u7aef\u53e3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200429234711586.ddec7499.png\" alt=\"Kuboard \u521b\u5efa\u5de5\u4f5c\u8d1f\u8f7d\" \/><\/p>\n<p>\u70b9\u51fb<strong>\u4fdd\u5b58<\/strong>\u3001<strong>\u5e94\u7528<\/strong>\u3001<strong>\u5b8c\u6210<\/strong> <\/p>\n<p>\u6b64\u65f6\u53ef\u67e5\u770b\u5230\u8be5\u5e94\u7528\u7684\u90e8\u7f72\u7ed3\u679c\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200429235118699.8062e9d1.png\" alt=\"Kuboard \u90e8\u7f72\u4fe1\u606f\" \/><\/p>\n<p>\u70b9\u51fb\u4e0a\u56fe\u4e2d\u7684<strong>\u4ee3\u7406<\/strong>\u6309\u94ae\uff0c\u53ef\u4ee5\u76f4\u63a5\u6d4b\u8bd5\u90e8\u7f72\u7ed3\u679c\u3002\u66f4\u591a\u7ec6\u8282\u8bf7\u53c2\u8003 <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.kuboard.cn\/guide\/proxy\" title=\"Kuboard Proxy\">Kuboard Proxy<\/a>\uff0c \u6b64\u529f\u80fd\u8981\u6c42 Kuboard \u7248\u672c\u4e0d\u4f4e\u4e8e<code>v1.0.9.4<\/code>\u3002<\/p>\n<p>\u901a\u8fc7\u4ee3\u7406\u8bbf\u95ee\u5df2\u90e8\u7f72\u7684 nginx \u670d\u52a1\u65f6\uff0c\u9ed8\u8ba4\u663e\u793a\u7ed3\u679c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kuboard.cn\/assets\/img\/image-20200226122026369.7274e91e.png\" alt=\"Kuboard \u90e8\u7f72\u6d4b\u8bd5\" \/><\/p>\n<p>\u53ef\u5206\u522b\u67e5\u770b\u5230\u4e00\u4e2a\u540d\u4e3a<code>nginx-deployment<\/code>\u7684 Deployment \u548c\u4e00\u4e2a\u540d\u4e3a<code>nginx-deployment-xxxxxxx<\/code>\u7684 Pod<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kubernetes\u529f\u80fd \u5b98\u65b9\u5b9a\u4e49k8s\u80fd\u591f\u5bf9\u5bb9\u5668\u5316\u8f6f\u4ef6\u8fdb\u884c\u90e8\u7f72\u7ba1\u7406\uff0c\u5728\u4e0d\u505c\u673a\u7684\u524d\u63d0\u4e0b\u63d0\u4f9b\u7b80\u5355\u5feb\u901f\u7684\u53d1\u5e03\u548c\u66f4\u65b0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[483],"class_list":["post-1892","post","type-post","status-publish","format-standard","hentry","category-k8s","tag-kuboard"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1892"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1892\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}