Managing Public Cloud
Managing Public Clouds Description
The OneCloud platform supports nano-management of public cloud platforms such as Alibaba Cloud, AWS, Azure, Huawei Cloud, Tencent Cloud, UCloud, Google Cloud, eCloud, etc. You can dock to public cloud platforms through your cloud account, call APIs on public cloud platforms to synchronize and manage resources on public cloud platforms, and create servers of public cloud platforms on the OneCloud platform, etc.
Management process
- The prerequisites for the public cloud platform hosting: Ensure that the status of the public cloud account is normal and the balance is sufficient.
- Create public cloud account and synchronize public cloud-related resources, such as VPCs, IP subnets, NAT gateways, routing tables, servers, snapshots, disks, and other resources.
- Ensure that VPCs and IP subnets exist in the OneCloud platform for the relevant region, and create new public cloud Servers in the corresponding region; if they do not exist, you can create VPCs and IP subnets on the OneCloud platform or the public cloud platform.
Sync rules
- Synchronize public cloud platform to OneCloud platform: Synchronize resources on public cloud platform on OneCloud platform using full synchronization or set auto-sync function. All subsequent operations done by users on the public cloud platform need to be synchronized to the OneCloud platform using the sync feature.
- Synchronize OneCloud platform to the public cloud platform: The servers created by users in the OneCloud platform and the security groups, images and other resources that use the OneCloud platform when creating servers are synchronized to the public cloud platform.
How to get public cloud account information
When administrators manage the public cloud platform, they need to prepare the following information.
platform | information | access method |
---|---|---|
Alibaba Cloud | Accesskey and Billing Storage Bucket Information | Get Method How to get the key information of Alibaba Cloud in the official website |
AWS | Access Key Information and Billing Storage Bucket Information | Get Method |
Azure | Tenant and client information | Get Method |
Huawei Cloud | AccessKey information and Expense OSS Bucket information | Get Method How to get the key information of Huawei Cloud in the official website |
Tencent Cloud | APP ID and key information | Get Method How to get the key information of Tencent Cloud in the official website |
UCloud | Key Information | Get Method How to get the key information of UCloud in the official website |
Google Cloud | Key Information and Billing Storage Bucket Information | Get Method How to get the key information of Google Cloud in the official website |
eCloud | Key Information | Currently, you cannot directly use the key information applied on the eCloud official website interface, you need to contact eCloud technical support to get the Access Key Id and Secret Access Key information, and you need to configure the ip whitelist on eCloud. If users are not sure how to get them, they can directly contact the operation and maintenance staff to request help. |
mCloud | Key Information | Get Method How to get the key information of mCloud in the official website |
JD Cloud | Key Information | Get Method How to get the key information of JD Cloud in the official website |
Create Cloud Accounts
Take the new Alibaba Cloud account as an example, other platforms create in a similar way. Only Alibaba Cloud, AWS, Huawei cloud, Google cloud platform need to configure billing file access information, other platforms do not need to set.
-
In the cloud management platform, click the top left corner of navigation menu, and click “Multicloud/Account/Account” menu item in the left menu bar that pops up to enter the cloud account page.
-
Click the “Create” button at the top of the list to enter the Create Accounts page.
-
Select “Alibaba Cloud” platform, click “Next: Configure Cloud Account” button .
-
Set the following parameters in the Configure cloud account page.
- Name: Name of the Alibaba Cloud account.
- Key ID/Password: Docking to Alibaba Cloud platform through Access Key authentication method, Access Key consists of key ID (Access Key ID) and password (Access Key Secret). Please see [Public Accounts Information Acquisition Method](# Public Accounts Information Acquisition Method) for the parameter acquisition method
- Domain: Select the domain to which the cloud account belongs. When the cloud account is private, all project users under the domain can use the cloud account to create resources.
- Resource attribution project: Select the local project that synchronizes the resources on the cloud account to the OneCloud platform. If you want to categorize the resources on the cloud account according to the projects on the cloud, please specify the default resource attribution project first and check the box to create the project automatically. After checking the box, a local project with the same name as the project on the cloud will be created in the OneCloud platform and the resources will be synchronized to the corresponding project. Resources without project attribution on the cloud will be synchronized to the default resource attribution project.
- Proxy: Set this item when the cloud account needs proxy to access normally, leave it blank for direct connection.
- Auto-sync: Set whether to auto-sync the information on Alibaba Cloud platform and set the auto-sync time interval.
-
Click “Connection Test” button to test whether the input parameters are correct.
-
Click the “OK” button to create a new cloud account and go to the Billing File Access Information (optional) page.
-
If you need to view the billing information of Alibaba Cloud account in OneCloud platform, please configure the following parameters in the billing file access information.
-
Cloud account type: Including main account and associated account, please make sure the main account has been imported into OneCloud platform before using the associated account, and select this main account when using the associated account.
-
Storage bucket URL: the URL of the oss bucket where the billing file is located, please see [How to get public cloud account information](#How to get public cloud account information) for the way to get it.
-
File prefix: When there are other files stored in the Expense OSS Bucket besides the billing file, you need to configure the file prefix to get only the billing file in the bucket, etc. Alibaba Cloud’s billing file prefix is account ID, you can check the account ID in Account Management - Security Settings.
-
Collect bills immediately: OneCloud The platform automatically collects bills at 4am every day by default. When this item is enabled, the current month’s bills will be collected immediately after the bill file access information is configured.
-
Time range: When collect bills immediately is enabled, it supports setting the time range to immediately collect bills within the time range, please make sure there is bill data within the selected time range. It is recommended to collect bills within 1~6 months, otherwise there will be too much data, which will cause much stress on the system and affect the daily task of collecting bills.
-
-
Click the “Connection Test” button to test if the parameters entered are correct.
-
When the settings are complete, click the “OK” button to finish the operation.
-
If you do not need to set the billing information, just click the “Skip” button.
View Billing
When a billing file is configured when a new cloud account is created and the menu is captured immediately, the user can view the billing consumption information of the corresponding platform in the Cost module.
Set up sharing
After the public cloud account is created, it is not shared by default. When the system opens the three-level permission, the administrator can share the cloud account resources to other projects or users in other domains by setting the sharing function.
The cloud account sharing status is as follows.
- Not shared (private): That is, the resources on the cloud account are only available in the domain to which the cloud account belongs.
- Shared Cloud Subscription-Partial: When a cloud subscription is shared and a partial domain is specified, the administrator can change the items in the subscription page and can only choose to subscribe to items under the shared domain. After the setting is complete, the cloud account resources are only available to users in the domain where the item is located.
- Shared cloud subscription-All: After the shared cloud subscription selects all domains, the administrator can change the items in the subscription page and can select items under any domain. After the setting is completed, the cloud account resources are only used by users in the domain where the project is located.
- Shared cloud account-part: That is, the cloud account can be shared to a specified domain (one or more), and only the users under the domain where the cloud account is located and the shared domain can use the cloud account.
- Shared Accounts-All: That is, the cloud account can be shared to all domains, that is, all users in the system can use the cloud account.
-
On the cloud account page, click the “More” button in the action bar to the right of the specified cloud account, and select the drop-down menu “Set up sharing” menu item to bring up the Set up sharing dialog box.
-
Please set the sharing type according to your requirements, e.g. if you choose “Shared Cloud Subscriptions” as the sharing type, and select “Share all domains”, click “OK” button.
-
After the settings are finished, click the cloud account name item to enter the cloud account details page, and click the “Subscriptions” tab to bring up the Change Project dialog box.
-
Users can select any project under any domain, and after the settings are completed, only the changed project and the users in the domain where the project is located can use the cloud account resources.
Create Public Cloud Platform Server
This section takes cloudadmin administrator to create a public cloud platform server in the system backend as an example.
Description
- When the status of the public cloud account is normal, the balance is sufficient, and the VPC and IP subnet of the corresponding region exist, the user can create a public cloud platform server.
- When creating a server, the public cloud platform to which the server belongs needs to be determined by the platform and region information.
-
In the cloud management platform, click on the top left corner of navigation menu, and click “Compute/Compute/Servers” menu item in the pop-up left menu bar to enter the Server page.
-
Click the “Public Cloud” tab at the top, click the New button at the top of the list to enter the Create Public Cloud Server page. Or click the “Create” button at the top of the list, and then click the “Public Cloud” tab at the top to enter the Create Public Cloud server page.
-
Set the following parameters.
-
Specify project: The administrator user supports specifying the project where the server is located. When the project user creates a server, the default is the project where the user is currently located. If the cloud account is private, only projects and users of the domain to which the private cloud platform resources belong can create private cloud platform servers.
-
Name: The name of the server.
-
Billing type: Including postpaid, prepaid subscriptions.
- This model is suitable for scenarios where the demand for equipment will increase dramatically in an instant, and the price is more expensive than prepaid packages.
- This model is suitable for scenarios where the demand for devices is relatively stable, and the price is cheaper than postpaid.
-
Quantity: supports creating multiple servers at once, indicated by adding - numbers after the name.
-
CPU, Memory, platform, packages: Set the CPU cores and memory size of the server, and select the region, and the package list will show the optional package information of different platforms. Users can select the corresponding platform, region, available area, etc. and choose the package according to the package list information, or they can choose the package directly in the package list.
-
OS: According to the actual situation, you can select the required image from the public cloud image list, public cloud custom image, public image list, and custom image list, respectively. When selecting public and custom images on OneCloud platform, you need to cache the images to the public cloud platform, which may take longer time to create, so it is recommended to cache the images to the corresponding available area of the public cloud platform in advance.
Description
The user can cache the image to the corresponding zone in the public cloud in the cache list on the system image details page.
-
System disk: Select the disk type supported by the private cloud platform and set the size.
-
Data disk: Select the disk type supported by the private cloud platform and set the size.
-
Administrator password: You can keep the default and generate a random password.
-
Network: You can keep the default or specify the IP subnet.
-
Elastic public IP: If the server has the need to access the external network, you can create a new EIP to realize the binding of the EIP and the server.
-
Security group: You can keep the default or specify the security group. If there is no available security group, the administrator or user needs to create a security group and set the corresponding rules in the “Compute/Networks/Security Group” page.
-
Scheduler Policy: It is recommended to keep the default, users in the project do not need to configure this item .
-
-
Click the “Create” button to create a public cloud platform server.