|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * rosa_cluster_admin/rosa-nodes-managing-karpenter.adoc |
| 4 | + |
| 5 | +:_mod-docs-content-type: PROCEDURE |
| 6 | +[id="rosa-nodes-autonode-managing-enable-ui_{context}"] |
| 7 | += Enable {autonode} using {cluster-manager} |
| 8 | + |
| 9 | +[role="_abstract"] |
| 10 | +Enable {autonode} on your cluster by using {cluster-manager} after it finishes installing. |
| 11 | + |
| 12 | +.Prerequisites |
| 13 | +* You have created a {product-title} cluster, version 4.22.0 or later. |
| 14 | +* You have created an AWS Identity and Access Management (IAM) role to be configured for {autonode}. |
| 15 | +* You have your cluster's Open ID Connect (OIDC) Endpoint URL. |
| 16 | ++ |
| 17 | +[NOTE] |
| 18 | +==== |
| 19 | +Run `rosa describe cluster -c $CLUSTER_NAME | grep "OIDC Endpoint URL"` to see this URL. Do not include the `https://` prefix from the OIDC Endpoint URL. For example, use `example-oidc-endpoint.cloudfront.net/abcd1234examplehash5678` instead of `https://example-oidc-endpoint.cloudfront.net/abcd1234examplehash5678`. |
| 20 | +==== |
| 21 | +* You have the proper credentials to access the AWS console. |
| 22 | +
|
| 23 | +
|
| 24 | +.Procedure |
| 25 | + |
| 26 | +. Export your AWS ID: |
| 27 | ++ |
| 28 | +[source,terminal] |
| 29 | +---- |
| 30 | +$ export AWS_ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text) |
| 31 | +---- |
| 32 | + |
| 33 | +. Log in to the link:https://console.aws.amazon.com/[AWS console]. |
| 34 | +. In the AWS console, navigate to **IAM > Roles**. |
| 35 | +. On your {autonode} Amazon Resource Name (ARN), update the trust policy to include the following policy specifications: |
| 36 | ++ |
| 37 | +[NOTE] |
| 38 | +==== |
| 39 | +To access this ARN, run: |
| 40 | + |
| 41 | +[source,terminal] |
| 42 | +---- |
| 43 | +$ echo $ROLE_ARN |
| 44 | +---- |
| 45 | +==== |
| 46 | ++ |
| 47 | +[source,json] |
| 48 | +---- |
| 49 | +{ |
| 50 | + "Version": "2012-10-17", |
| 51 | + "Statement": [ |
| 52 | + { |
| 53 | + "Effect": "Allow", |
| 54 | + "Principal": { |
| 55 | + "Federated": "arn:aws:iam::<aws_account_id>:oidc-provider/<oidc-endpoint-url>" |
| 56 | + }, |
| 57 | + "Action": "sts:AssumeRoleWithWebIdentity", |
| 58 | + "Condition": { |
| 59 | + "StringEquals": { |
| 60 | + "<oidc-endpoint-url>:sub": "system:serviceaccount:kube-system:karpenter" |
| 61 | + } |
| 62 | + } |
| 63 | + } |
| 64 | + ] |
| 65 | +} |
| 66 | +---- |
| 67 | +where: |
| 68 | +<aws_account_id>:: |
| 69 | +Specifies your AWS Account ID. |
| 70 | +<oidc-endpoint-url>:: |
| 71 | +Specifies the OIDC endpoint URL that you acquired. |
| 72 | +
|
| 73 | +. In {cluster-manager-url}, select your cluster from the cluster list. |
| 74 | +. On the cluster details screen, select the *Edit* button next to the status for {autonode}. |
| 75 | +. On the *Edit Autonode settings* dialog box, toggle *Enable Autonode*. |
| 76 | +. Add your {autonode} IAM role ARN to the field in this dialog box. |
| 77 | +. Select *Save* to save your configurations and close the *Edit Autonode settings* box. |
0 commit comments