When you use Container Service for Kubernetes (ACK) for the first time, you must assign the default roles to ACK with your Alibaba Cloud account. Only after you assign these roles, ACK can use resources in other cloud services to create clusters or save log files. These cloud services include Elastic Compute Service (ECS), Object Storage Service (OSS), Apsara File Storage NAS (NAS), and Server Load Balancer (SLB). This topic describes how to assign the default roles to ACK and activate the associated cloud services when you use ACK for the first time.
Step 1: Activate ACK
ACK is available for commercial use. You must activate ACK before you can create an ACK cluster. Perform the following steps to activate ACK:
- Go to the Container Service for Kubernetes page.
- Read and select Container Service for Kubernetes Terms of Service.
- Click Activate Now.
Step 2: Assign the default roles
When you use ACK for the first time, you must assign the default roles to ACK with your Alibaba Cloud account. Perform the following steps to assign the default roles:
- Log on to the ACK console.
- Click Go to RAM console to navigate to the Cloud Resource Access Authorization page. Then, click Confirm Authorization Policy.
- After you assign the default roles to ACK, log on to the ACK console again to get started with ACK.
Step 3: Activate the associated cloud services
- Required: the services that you must activate. These services must be activated so that ACK clusters can function as normal.
- Recommended: the services that we recommend you to activate. You can choose to use these services when you create ACK clusters and manage applications.
- Optional: the services that you can activate based on the architecture and O&M strategy.
Service | Service link | Category | Description |
---|---|---|---|
Virtual Private Cloud (VPC) | https://www.alibabacloud.com/product/vpc | Required | This service allows you to build networks and create route entries for ACK clusters. |
NAT Gateway | https://www.alibabacloud.com/product/nat | Required | This service enables ACK clusters to communicate with the Internet and pull images over the Internet. |
SLB | https://www.alibabacloud.com/product/server-load-balancer | Required | This service allows you to create SLB instances for ACK clusters. |
Auto Scaling (ESS) | https://www.alibabacloud.com/product/auto-scaling | Required | This service allows ACK to automatically create worker nodes and enables ACK clusters to automatically scale in or out. |
Container Registry | https://www.alibabacloud.com/product/container-registry | Recommended | This service ensures the security of cloud-native applications that are fully managed on the cloud and allows you to manage the lifecycle of these applications. |
Elastic Container Instance | https://www.alibabacloud.com/products/elastic-container-instance | Recommended | After you activate this service, you can deploy serverless Kubernetes (ASK) clusters. |
Alibaba Cloud Service Mesh (ASM) | https://servicemesh.console.aliyun.com/#/instances | Recommended | This service allows you to manage the network traffic of applications that are deployed across multiple ACK clusters by using service meshes. |
Log Service | https://www.alibabacloud.com/product/log-service | Recommended | This service allows you to collect and query log data of ACK components and applications. |
CloudMonitor | https://www.alibabacloud.com/product/cloud-monitor | Recommended | This service allows you to monitor the status of nodes and applications in ACK clusters. |
Prometheus Service (Prometheus) | https://arms.console.aliyun.com/#/home | Recommended | This service allows you to monitor ACK clusters and generate alerts when anomalies are detected. |
Activate Security Center (SAS) | https://www.alibabacloud.com/product/security-center | Optional | This service allows you to monitor the security events of application runtimes in ACK clusters and generate alerts when anomalies are detected. |
Apsara File Storage NAS (NAS) | https://www.alibabacloud.com/product/nas | Optional | This service allows you to store application data in NAS file systems. |
Object Storage Service (OSS) | https://www.alibabacloud.com/product/oss | Optional | This service allows you to store application data in OSS buckets. |
Key Management Service (KMS) | https://www.alibabacloud.com/product/kms | Optional | This service allows you to manage application Secrets and encrypt Secrets for professional Kubernetes clusters. |
Alibaba Cloud DNS PrivateZone | https://www.alibabacloud.com/products/private-zone | Optional | Alibaba Cloud DNS PrivateZone is intended for resolving private domain names in VPCs. You can access applications that are deployed in ASK clusters by using this service to resolve the domain names of the applications. |
ACK default roles
Role | Description |
---|---|
AliyunCSDefaultRole | ACK assumes this role to access your resources in other cloud services when ACK manages clusters. These cloud services include ECS, VPC, SLB, ESS, and Resource Orchestration Service (ROS). |
AliyunCSManagedKubernetesRole | By default, a managed Kubernetes cluster assumes this role to access your resources in other cloud services. These cloud services include ECS, VPC, SLB, and Container Registry. |
AliyunCSServerlessKubernetesRole | By default, an ASK cluster assumes this role to access your resources in other cloud services. These cloud services include ECS, VPC, SLB, and Alibaba Cloud DNS PrivateZone. |
AliyunCSKubernetesAuditRole | The auditing feature of managed Kubernetes clusters and ASK clusters assumes this role to access your resources in Log Service. |
AliyunCSManagedNetworkRole | The network plug-in of managed Kubernetes clusters and ASK clusters assumes this role to access your resources in ECS and VPC. |
AliyunCSManagedCsiRole | The storage plug-in of managed Kubernetes clusters and ASK clusters assumes this role to access your resources in ECS and NAS. |
AliyunCSManagedCmsRole | The monitoring component of managed Kubernetes clusters and ASK clusters assumes this role to access your resources in CloudMonitor and Log Service. |
AliyunCSManagedLogRole | The Log Service component of managed Kubernetes clusters and ASK clusters assumes this role to access your resources in Log Service. |
AliyunCSManagedVKRole | The Virtual Kubelet component of ASK clusters assumes this role to access your resources in other cloud services. These cloud services include ECS, VPC, and Elastic Container Instance. |
AliyunCSManagedArmsRole | The application monitoring component of managed Kubernetes clusters and ASK clusters assumes this role to access your resources in Application Real-Time Monitoring Service (ARMS). |