rosa create account-roles
Kiểm tra role đã tạo
Tạo OpenShift cluster
Khởi tạo một cluster với các config mặc định của ROSA
Bạn có thể khởi tạo một OpenShift cluster với các config mặc định bằng cách chạy lệnh sau
rosa create cluster --cluster-name rosa-lab --sts --mode auto --yes
Tuy nhiên, để dive deep hơn, chúng ta hãy cùng khởi tạo cluster và tuỳ biến các config.
rosa create cluster --sts
Cluster name: rosa-lab
OpenShift version: Trong bài lab này, chúng ta sẽ dùng phiên bản 4.10.16
Installer role ARN: Chọn ARN tương ứng với role đã tạo ở bước trước
External ID (optional): Trường này sẽ được sử dụng khi chúng ta muốn assume role từ một tài khoản khác. Trong bài lab này, chúng ta sẽ để trống nó
Operator roles prefix: để mặc định
Multiple availability zones (optional): Chọn yes nếu bạn muốn các EC2 instance trong cluster được trải trên nhiều AZ khác nhau. Trong bài lab này, chúng ta sẽ chọn Yes
AWS region: ap-southeast-1
PrivateLink cluster (optional): No
Install into an existing VPC (optional): No
Enable Customer Managed key (optional): No
Compute nodes instance type (optional): c5.xlarge (rẻ nhất)
Enable autoscaling (optional): No
Compute nodes: 3
Machine CIDR: 10.0.0.0/16 (default)
Service CIDR: 172.30.0.0/16 (default)
Pod CIDR: 10.128.0.0/14 (default)
Host prefix: 26
Encrypt etcd data (optional): No
Disable Workload monitoring (optional): No
Chạy 2 lệnh để tạo role cho operator và Open ID Connect identity provider, để các tuỳ chọn mặc định
rosa create operator-roles --cluster rosa-lab --region ap-southeast-1
rosa create oidc-provider --cluster rosa-lab --region ap-southeast-1
rosa list clusters
rosa describe cluster -c rosa-lab
rosa logs install -c rosa-lab --watch