Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the reasons for the failure to install kubenertes 1.16?

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you what are the reasons for the failure of installing kubenertes 1.16, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Installation uses CentOS7.5 installed under virtual box, and Ansible one-click installation script under Easypack is used to install kubernetes1.16, dashbaord and coredns. Two problems are encountered in the process, which are sorted out as follows.

Version changes:

Only the Kubernetes version has been changed the current version Kubernetes 1.15.0 1.16.0 Docker 18.09.7 18.09.7 ETCD 3.3.13 3.3.13 FLANNEL 0.10.0 0.11.0

Problem 1:coredns installation failed

Reason: the apiVersion of Deployment in coredns.yml is discarded as extensions/v1beta1,extensions/v1beta1, which results in an execution error

An example of a core.yml file is as follows

[root@host132 ansible] # cat / etc/k8s/coredns/coredns.yaml# _ _ MACHINE_GENERATED_WARNING__... Omit-apiVersion: extensions/v1beta1kind: Deploymentmetadata: name: coredns namespace: kube-system labels: k8s-app: kube-dns kubernetes.io/cluster-service: "true" addonmanager.kubernetes.io/mode: Reconcile kubernetes.io/name: "CoreDNS". Omit [root@host132 ansible] #

Corresponding method: modify it to apps/v1.

[root@host132 templates] # git diff coredns.yamldiff-- git a/k8s/ansible/coredns/templates/coredns.yaml b/k8s/ansible/coredns/templates/coredns.yamlindex 96abe75..69af15a 100644FUFUR-- loadbalance k8s apiVersion: extensions/v1beta1+apiVersion: apps/v1kind: Deploymentmetadata: name: coredns [root@host132 templates] # question 2: kubectl get cs shows as unknown

Examples of error messages are as follows:

[root@host132 ansible] # kubectl get csNAME AGEscheduler controller-manager etcd-0 [root@host132 ansible] #

There does not seem to be much impact, there is no corresponding for the time being, and the subsequent reasons will continue to be updated after confirmation.

The above is all the contents of the article "what are the reasons for the failure of installing kubenertes 1.16". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report