In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to install the cluster in Kubernetes". In the daily operation, I believe that many people have doubts about how to install the cluster in Kubernetes. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to install the cluster in Kubernetes". Next, please follow the editor to study!
Overview
Kubeadm is a cluster installation tool for kubernetes, which can quickly install a kubernetes cluster. The main purpose of installing kubernetes is to install its various images, and kubeadm has integrated the basic images we need to run kubernetes. However, due to domestic network reasons, these images cannot be pulled when building the environment. At this point, we only need to modify the image service provided for Aliyun to solve this problem.
Create and modify configuration # Export configuration file kubeadm config print init-defaults-- kubeconfig ClusterConfiguration > kubeadm.ymlapiVersion: kubeadm.k8s.io/v1beta2bootstrapTokens:- groups:-system:bootstrappers:kubeadm:default-node-token token: abcdef.0123456789abcdef ttl: 24h0m0s usages:-signing-authenticationkind: InitConfigurationlocalAPIEndpoint: # modify the primary node IP advertiseAddress: 192.168.141.110 bindPort: 6443nodeRegistration: criSocket: / var/run/dockershim.sock name: kubernetes-master taints:-effect: NoSchedule Key: node-role.kubernetes.io/master---apiServer: timeoutForControlPlane: 4m0sapiVersion: kubeadm.k8s.io/v1beta2certificatesDir: / etc/kubernetes/pkiclusterName: kubernetescontrollerManager: {} dns: type: CoreDNSetcd: local: dataDir: / var/lib/etcd# cannot access Google in China Change it to Aliyun imageRepository: registry.aliyuncs.com/google_containerskind: ClusterConfiguration# modified version number kubernetesVersion: v1.15.0networking: dnsDomain: cluster.local # configure the network segment of POD to be the network segment of our virtual machine that does not overlap (the default network segment of Flannel is used here) podSubnet: "10.244.0.0amp16" serviceSubnet: 10.96.0.0/12scheduler: {} to view the desired image kubeadm config images list-- config kubeadm. Yml# outputs the following registry.aliyuncs.com/google_containers/kube-apiserver:v1.15.0registry.aliyuncs.com/google_containers/kube-controller-manager:v1.15.0registry.aliyuncs.com/google_containers/kube-scheduler:v1.15.0registry.aliyuncs.com/google_containers/kube-proxy:v1.15.0registry.aliyuncs.com/google_containers/pause:3.1registry.aliyuncs.com/google_containers/etcd:3.3.10registry.aliyuncs.com/google_containers/coredns:1.3.1 to this The study on "how to install the cluster in Kubernetes" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.