Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quick install manifest for community propagation controller #15

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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