In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Several official Kubernetes deployment methods
Minikube
Minikube is a tool that can quickly run a single point of Kubernetes locally, try Kubernetes or be used by daily development users. Cannot be used in a production environment.
Official address: https://kubernetes.io/docs/setup/minikube/
Kubeadm
Kubeadm is also a tool that provides kubeadm init and kubeadm join for rapid deployment of Kubernetes clusters.
Official address: https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm/
Binary packet
Download the released binaries from the official version, deploy each component manually, and form a Kubernetes cluster.
Summary:
When deploying Kubernetes clusters in a production environment, only Kubeadm and binary packages are optional. Kubeadm lowers the deployment threshold, but shields a lot of details, so it is difficult to troubleshoot problems encountered. We use binaries to deploy Kubernetes clusters here, and I also recommend that you use this method. Although manual deployment is troublesome, you can learn a lot of working principles, which is more conducive to later maintenance.
Software environment
Software version
Operating system CentOS7.5_x64
Docker 18-ce
Kubernetes 1.12
Server role
Role IP component
K8s-master 10.1.1.206 kube-apiserver,kube-controller-manager,kube-scheduler,etcd
K8s-node1 10.1.1.207 kubelet,kube-proxy,docker,flannel,etcd
K8s-node2 10.1.1.208 kubelet,kube-proxy,docker,flannel,etcd
Architecture diagram
Deploy Etcd clusters
To generate a self-signed certificate using cfssl, download the cfssl tool first:
Cat cfssl.sh
#! / bin/bash
Wget https://pkg.cfssl.org/R1.2/cfssl_linux-amd64
Wget https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64
Wget https://pkg.cfssl.org/R1.2/cfssl-certinfo_linux-amd64
Chmod + x cfssl_linux-amd64 cfssljson_linux-amd64 cfssl-certinfo_linux-amd64
Mv cfssl_linux-amd64 / usr/local/bin/cfssl
Mv cfssljson_linux-amd64 / usr/local/bin/cfssljson
Mv cfssl-certinfo_linux-amd64 / usr/bin/cfssl-certinfo
1.1 generate certificates
Cat etcd-cert.sh
# create the following three files:
#! / bin/bash
Cat > ca-config.json
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.