{"id":159582,"date":"2019-10-20T09:01:53","date_gmt":"2019-10-20T01:01:53","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=159582"},"modified":"2019-09-28T11:03:55","modified_gmt":"2019-09-28T03:03:55","slug":"kubenertes-1-16","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/kubenertes-1-16.html","title":{"rendered":"kubenertes 1.16\u96c6\u7fa4\u90e8\u7f72\u95ee\u9898\u603b\u7ed3"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5b89\u88c5\u4f7f\u7528virtual box\u4e0b\u5b89\u88c5\u7684CentOS7.5\uff0c\u4f7f\u7528Easypack\u4e0b\u7684Ansible\u4e00\u952e\u5b89\u88c5\u811a\u672c\u8fdb\u884ckubernetes1.16\u548cdashbaord\u4e0ecoredns\u7684\u5b89\u88c5\uff0c\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e24\u4e2a\u95ee\u9898\uff0c\u6574\u7406\u5982\u4e0b\u3002
\n<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u7248\u672c\u53d8\u5316\u60c5\u51b5:<\/strong><\/div>\n

\u53ea\u505a\u4e86Kubernetes\u7248\u672c\u7684\u53d8\u66f4
\n\u7ec4\u4ef6 \u66f4\u65b0\u524d\u7248\u672c \u5f53\u524d\u7248\u672c
\nKubernetes 1.15.0 1.16.0
\nDocker 18.09.7 18.09.7
\nETCD 3.3.13 3.3.13
\nFLANNEL 0.10.0 0.11.0 <\/p>\n

\u95ee\u98981\uff1acoredns\u5b89\u88c5\u5931\u8d25<\/strong><\/div>\n

\u539f\u56e0\uff1a
\ncoredns.yml\u4e2d\u7684Deployment\u7684apiVersion\u5199\u6cd5\u4e3aextensions\/v1beta1\uff0cextensions\/v1beta1\u88ab\u5e9f\u5f03\u6240\u4ee5\u5bfc\u81f4\u6267\u884c\u51fa\u9519<\/p>\n

core.yml\u6587\u4ef6\u793a\u4f8b\u5982\u4e0b\u6240\u793a<\/p>\n

\r\n[root@host132 ansible]# cat \/etc\/k8s\/coredns\/coredns.yaml \r\n# __MACHINE_GENERATED_WARNING__\r\n...\u7701\u7565\r\n---\r\napiVersion: extensions\/v1beta1\r\nkind: Deployment\r\nmetadata:\r\n  name: coredns\r\n  namespace: kube-system\r\n  labels:\r\n    k8s-app: kube-dns\r\n    kubernetes.io\/cluster-service: \"true\"\r\n    addonmanager.kubernetes.io\/mode: Reconcile\r\n    kubernetes.io\/name: \"CoreDNS\"\r\n...\u7701\u7565\r\n[root@host132 ansible]#\r\n<\/pre>\n

\u5bf9\u5e94\u65b9\u6cd5\uff1a
\n\u4fee\u6539\u6210apps\/v1\u5373\u53ef<\/p>\n

\r\n[root@host132 templates]# git diff coredns.yaml \r\ndiff --git a\/k8s\/ansible\/coredns\/templates\/coredns.yaml b\/k8s\/ansible\/coredns\/templates\/coredns.yaml\r\nindex 96abe75..69af15a 100644\r\n--- a\/k8s\/ansible\/coredns\/templates\/coredns.yaml\r\n+++ b\/k8s\/ansible\/coredns\/templates\/coredns.yaml\r\n@@ -77,7 +77,7 @@ data:\r\n        loadbalance\r\n    }\r\n ---\r\n-apiVersion: extensions\/v1beta1\r\n+apiVersion: apps\/v1\r\n kind: Deployment\r\n metadata:\r\n  name: coredns\r\n[root@host132 templates]#\r\n<\/pre>\n
\u95ee\u98982: kubectl get cs\u663e\u793a\u4e3aunknown<\/strong><\/div>\n

\u9519\u8bef\u63d0\u793a\u4fe1\u606f\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n

[root@host132 ansible]# kubectl get cs\r\nNAME                AGE\r\nscheduler            \r\ncontroller-manager  <\/unknown>\r\netcd-0              <\/unknown>\r\n[root@host132 ansible]#\r\n<\/unknown><\/pre>\n

\u4f3c\u4e4e\u6ca1\u6709\u592a\u5927\u5f71\u54cd\uff0c\u6682\u672a\u5bf9\u5e94\uff0c\u540e\u7eed\u539f\u56e0\u786e\u8ba4\u4e4b\u540e\u4f1a\u7ee7\u7eed\u66f4\u65b0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u53ea\u505a\u4e86Kubernetes\u7248\u672c\u7684\u53d8\u66f4 \u7ec4\u4ef6 \u66f4\u65b0\u524d\u7248\u672c \u5f53\u524d\u7248\u672c Kubernetes 1.15.0 1.16 […]<\/p>\n","protected":false},"author":63,"featured_media":159587,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-159582","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/159582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=159582"}],"version-history":[{"count":7,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/159582\/revisions"}],"predecessor-version":[{"id":160419,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/159582\/revisions\/160419"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/159587"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=159582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=159582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=159582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}