Skip to content

Commit

Permalink
Add quick install manifest (#15)
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Ng <ming@redhat.com>
  • Loading branch information
mikeshng authored May 24, 2023
1 parent d93d643 commit 8746297
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,14 @@ kubectl -n argocd scale statefulset/argocd-application-controller --replicas 0
**Note** This step is not necssary if the ArgoCD instance you are using contains the feature:
https://argo-cd.readthedocs.io/en/latest/user-guide/skip_reconcile/

4. Clone this project and connect to the Hub cluster and start the Pull controller:
4. Install the Pull controller:
```
git clone ...
cd argocd-pull-integration
export KUBECONFIG=/path/to/<hub-kubeconfig>
make deploy
kubectl apply -f https://raw.githubusercontent.com/open-cluster-management-io/argocd-pull-integration/main/deploy/install.yaml
```

5. If your controller starts successfully, you should see:
```
$ kubectl -n argocd get deploy | grep pull
$ kubectl -n open-cluster-management get deploy | grep pull
argocd-pull-integration-controller-manager 1/1 1 1 106s
```

Expand Down
121 changes: 121 additions & 0 deletions deploy/install.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: argocd-pull-integration
namespace: open-cluster-management
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: argocd-pull-integration
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- argoproj.io
resources:
- applications
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- cluster.open-cluster-management.io
resources:
- managedclusters
verbs:
- get
- list
- watch
- apiGroups:
- work.open-cluster-management.io
resources:
- manifestworks
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: argocd-pull-integration-manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: argocd-pull-integration
subjects:
- kind: ServiceAccount
name: argocd-pull-integration
namespace: open-cluster-management
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: argocd-pull-integration
name: argocd-pull-integration
namespace: open-cluster-management
spec:
replicas: 1
selector:
matchLabels:
app: argocd-pull-integration
template:
metadata:
labels:
app: argocd-pull-integration
spec:
containers:
- name: argocd-pull-integration
args:
- --health-probe-bind-address=:8081
- --metrics-bind-address=127.0.0.1:8080
- --leader-elect
command:
- /manager
image: quay.io/open-cluster-management/argocd-pull-integration:latest
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 10m
memory: 64Mi
serviceAccountName: argocd-pull-integration

0 comments on commit 8746297

Please sign in to comment.