当前位置:网站首页>[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
边栏推荐
- (Introduction to database system | Wang Shan) Chapter V database integrity: Exercises
- [MySQL] sql99 syntax to realize multi table query
- Generic tips
- After the Lunar New Year and a half
- ESP Arduino playing with peripherals (V) basic concept of interrupt and timer interrupt
- A method to solve Bert long text matching
- Smart fan system based on stm32f407
- China standard gas market prospect investment and development feasibility study report 2022-2028
- [BSP video tutorial] stm32h7 video tutorial phase 5: MDK topic, system introduction to MDK debugging, AC5, AC6 compilers, RTE development environment and the role of various configuration items (2022-
- [PHP basics] cookie basics, application case code and attack and defense
猜你喜欢
[complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!
Idea integrates Microsoft TFs plug-in
2022 system integration project management engineer examination knowledge points: software development model
[MySQL] classification of multi table queries
ESP Arduino playing with peripherals (V) basic concept of interrupt and timer interrupt
Pytorch learning notes 5: model creation
[complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!
How to solve the "safe startup function prevents the operating system from starting" prompt when installing windows10 on parallel desktop?
STM32 key light
(Video + graphics and text) introduction to machine learning series - Chapter 4 naive Bayes
随机推荐
Idea set class header comments
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)
Idea a method for starting multiple instances of a service
Yyds dry goods inventory three JS source code interpretation - getobjectbyproperty method
[PHP basics] session basic knowledge, application case code and attack and defense
STM32 GPIO CSDN creative punch in
Generic tips
1214 print diamond
Cannot build artifact 'test Web: War expanded' because it is included into a circular depend solution
SPI based on firmware library
P1629 postman delivering letter
P3371 [template] single source shortest path (weakened version)
Global and Chinese market of melting furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
JDBC Technology
Analysis: misunderstanding of choosing WMS warehouse management system
[BSP video tutorial] stm32h7 video tutorial phase 5: MDK topic, system introduction to MDK debugging, AC5, AC6 compilers, RTE development environment and the role of various configuration items (2022-
Selenium library 4.5.0 keyword explanation (III)
Gossip about redis source code 80
[PHP basics] cookie basics, application case code and attack and defense