In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.