当前位置:网站首页>[cloud native topic -48]:kubesphere cloud Governance - operation - overview of multi tenant concept
[cloud native topic -48]:kubesphere cloud Governance - operation - overview of multi tenant concept
2022-07-04 00:20:00 【Silicon based workshop of slow fire rock sugar】
Author URI ( Silicon based workshop of slow fire rock sugar ): Slow fire rock sugar ( Wang Wenbing ) The blog of _ Silicon based workshop of slow fire rock sugar _CSDN Blog
Website of this article :https://blog.csdn.net/HiWangWenBing/article/details/122911019
Catalog
The first 1 Chapter Overview of multi tenant management
1.1 Kubesphere Location in cloud primordial
1.2 Official overview of multi tenant system : Enterprise space 、 project 、 User and platform corner color
1.3 Multiuser system VS multi-tenancy
1.4 multi-tenancy VS single-tenant
1.5 Multi tenant professional presentation
The first 2 Chapter kubesphere Multi tenant system
2.1 Hierarchy of multi tenant system
The first 3 Chapter Main operation steps
The first 1 Chapter Overview of multi tenant management
1.1 Kubesphere Location in cloud primordial
1.2 Official overview of multi tenant system : Enterprise space 、 project 、 User and platform roles
https://kubesphere.com.cn/docs/quick-start/create-workspace-and-project/
remarks :
The multi tenant function is kubesphere The basic function of , Not component functions , therefore , There is no need to install any components for multi portfolio management .
The multi tenant function is kubesphere stay K8S On the basis of , The first value-added function .
1.3 Multiuser system VS multi-tenancy
Modern software generally belongs to multi-user applications , in other words , The same machine and the same set of software can establish their own accounts for multiple users , Users with these accounts are also allowed to log on to this computer at the same time . This involves the management of computer users and resources . Simply put, multiple users can establish multiple users on one application system .Linxu The operating system is a multi-user time-sharing system , Each user has his own right Linux The operating system has independent access rights .
Multi tenancy and multi-user are different concepts , Rent has the concept of temporary , By the right of use , No ownership . The ownership of shared cloud resources belongs to cloud manufacturers , Users using cloud vendor services , All tenants , therefore kubesphere In the management system , Created administrator account , In fact, it can't be counted as a user account , It's the tenant account .
“ Tenant ” be relative to “ user “, Higher resource utilization .
1.4 multi-tenancy VS single-tenant
Single tenant system , That is, a single tenant rents all resources , If there are multiple tenants , You need to create an independent instance copy for each tenant , Including memory space 、 Hard disk space, etc , Multi tenancy is different , There is no need to create separate instances for each tenant , Multiple different users share the same underlying resources , Ensure the isolation of resources between different tenants through isolation technology .
Individual taxi is a single tenant system , Different tenants need to take different taxi instances , And a group of people making buses or multi person carpooling is a multi tenant system .
Taobao or JD systems , It is a multi tenant system , Different sellers use the same cloud platform , Every seller is a tenant , The respective resources are isolated , And don't pay money when it's due , The account is released , For other tenants .
many “ Tenant ” be relative to “ single-tenant “, The utilization rate of resources is further improved , Multi tenancy is a necessary function of cloud native applications . This is an important measure to further dynamically improve the utilization of hardware resources and virtual resources , Also on cloud commerce 、 Public cloud based application system means to reduce costs , It is an important foundation for the existence of public cloud . Otherwise , Compared with private cloud or non cloud systems , Public cloud has no cost advantage .
1.5 Multi tenant professional presentation
SaaS The concept of tenant is generally involved in the field .
Multi-tenant technology ( English :multi-tenancy technology) Or multi-tenancy technology , yes A kind of Software architecture technology , It is to explore and implement how to share the same system or program components in a multi-user environment , And it can still ensure the data isolation among users .
Multi tenancy simply means that a single instance can be Multiple Users or organizations service .
Multi tenancy technology uses a shared data center , Ensure a single system architecture and services , Provide the same or even customized services for most clients , And still can guarantee Customer data isolation . This is related to Linux In the system , Multi user time sharing Linux The operating system is similar .
A system that supports multi tenant Technology , We need to design it Data and configuration Virtual partition , So that each tenant or organization of the system can use one Separate system instances , also Every tenant You can customize the rented system instance according to your own needs Personalized configuration .
Multi tenant technology can share system instances among multiple tenants , At the same time, it can realize the personalized customization of the tenant's system instance . By using multi tenant technology, the common parts of the system can be shared , The parts of personality are isolated . By reusing resources among multiple tenants , Operation management and maintenance resources , Effectively save the cost of development and application . and , Sharing a single instance of the application between tenants , When the application is upgraded , All tenants can upgrade at the same time . meanwhile , Because multiple tenants share the core code of the system , So when the system upgrades , Just upgrade the same core code .
at present , Major cloud platforms , All are supported tenant systems .
The first 2 Chapter kubesphere Multi tenant system
2.1 Hierarchy of multi tenant system
KubeSphere The multi tenant system is divided into Three Hierarchy , Cluster 、 Corporate space and projects .
among ,KubeSphere The lowest level item in is equivalent to Kubernetes Of Namespace , Cluster 、 Enterprise space is built on K8S Further abstraction on the namespace of .
KubeSphere You can set up multiple clusters for , Corresponding to a group company , Multiple enterprise spaces can be established under a cluster , Corresponding to a company , An enterprise space can build multiple projects , Corresponding to the actual product line of the company , An instance of each level is a workspace, Other resources are isolated from other instances of the same level . As shown in the figure below :
remarks : The multi tenant architecture is consistent with the architecture of centralized enterprises .
2.2 Roles and users
Every level , Set a variety of roles , Such as admin,operator,viewer, Each role has different resource access permissions and management permissions , In other words, permission management is role-based .
Every character , You can create multiple user instances , Users with the same role have the same permissions , Users are ultimately assigned to KubeSphere Manager's account .
role | jurisdiction | |
colony | platform admin ( Platform Administrator ) platform user mananger ( User administrator ) platform regular ( Ordinary users of the platform ) workspace mananger | Management cluster platform Inside all resources Management cluster In platform all user Before being invited , There are no permissions , Only view Create and manage all enterprise spaces |
Enterprise space | workspace admin ( Enterprise space manager ) workspace self provider ( Enterprise space self-management ) worksapce regular workspace viewer | Manage all resources in the specified enterprise space Create and manage projects and DevOps project , And invite new members to join the project . Daily managers of enterprises Daily observer of the enterprise , Check the information |
project | project-admin ( Project manager ) project-operator ( Project operator ) project-viewer ( Project observers ) | Create and manage development projects and DevOps project Create a project workload in the specified project 、 Pipelines and other resources . You can only view the status information of the project |
2.3 Authorize or invite
(1) Invite or authorize other accounts to manage specific permissions .
(2)kubesphere All accounts of are created at the cluster level , The role or responsibility of the account is assigned in the enterprise space and the project space .
(3) Create a cluster first , Then create an enterprise space , Then create the project .
The first 3 Chapter Main operation steps
step1:admin Change the initial password
With admin The identity uses the default account and password (admin/[email protected]) Sign in Web Console
srep2: Create cluster users
- from admin establish platform user mananger
- from platform user mananger establish workspace mananger, Including the Group boss-big
- from platform user mananger establish platform regular, Including project management personnel pm-xxx、 Developer dev-xxx、 Experts big-xxx、 Administrators of various enterprise spaces boss-xxx Wait for users , This time the user has not been authorized , Knowledge creates an account , In the future, we will invite other characters , Called the manager of specific permissions . All subsequent roles for the cluster need to be created here . This role is equivalent to that of the company HR, Manage all departments of the company , Account numbers of all personnel in each project .
step3: Creating enterprise space
- from workspace mananger Creating enterprise space
step4: assign / Invite enterprise users
- from workspace mananger The invitation step2 The user created is workspace self provider
- from workspace mananger The invitation step2 The user created is worksapce regular etc. .
step5: Create project ( It is a project deployed on the cloud platform , Can pass Kubesphere Deploy )
- from workspace self provider(PM) Create project
step6: assign / Invite project members
- from workspace self provider Invite project members
step7: Deploy the application on the project
- from project-operator You can deploy the application , This role usually includes developers 、 Testers, etc ......
- As for how to deploy microservice applications , Please refer to the following article .
Author URI ( Silicon based workshop of slow fire rock sugar ): Slow fire rock sugar ( Wang Wenbing ) The blog of _ Silicon based workshop of slow fire rock sugar _CSDN Blog
Website of this article :https://blog.csdn.net/HiWangWenBing/article/details/122911019
边栏推荐
- NLP Chinese corpus project: large scale Chinese natural language processing corpus
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- D24:divisor and multiple (divisor and multiple, translation + solution)
- Is the account opening of Guoyuan securities really safe and reliable
- ISBN number
- Global and Chinese market of glossometer 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese markets for blood and liquid heating devices 2022-2028: Research Report on technology, participants, trends, market size and share
- What is the difference between NFT, SFT and dnft? How to build NFT platform applications?
- (Introduction to database system | Wang Shan) Chapter V database integrity: Exercises
- SPI based on firmware library
猜你喜欢
2022 chemical automation control instrument examination content and chemical automation control instrument simulation examination
Tencent interview: can you pour water?
STM32 GPIO CSDN creative punch in
Double efficiency. Six easy-to-use pychar plug-ins are recommended
Vscode regular match replace console log(.*)
Kubedl hostnetwork: accelerating the efficiency of distributed training communication
I wrote a chat software with timeout connect function
Enter MySQL in docker container by command under Linux
Correlation analysis summary
MySQL winter vacation self-study 2022 12 (1)
随机推荐
Is the account opening of Guoyuan securities really safe and reliable
The frost peel off the purple dragon scale, and the xiariba people will talk about database SQL optimization and the principle of indexing (primary / secondary / clustered / non clustered)
The interviewer's biggest lie to deceive you, bypassing three years of less struggle
[leetcode] interview question 17.08 Circus tower
Analysis: misunderstanding of choosing WMS warehouse management system
Iclr2022: how does AI recognize "things I haven't seen"?
Global and Chinese market of process beer equipment 2022-2028: Research Report on technology, participants, trends, market size and share
Is the securities account opened by Caicai for individuals safe? Is there a routine
2022 chemical automation control instrument examination content and chemical automation control instrument simulation examination
NLP Chinese corpus project: large scale Chinese natural language processing corpus
D23:multiple of 3 or 5 (multiple of 3 or 5, translation + solution)
What is the potential of pocket network, which is favored by well-known investors?
Comment obtenir une commission préférentielle pour l'ouverture d'un compte en bourse? Est - ce que l'ouverture d'un compte en ligne est sécurisée?
Smart fan system based on stm32f407
国元证券开户是真的安全可靠吗
IO flow principle and classification
I would like to ask how the top ten securities firms open accounts? Is it safe to open an account online?
A method to solve Bert long text matching
P3371 [template] single source shortest path (weakened version)
Deep learning ----- using NN, CNN, RNN neural network to realize MNIST data set processing