Add a Kubernetes Cloud Account
Be aware that these screen captures may change based on the Kubernetes container changes. They are provided in this section as a point of reference.
Before adding a cloud account to a Kubernetes cloud in CloudCenter Suite, verify the following Kubernetes requirements:
A valid Kubernetes service account.
A cluster-admin cluster role binding exists on the API server (see the Kubernetes Documentation).
A valid Service Account Token. You can retrieve the Service Account Token from Kubernetes using one of two methods:
Kubernetes Dashboard Method:
Access the Kubernetes web UI and scroll the left menu bar down to Config and Storage and click Secrets. The list of secrets for the cluster is shown on the right panel:
Click the link corresponding to the Service Account Token to view the token details screen:
Click the eyeball icon to the left of the token at the end of the Data section to reveal the token. Copy and paste to the Service Account Token field in the CloudCenter Suite's Add Cloud Account dialog box (see Configuration Process below).
The service account token must be in base64 format before pasting into the Add Cloud Accounts page. Retrieving the token form the Kubernetes Web UI assures this to be true.
The kubectl Command Method:
Issue the following commands in sequence – the last command returns the token.
Copy and paste this token to the Service Account Token field in the CloudCenter Suite's Add Cloud Account dialog box (see Configuration Process below).
To add a cloud account a Kubernetes cloud, follow this procedure.
Locate the Kubernetes cloud in the Clouds page click the Add Cloud Account link. This displays the Add Cloud Account dialog box as shown in the figure below.
Assign a new cloud account name.
The name should not contain any space, dash, or special characters.
Add the following Cloud Credentials:
Service Account Name
The email address or username that you used to login to the Kubernetes cluster.
Service Account Token
The token used to access the Kubernetes service account as specified in the Prerequisites section above.
When done, click Connect. CloudCenter Suite will now attempt to validate your account credentials.
- After the credentials are verified, the Connect button changes to an Edit button and two new fields appear Enable Account For and Enable Reporting By Org Structure, as shown in the figure below.
Set the Enable Account For dropdown per the table below.
Value Usage Provisioning Workload Manager can deploy jobs using this account. Reporting Cost Optimizer and Workload Manager will track cloud costs for this account. Typical usage: master cloud accounts which are used for billing aggregation. Provisioning, Reporting Default. Account is used for both provisioning and reporting.
For AWS and Google clouds only: Set the Enable Reporting By Org Structure toggle to On to cause Cost Optimizer to import the cost hierarchy created in the cloud provider portal. This saves the time of manually creating a comparable cost hierarchy within Cost Optimizer. See Cost Groups Configuration for more information on cost hierarchies in Cost Optimizer.
- Click the Save button when done.
The cloud account list contains columns for data you entered into the Add Cloud Account dialog box: Account Name, Description, Enabled For; and two additional columns: Billing Units and Actions. The third column, Billing Units, is dual function. If the cloud account contains only one billing unit, the ID for that billing unit is displayed. If the cloud account contains multiple billing units, such as an AWS master account, the number of billing units in that account is displayed followed by the text "Billing Units".
A billing unit is the most granular level of cloud cost recording in CloudCenter Suite. The definition of billing unit varies by cloud provider as shown in the table below.
|Cloud Provider||Billing Unit|
|vCenter||Cloud Group Prefix - Datacenter Name|
The last column, Actions, contains links to let you edit or deleted the cloud account, or manage instance types for the cloud account.
- No labels