- You have access to a AWS account and are using IPI to install
- You have a generated public ssh key
- You have already downloaded the IPI installation program here needed for the OCP install
- You have already created a pull secret here
- You have already created a service registry account here
- You have created project open-cluster-management
-
Configure aws cli for account
-
We need to run the aws command to configure the aws account we want to use on the command line. If you are not familiar with this please see here
-
Once you have the profile configured for the correct account you want to deploy you can run the following command:
export AWS_PROFILE=YourProfileHere
-
-
Install the Hub and managed OCP clusters
-
Modify the install.yaml files located int acm-test-cluster-hub, acm-test-cluster-managed, and acm-test-cluster-managed-2 with your pull secret and ssh public key
-
Create the hub cluster by running the following command
./openshift-install create cluster --dir=acm-test-cluster-hub --log-level=debug
-
Create the managed clusters by running the following command
./openshift-install create cluster --dir=acm-test-managed --log-level=debug
./openshift-install create cluster --dir=acm-test-managed-2 --log-level=debug
- Once the manage cluster is up add label cluster = test-cluster-managed
-
-
Create secret needed for for registry. You should have pulled the yaml file when you created the service registry account. See assumptions if this is unclear
-
Log into the hub cluster on the command line
-
Run the following command to create the secret from the yaml file
oc create -f yourSecretHere.yaml --namespace=open-cluster-management
-
-
Apply ACM operator group via yaml file
oc apply -f acm-operator.yaml
-
Apply ACM subscription via yaml file
oc apply -f acm-subscription.yaml
-
Create multiClusterHub via yaml file
oc apply -f ../Training\ Material/ACM/multicluster-acm.yaml
-
Add managed cluster to Hub cluster
-
Log into ACM
- You can do this by getting the route in the OCP cluster that is used for the hub
-
Once you are logged in
- Select the top right drop down
- Select Automate infrastructure
- Select Clusters
- Select Add cluster in drop down
- Select Import an existing cluster
-
Generate Command
- Configuration
- Cluster name: acm-test-cluster-managed
- Labels
- Cloud: AWS
- Environment: dev
- additional lables: cluster = test-cluster-managed
- Configuration
-
-
Confirm you see new cluster in Hub