In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
A few months ago, we started trying to use Rancher to build our first microservice on our website Piel.io, during which time Rancher released version 1.0. So I think this is a good point in time, and I'm going to share with you through three blog articles how we used Rancher to build microservice delivery for Piel.io.
This article hopes to help those users who are new to Rancher, and those tech experts who are already familiar with Rancher can skip it. In the first article, I will show you how to build your own Rancher Server. In the second article, I'll show you how to build, configure, and integrate your own Docker Registry. In the third article, we will discuss how to provide an available platform for enterprises through Stack to describe, deploy, and manage a variety of business applications.
First, prepare a virtual machine. I bought a Ubuntu 14.04LTS from vutlr.com.
Prerequisite: install Docker
After the installation is complete, verify with the docker-v command:
If you succeed, you can continue.
Next, download the latest Rancher, so we don't have to specify Tag. All available Tag can be obtained from this: https://hub.docker.com/r/rancher/server/tags/
Success!
In a container environment, you can configure data retention through volume. Let's first create a directory:
Run the Rancher p_w_picpath you just downloaded
Note: docker run can download Rancher p_w_picpath directly. In order to let you understand the whole process, I have disassembled these two steps here.
It seems to have been successful. Let's check it out:
Yes, but the name is a little ugly (caused by the automatic naming of Docker), so I killed the container, rerun the command and added the-- name rancher-server parameter.
Next, visit the Rancher Server home page:
Great, now that Rancher Server is started, it can be accessed through port 8080 and data retention is configured, and all configurations can be saved when we upgrade or migrate Rancher Server.
Next I set the theme from light to dark, and you can skip this step.
At the same time, we can also switch the display language through the settings in the lower right corner of the page, which can be switched with one click. (Chinese support has been provided)
Now anyone can access Rancher through this URL, so I enabled Github authentication (Rancher currently supports four authentication methods: AD, Github, local account, and OpenLDAP).
System management > access control
The access control configuration is completed according to the page, so I won't repeat it here.
Enter the client ID and the client key, and the Github authentication page will pop up and ask for confirmation and authorization.
After the configuration is completed, we have successfully set up the access control for Rancher Server.
Let's restart and review what we've done:
We downloaded the container image of Rancher Server 1.2.0-pre3 and made it run on port 8080, enabling data retention to facilitate future upgrades and operations. At the same time, access control for authentication through github is enabled.
In the next article, I'll create a Docker Registry and show you how to use it in Rancher.
Original source: Rancher Labs
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.