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 the rancher kubernetes how to build a standardized vmware image, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
prerequisite
Due to the need to use Google's services, it is required that your network environment can surf the Internet scientifically. I will not talk about the specific plan here.
Actual combat environment
The actual combat computer is win10 Home Edition, running three ubuntu16.04 virtual machines through vmware, one as rancher server, creating a kubernetes environment on it, and the other two joining the kubernetes environment as nodes
What is a standardized vmware image?
This actual combat will use three ubuntu virtual machines, if it is obviously time-consuming to install ubuntu, so we will only install the ubuntu system once, make some general settings on this system, install general applications, and then use the files of this virtual machine as a standardized image, copy three copies, and we can start the three virtual machines.
Install the operating system
Download the installation file ubuntu-16.04.3-server-amd64.iso for Ubuntu Server 16.04.3 LTS on ubuntu's official website
Install a virtual machine on vmware with the downloaded ubuntu-16.04.3-server-amd64.iso file. I used VMware ®Workstation 12 Player, version number 12.5.6 build-5528349, virtual machine hard disk set to 60G, memory 2G
Connect remotely to a virtual machine
After installing the system, use the SecureCRT tool to remotely connect to the virtual machine, as shown below:
After logging in, use the su-command to switch to the root account
Set to allow remote root account login
Open the / etc/ssh/sshd_config file and find the following line:
PermitRootLogin prohibit-password
Change it to something like this:
PermitRootLogin yes
Then execute the command service ssh restart to restart the ssh service, and then you can log in to the virtual machine directly through the root account on SecureCRT.
Update sourc
Log in to the virtual machine under the root account, open the / etc/apt/sources.list file, delete all the contents, and then add the following (the source of Aliyun, which is fast at present):
# deb cdrom: [Ubuntu 16.04 LTS _ Xenial Xerus_-Release amd64 (20160420.1)] / xenial main restricteddeb-src http://archive.ubuntu.com/ubuntu xenial main restricted # Added by software-propertiesdeb http://mirrors.aliyun.com/ubuntu/ xenial main restricteddeb-src xenial main restricted multiverse universe # Added by software-propertiesdeb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricteddeb-src http://mirrors.aliyun.com/ubuntu / xenial-updates main restricted multiverse universe # Added by software-propertiesdeb http://mirrors.aliyun.com/ubuntu/ xenial universedeb http://mirrors.aliyun.com/ubuntu/ xenial-updates universedeb http://mirrors.aliyun.com/ubuntu/ xenial multiversedeb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiversedeb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse # Added by software-propertiesdeb Http://archive.canonical.com/ubuntu xenial partnerdeb-src http://archive.canonical.com/ubuntu xenial partnerdeb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricteddeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe # Added by software-propertiesdeb http://mirrors.aliyun.com/ubuntu/ xenial-security universedeb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
When the update is complete, execute the apt-get update command to update with the latest source
Install docker
Install dependent applications:
Apt-get install-y\ apt-transport-https\ ca-certificates\ curl\ software-properties-common
Download the package key and add it to the local trusted database:
Curl-fsSL https://download.daocloud.io/docker/linux/ubuntu/gpg | sudo apt-key add-
To add a ppa source:
Add-apt-repository\ "deb [arch=$ (dpkg-- print-architecture)] https://download.daocloud.io/docker/linux/ubuntu\ $(lsb_release-cs)\ stable"
Make an update
Apt-get update
Install docker
Apt-get install-y-Q docker-ce=17.03.2*
Start docker
Service docker start
View docker status
Service docker status
The status information after successful startup is shown below:
Back up the image file
Shut down the virtual machine, find the corresponding folder, and back up the whole folder as a standardized image. Later, when we install the server and node nodes of rancher, just copy these folders and open them.
Thank you for reading this article carefully. I hope the article "how to build a standardized vmware Image in kubernetes in rancher" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.