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 > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how Kubernetes uses minikube to build a cluster quickly, which has a certain reference value. Interested friends can refer to it. I hope you will learn a lot after reading this article. Let's take a look at it.
Matters needing attention
To build a "slightly more complex" test cluster, you can refer to Installing k8s 1.14 on CentOS 7 notes, but it can only be used for testing.
To build a "production available" cluster environment, you can refer to Stacked control plane notes. For details, please refer to the official documentation.
Environmental information (the environment in which the note is implemented)
Debian GNU/Linux 10 (buster)
First, check whether virtualization is enabled # egrep-Q 'vmx | svm' / proc/cpuinfo & & echo yes | | echo noyes step 2. The installation environment depends on the installation kubectl command.
You can refer to Install and Set Up kubectl notes or official documents.
Install a virtualized environment
There are many options, we use kvm virtualization, the installation method can refer to the Setting Up a KVM VM Host Server notes.
You can also use VirtualBox, host (need to install Docker environment), Podman, etc. It is recommended to refer to the official documentation.
Step 3: install the minikube command
There are two installation methods: using the package manager to install and using binary installation
Method 1. Install / / visit the Github release page using the package manager, download the corresponding version / / https://github.com/kubernetes/minikube/releases// https://github.com/kubernetes/minikube/releases/download/v1.13.0/minikube_latest_amd64.deb// and execute the installation command. We use the Debian distribution. So: dpkg-I minikube_latest_amd64.deb method 2. Use binary installation (generic) curl-Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64\ & & chmod + x minikube mkdir-p / usr/local/bin/mv minikube / usr/local/bin/ step 4, start the minikube cluster and check the status
For network reasons, you may need to configure an agent to allow minikube to complete the download:
Export HTTP_PROXY= "http://"export HTTPS_PROXY=" https://"# Note: the virtual machine NAT segment export NO_PROXY= "localhost,127.0.0.1,10.96.0.0/12192.168.99.0/24192.168.39.0/24" must be added here.
Start the cluster and wait for the download to complete:
Minikube start-driver=kvm2
View the cluster status:
# minikube statusminikubetype: Control Planehost: Runningkubelet: Runningapiserver: Runningkubeconfig: Configured add BASH completion
Completion | minikube
Source
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.