Skip to content

Commit

Permalink
aap
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzheng422 committed Nov 8, 2024
1 parent 4f3c880 commit 6d41540
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions redhat/ocp4/4.16/2024.10.acm.aap.collect.heap.dump.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,28 @@ api url: `https://api.demo-01-rhsys.wzhlab.top:6443`

api token: `sha256~636nYarACWldNeNTx69kGOYPWaQUWcjcMtCHGLNm3Gk`

Now, we go back to acm hub cluster, to create the imported cluster.
Now, we go back to acm hub cluster, to create the imported cluster. Set the name for the cluster, and select import mode, we will use api token.

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-20-20-12-52.png)

Then, we will not use ansible automation to help the import, just ignore at this step.

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-20-20-14-57.png)

Review, and import.

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-20-20-14-36.png)

After the import, we can see the managed cluster in acm hub.

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-20-20-47-23.png)

We can see it is single node openshift.

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-20-20-47-51.png)

And add-ons are installed in the imported cluster.

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-20-20-48-21.png)

# install gitops
Expand All @@ -81,6 +89,8 @@ You can see there is default instance created.

# install aap / ansible platform

Find the app operator.

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-20-21-38-59.png)

try cluster-scoped channel first.
Expand All @@ -89,6 +99,8 @@ Then create an aap instance.

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-21-15-53-23.png)

Following the offical document.

- https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html-single/installing_on_openshift_container_platform/index#operator-link-components_configure-aap-operator

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-21-20-11-57.png)
Expand All @@ -111,19 +123,29 @@ spec:

```

Get the url to access the app platform.

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-21-20-14-02.png)

For app, it needs subscription files from redhat portal.

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-21-20-14-54.png)

Go to redhat portal, and requrest a trail.

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-21-20-17-15.png)

Download the subscription file, and upload to the app platform.

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-21-20-31-48.png)

The app installation will continue.

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-21-20-32-42.png)

<!-- ![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-21-20-33-37.png) -->

set credential for openshift
set credential for openshift, it is different from acm importing cluster.

- https://docs.ansible.com/automation-controller/latest/html/userguide/credentials.html#openshift-or-kubernetes-api-bearer-token

Expand Down Expand Up @@ -161,6 +183,8 @@ Define the credential to connect to openshift cluster:

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-22-22-00-52.png)

Set the url and the token generated.

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-22-22-01-16.png)

Define project, which is the source code reference.
Expand All @@ -171,6 +195,8 @@ And define the job template.

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-22-22-02-27.png)

Set the parameter of the job, like target cluster credential, the project(git repo), the ansible playbook(the path in git repo).

![](imgs/2024.10.acm.aap.collect.heap.dump.md/2024-10-22-22-02-51.png)

# gitops source code
Expand Down

0 comments on commit 6d41540

Please sign in to comment.