Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Kubernetes multi-cluster management platform wayne

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how to use Kubernetes multi-cluster management platform wayne". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use the Kubernetes multi-cluster management platform wayne.

Wayne is a Kubernetes multi-cluster management platform developed by Qihoo360, which uses Docker compose to deploy containers. The system data is managed by MySQL and runs outside Kubernetes clusters. It can be used to manage multiple Kubernetes clusters, and the management function of a single cluster can basically replace the official Dashboard.

1. Quick installation

Installation includes creating configuration parameters and deploying MySQL and Wayne container instances. The steps are as follows:

Clone code repository

$go get github.com/Qihoo360/wayne

Start MySQL (optional)

If you do not already have a MySQL service available, you can quickly create it through docker-compose:

$docker-compose up-d mysql

Create a profile

$cd src/backend/conf & & touch dev.conf

Write database-related configuration (please modify to the actual address of the database)

DBName = wayne# MySQL connection configuration, default is mysql (MySQL service name). # if you use docker-compose to start MySQL and you do not change the service name of mysql, then leave the default configuration. # you can also get the mysql container IP by executing "docker network inspect wayne_default" (if you don't use the default network for docker-compose#, you need to replace "wayne_default" with the actual network name), and then replace # "mysql" with its container IP. When you use a custom runtime environment, using the container IP is more flexible. For example: # "DBTns = tcp (172.17.0.2 DBTns 3306)" DBTns = tcp (mysql:3306) DBUser = rootDBPasswd = root2, start the Wayne service

Go to the Wayne root directory and execute:

$docker-compose up-d wayne3, using

With the above command, you can access the local Wayne from http://127.0.0.1:8080/admin, which is the default administrator account admin:admin.

The management interface that opens is as follows:

4. Configuration

Clusters have not been added to the initial administrative interface. The next step is to add your own cluster, you can add more than one.

Select "Cluster list" in the interface, and then click "Associate Cluster".

Fill in the management name of the cluster.

Enter the apiserver address of the cluster on the Master line, which can be obtained through the kubectl cluster-info command.

The parameter of kubeconfig is the management parameter of the cluster. The contents of the file are generally located at:

~ / user/.kube/config

Or:

/ etc/kubernetes/admin.conf

Open the file and paste the contents into the config edit box.

Select the running status to be online.

Confirm and save the configuration.

If you modify it, select the ellipsis icon on the far left of the list and the edit menu to reopen the dialog box for editing.

In the "Kubernetes" tab, select node to see a list of nodes in the cluster, and you can select "visible columns" to set the columns you want to display.

The basic operation is almost exactly the same as Kubernetes Dashboard.

At this point, I believe you have a deeper understanding of "how to use Kubernetes multi-cluster management platform wayne". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report