|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * networking/rosa-shared-vpc-config.adoc |
| 4 | +:_content-type: PROCEDURE |
| 5 | +[id="rosa-sharing-vpc-dns-and-roles_{context}"] |
| 6 | += Creating your DNS and cluster creation roles |
| 7 | + |
| 8 | +After the *VPC-owning AWS account* user creates a virtual private cloud, subnets, and an IAM role for sharing the VPC resources, the *cluster-creating AWS account* user must reserve an `openshiftapps.com` DNS domain and create Operator roles to communicate back to the *VPC-owning AWS account*. |
| 9 | + |
| 10 | +.Prerequisites |
| 11 | + |
| 12 | +* You have the ARN for the IAM role that is used to share your VPC. |
| 13 | +
|
| 14 | +.Procedure |
| 15 | + |
| 16 | +. The cluster creator reserves an `openshiftapps.com` DNS domain with the following command: |
| 17 | ++ |
| 18 | +[source,terminal] |
| 19 | +---- |
| 20 | +$ rosa create dns-domain |
| 21 | +---- |
| 22 | ++ |
| 23 | +The command creates a reserved `openshiftapps.com` DNS domain. |
| 24 | ++ |
| 25 | +[source,terminal] |
| 26 | +---- |
| 27 | +I: DNS domain '14eo.p1.openshiftapps.com' has been created. |
| 28 | +I: To view all DNS domains, run 'rosa list dns-domains' |
| 29 | +---- |
| 30 | +. After creating the DNS domain, the *cluster-creating AWS account* user needs to create an OIDC configuration. Review this article for more information link:https://access.redhat.com/articles/7031018[on the ODIC configuration process]. The following command produces the OIDC config ID that you need: |
| 31 | ++ |
| 32 | +[source,terminal] |
| 33 | +---- |
| 34 | +$ rosa create oidc-config |
| 35 | +---- |
| 36 | ++ |
| 37 | +You receive confirmation that the command created an OIDC configuration. |
| 38 | ++ |
| 39 | +[source,terminal] |
| 40 | +---- |
| 41 | +I: To create Operator Roles for this OIDC Configuration, run the following command and remember to replace <user-defined> with a prefix of your choice: |
| 42 | + rosa create operator-roles --prefix <user-defined> --oidc-config-id 25tu67hq45rto1am3slpf5lq6jargg |
| 43 | +---- |
| 44 | +. After the OIDC configuration is created, create the Operator roles by entering the following command: |
| 45 | ++ |
| 46 | +[source,terminal] |
| 47 | +---- |
| 48 | +$ rosa create operator-roles --oidc-config-id <oidc-config-ID> <1> |
| 49 | + --installer-role-arn <Installer_Role> <2> |
| 50 | + --shared-vpc-role-arn <Created_VPC_Role_Arn> <3> |
| 51 | + --prefix <operator-prefix> <4> |
| 52 | +---- |
| 53 | ++ |
| 54 | +-- |
| 55 | +<1> Provide the OIDC configuration ID that you created in the previous step. |
| 56 | +<2> Provide the cluster creator's installer ARN that was created as part of the `rosa create account-roles` process. |
| 57 | +<3> Provide the ARN for the role that the *VPC-owning AWS account* created. |
| 58 | +<4> Provide a prefix for the Operator roles. |
| 59 | +-- |
| 60 | ++ |
| 61 | +[NOTE] |
| 62 | +==== |
| 63 | +The Installer account role and the shared VPC role must have a one-to-one relationship. If you want to create multiple shared VPC roles, you should create one set of account roles per shared VPC role. |
| 64 | +==== |
| 65 | + |
| 66 | +After you create the Operator roles, share the full domain name, which is created with `<intended_cluster_name>.<created_dns_domain>`, your _Ingress Operator Cloud Credentials_ and _Installer_ roles' ARN with the *VPC-owning AWS account* user. |
| 67 | + |
| 68 | +This information resembles these examples: |
| 69 | + |
| 70 | +* ``my-rosa-cluster.14eo.p1.openshiftapps.com`` |
| 71 | +* ``arn:aws:iam::111122223333:role/ManagedOpenShift-Installer-Role`` |
| 72 | +* ``arn:aws:iam::111122223333:role/my-rosa-cluster-openshift-ingress-operator-cloud-credentials`` |
0 commit comments