- create the placement that references the set of clustersets
- create managedclustersetbinding to allow placement access to the clusterset
- create the gitopscluster resource to bind the argocd cluster to the placement
- enable argocd apps in the klusterletaddonconfig manifests
Last active
August 30, 2021 14:15
-
-
Save cdoan1/3bc3137c3b85f45ad8e5907032e7bb0e to your computer and use it in GitHub Desktop.
argocdCluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: cluster.open-cluster-management.io/v1alpha1 | |
kind: Placement | |
metadata: | |
name: argocd-cluster-placement | |
namespace: open-cluster-management-argocd-gitops | |
spec: | |
clusterSets: | |
- sprint2 | |
--- | |
# create binding to allow placement access to the managed cluster clusterset | |
apiVersion: cluster.open-cluster-management.io/v1alpha1 | |
kind: ManagedClusterSetBinding | |
metadata: | |
name: sprint2 | |
namespace: open-cluster-management-argocd-gitops | |
spec: | |
clusterSet: sprint2 | |
--- | |
# bind the placement to the argocd cluster | |
apiVersion: apps.open-cluster-management.io/v1alpha1 | |
kind: GitOpsCluster | |
metadata: | |
name: gitops-cluster | |
namespace: open-cluster-management-argocd-gitops | |
spec: | |
argoServer: | |
argoNamespace: openshift-gitops | |
cluster: local-cluster | |
placementRef: | |
apiVersion: cluster.open-cluster-management.io/v1alpha1 | |
kind: Placement | |
name: argocd-cluster-placement |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
argocdCluster: true