mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-02-14 10:00:11 +00:00
docs: Update argocd-agent solution to use clusteradm (#1348)
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Failing after 22s
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Failing after 22s
Signed-off-by: Mike Ng <ming@redhat.com>
This commit is contained in:
@@ -70,7 +70,7 @@ enabling efficient templating for deployment modifications.
|
|||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- [Helm CLI](https://helm.sh/).
|
- [clusteradm CLI](https://open-cluster-management.io/docs/getting-started/quick-start/#install-clusteradm-cli-tool).
|
||||||
|
|
||||||
- Setup an OCM environment with at least two clusters (one hub and at least one managed).
|
- Setup an OCM environment with at least two clusters (one hub and at least one managed).
|
||||||
Refer to the [Quick Start guide](https://open-cluster-management.io/docs/getting-started/quick-start/) for more details.
|
Refer to the [Quick Start guide](https://open-cluster-management.io/docs/getting-started/quick-start/) for more details.
|
||||||
@@ -81,16 +81,13 @@ Refer to the [Additional Resources](#additional-resources) for more details.
|
|||||||
|
|
||||||
## Setup Guide
|
## Setup Guide
|
||||||
|
|
||||||
### Deploy OCM Argo CD AddOn Managers on the Hub Cluster
|
### Deploy OCM Argo CD Agent AddOn on the Hub Cluster
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# After OCM and load balancer setup:
|
# After OCM and load balancer setup:
|
||||||
#
|
#
|
||||||
# kubectl config use-context <hub-cluster>
|
# kubectl config use-context <hub-cluster>
|
||||||
helm repo add ocm https://open-cluster-management.io/helm-charts
|
clusteradm install hub-addon --names argocd-agent --create-namespace
|
||||||
helm repo update
|
|
||||||
helm search repo ocm
|
|
||||||
helm install argocd-agent-addon ocm/argocd-agent-addon --namespace argocd --create-namespace
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Validate that the Argo CD Agent AddOn is successfully deployed and available:
|
Validate that the Argo CD Agent AddOn is successfully deployed and available:
|
||||||
@@ -170,9 +167,14 @@ spec:
|
|||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
||||||
then create the application on the **hub cluster**:
|
then create the target namespace on the managed cluster and the application on the **hub cluster**:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
# Create the target namespace on the managed cluster
|
||||||
|
# kubectl config use-context <managed-cluster>
|
||||||
|
kubectl create namespace guestbook
|
||||||
|
|
||||||
|
# Create the application on the hub cluster
|
||||||
# kubectl config use-context <hub-cluster>
|
# kubectl config use-context <hub-cluster>
|
||||||
kubectl apply -f - <<EOF
|
kubectl apply -f - <<EOF
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
@@ -190,8 +192,6 @@ spec:
|
|||||||
server: https://172.18.255.200:443?agentName=cluster1 # Replace with https://<principal-external-ip:port>?agentName=<managed-cluster-name>
|
server: https://172.18.255.200:443?agentName=cluster1 # Replace with https://<principal-external-ip:port>?agentName=<managed-cluster-name>
|
||||||
namespace: guestbook
|
namespace: guestbook
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
automated:
|
automated:
|
||||||
prune: true
|
prune: true
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user