In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install Kubernetes on VMware vSphere to run Docker. It is very detailed and has certain reference value. Friends who are interested must finish reading it.
Install Mater and Client
First, update CentOS to the latest version and restart the machine at the same time.
Then, start installing the master node using the yum command line.
Now, let's install client:
To verify that it has been successfully installed, try the following command line:
Create a new cluster / pod
Kubernetes uses json files to describe POD blueprints in a real "software definition" style.
The Docker author I mentioned earlier has created a good pod sample, as shown in the following figure. It has two containers: one for the web server and the other for DB. Simple, it is best to describe pod.
The above configuration will take several minutes to complete. In the process, you can use the docker ps command to see how the container is doing:
When you see that both containers are ready, you can verify that the web server is running correctly:
For me, the second command line is due to a 500 internal server error. In order to find out why, I logged into the container to look for more information. In fact, with the following command line, it is quite easy to do. Note that the Docker connection command is not enough because there is no arbitrary shell running on the existing container.
Once inside the container, you can see the following file:
Notice that the IP address 172.17.42.1 does not exist in my environment. Simply change it to 127.0.0.1 and save it. Then try URL in the browser and you can run it.
Web site: http://192.168.0.128/cgi-bin/action
Note: it is OK to have different IP addresses of your containers.
The above is all the contents of the article "how to install Kubernetes on VMware vSphere to run Docker". Thank you for reading! Hope to share the content to help you, more related 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.
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.