{"id":54055,"date":"2020-04-08T04:21:14","date_gmt":"2020-04-07T20:21:14","guid":{"rendered":"http:\/\/4563.org\/?p=54055"},"modified":"2020-04-08T04:21:14","modified_gmt":"2020-04-07T20:21:14","slug":"okteto%e5%ae%9d%e5%a1%94%e6%8a%98%e8%85%be%e6%95%99%e7%a8%8b%e6%9d%a5%e5%95%a6%ef%bc%81%ef%bc%81","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=54055","title":{"rendered":"okteto\u5b9d\u5854\u6298\u817e\u6559\u7a0b\u6765\u5566\uff01\uff01"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>xiaolee<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 16:46:42\t<\/p>\n<h3>okteto\u5b9d\u5854\u6298\u817e\u6559\u7a0b\u6765\u5566\uff01\uff01<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 xiaolee \u4e8e 2020-4-1 17:25 \u7f16\u8f91 <\/p>\n<p> \u4e00\u4e9b\u8bf4\u660e\uff1a\u7531\u4e8e\u73b0\u5728\u6ca1\u6cd5\u76f4\u63a5\u5bb9\u5668\u90e8\u7f72\uff0c\u6240\u4ee5\u7b2c\u4e00\u6b65\u8981\u9ebb\u70e6\u4e00\u70b9\uff0c\u9700\u8981\u4e0b\u8f7dokteto \u53ca kubectl<br \/>  okteto\u4e0b\u8f7d\u5730\u5740\uff1ahttps:\/\/downloads.okteto.com\/cli\/okteto.exe<br \/>  kubectl\u4e0b\u8f7d\u5730\u5740\uff1ahttps:\/\/storage.googleapis.com\/kubernetes-release\/release\/v1.18.0\/bin\/windows\/amd64\/kubectl.exe<br \/>  \u5176\u4ed6\u5e73\u53f0\u8bf7\u67e5\u770bhttps:\/\/okteto.com\/docs\/getting-started\/index.html&nbsp; &nbsp;<br \/>  https:\/\/kubernetes.io\/docs\/tasks\/tools\/install-kubectl\/<br \/>  \u4e00\u3001\u5b9d\u5854\u5b89\u88c5\uff1a<br \/>  1\u3001cli\u767b\u5f55<br \/>  okteto login<br \/>  okteto namespace<\/p>\n<p>  2\u3001\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6.yml\u5982bt.yml<br \/>  apiVersion: apps\/v1<br \/>  kind: Deployment<br \/>  metadata:<br \/>  name: bt-app<br \/>  spec:<br \/>  replicas: 1<br \/>  selector:<br \/>  &nbsp; &nbsp; matchLabels:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;app: bt-app<br \/>  template:<br \/>  &nbsp; &nbsp; metadata:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;labels:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;app: bt-app<br \/>  &nbsp; &nbsp; spec:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;containers:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&#8211; image: pch18\/baota:clear<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;name: bt-app<\/p>\n<p>  &#8212;<\/p>\n<p>  apiVersion: v1<br \/>  kind: Service<br \/>  metadata:<br \/>  name: bt-app<br \/>  annotations:<br \/>  &nbsp; &nbsp; dev.okteto.com\/auto-ingress: &quot;true&quot;<br \/>  spec:<br \/>  type: ClusterIP<br \/>  ports:<br \/>  &#8211; name: &quot;http-port-tcp&quot;<br \/>  &nbsp; &nbsp; port: 8888<br \/>  selector:<br \/>  &nbsp; &nbsp; app: bt-app<\/p>\n<p>  3\u3001\u63d0\u4ea4<br \/>  kubectl apply -f bt.yml<\/p>\n<p>  \u7b49\u5f85\u5b8c\u6210\u5373\u53ef, \u767b\u5f55\u5730\u5740\uff1a\u81ea\u52a8\u751f\u6210&nbsp; &nbsp;\u7528\u6237\u540d\uff1ausername&nbsp; &nbsp;\u5bc6\u7801password<\/p>\n<p>  \u4e8c\u3001\u5efa\u7ad9\u53cd\u4ee3<br \/>  1\u3001\u65b0\u589eRepositories&nbsp; &nbsp; https:\/\/charts.bitnami.com<br \/>  2\u3001\u65b0\u5efaApplications\u9009\u62e9nginx\u4fee\u6539\u90e8\u5206\u914d\u7f6e&nbsp; &nbsp;<br \/>  https:\/\/cdn.jsdelivr.net\/gh\/BugF\/IMG\/2020\/04\/01\/5e8453aa47c67.png<\/p>\n<p>  \u53cd\u4ee3\u7684\u4e3a\u521a\u624d\u5b9d\u5854\u670d\u52a1\u7684\u5185\u7f51\u5730\u5740\uff0c\u6211\u5df2\u5728\u5b9d\u5854\u4e2d\u5b89\u88c5\u4e86nginx<\/p>\n<p>  https:\/\/bt-app-nobibee.cloud.okteto.net\/<\/p>\n<p>  https:\/\/nginx-nobibee.cloud.okteto.net\/<\/p>\n<p>  \u6709\u70b9\u9ebb\u70e6\u4e14\u65e0\u804a\uff0c\u4e3b\u8981\u662f\u6298\u817e\u3002&#8212;&#8212;\u4e00\u4f4d\u5408\u683c\u7684MJJ\uff0c\u80fd\u514d\u8d39\u7684\u4e1c\u897f\uff0c\u575a\u51b3\u4e0d\u51fa\u94b1\u3002<\/p>\n<p>  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>  \u66f4\u65b0\uff1aokteto\u6302\u6389\u4e86<\/p>\n<p>  \u5b89\u88c5\u5176\u4ed6\u955c\u50cf\u7684\u8bf4\u660e\uff1a\u5c06bt.yml\u6587\u4ef6\u7684name\u968f\u610f\u66f4\u6362\uff0cimage: pch18\/baota:clear \u66f4\u6362\u4e3a\u5176\u4ed6\u5bb9\u5668\uff0cport: 8888<br \/>  \u7aef\u53e3\u6539\u4e3a\u5bb9\u5668\u5185\u66b4\u9732\u7aef\u53e3\uff0c\u91cd\u65b0\u63a8\u9001\u5c31\u662f<br \/>  kubectl apply -f ****.yml<\/p>\n<p>  \t\t\t\t\t<strong>qqq409640976<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd8\u8bb0\u5f97\u6211\u6628\u5929\u8bf4,\u4f60\u7684\u65b9\u6cd5\u633a\u4e0d\u4e86\u4e00\u5929\u5427(9\u697c):lol<br \/>  \u901f\u901f\u6765\u56f4\u89c2\u6b63\u5b97\u6f14\u793a\u7ad9\u70b9;P<br \/>  https:\/\/www.hostloc.com\/thread-666705-1-1.html\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>woniu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 16:47:48\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5389\u5bb3\u4e86 \u8001\u94c1 \u503c\u597d\u51e0\u5757\u7684\u5e16\u5b50\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4e00\u4e2a\u4e0d\u77e5\u540d\u7f51\u53cb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 16:47:50\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u591a\u8c22\u5206\u4eab\uff0c\u6536\u85cf\u4e86\u55f7\u54c8\u54c8\u54c8\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xiao<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 16:48:50\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u524d\u6392\u9876\u5e16\uff0c\u725b\u903c:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>mlc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 16:49:17\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fdb\u6536\u85cf\u5939\u5403\u7070\u5427yc011t\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>idmi<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 16:50:13\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5927\u4f6c\u80fd\u51fa\u4e2aV2\u7684\u9177\u4e48\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hiing<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 16:52:13\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>b66667777<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 16:52:55\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\u5206\u4eab\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>qqq409640976<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 16:53:35\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0d\u9519,\u5df2\u7ecf\u5165\u95e8\u4e86,\u8fd9\u6837\u7684\u5b9d\u5854,\u4e00\u5929\u6253\u56de\u539f\u578b:L\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>savior<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 17:00:17\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u524d\u6392\u6c42\u5927\u4f6c\u5f04\u4e2aBitwarden\u6559\u7a0byc016t\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>xiaolee \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/54055"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=54055"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/54055\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=54055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=54055"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=54055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}