Skip to content

Commit

Permalink
added argo cd
Browse files Browse the repository at this point in the history
  • Loading branch information
jpaulrajredhat committed Apr 2, 2024
1 parent efab438 commit 74f3505
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 0 deletions.
30 changes: 30 additions & 0 deletions gitops/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#### Commands

```bash
# install ArgoCD in k8s
oc create namespace argocd
oc apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

# access ArgoCD UI
oc get svc -n argocd
oc port-forward svc/argocd-server 8080:443 -n argocd

# login with admin user and below token (as in documentation):
oc -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 --decode && echo

# you can change and delete init password

```
</br>

#### Links

* Config repo: [https://gitlab.com/nanuchi/argocd-app-config](https://gitlab.com/nanuchi/argocd-app-config)

* Docker repo: [https://hub.docker.com/repository/docker/nanajanashia/argocd-app](https://hub.docker.com/repository/docker/nanajanashia/argocd-app)

* Install ArgoCD: [https://argo-cd.readthedocs.io/en/stable/getting_started/#1-install-argo-cd](https://argo-cd.readthedocs.io/en/stable/getting_started/#1-install-argo-cd)

* Login to ArgoCD: [https://argo-cd.readthedocs.io/en/stable/getting_started/#4-login-using-the-cli](https://argo-cd.readthedocs.io/en/stable/getting_started/#4-login-using-the-cli)

* ArgoCD Configuration: [https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/](https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/)
23 changes: 23 additions & 0 deletions gitops/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: datamesh-apps
namespace: datamesh-ci-cd
spec:
destination:
namespace: datamesh-demo
server: 'https://kubernetes.default.svc'
project: datamesh
source:
path: gitops/argocd/datamesh-dev
directory:
include: "*.yaml"
repoURL: https://github.com/opendatahub-io-contrib/datamesh-platform.git
targetRevision: main
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- Validate=true
- CreateNamespace=true
25 changes: 25 additions & 0 deletions gitops/argo-cd/datamesh-dev/applicaiton-airflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: airflow-argo-cd
namespace: datamesh-ci-cd
spec:
destination:
namespace: datamesh-demo
server: 'https://kubernetes.default.svc'
project: default
source:
repoURL: https://github.com/opendatahub-io-contrib/datamesh-platform.git
path: development/airflow/kustomize/overlays/development
targetRevision: main
# plugin:
# name: argocd-vault-plugin-kustomize
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- Validate=true
- ServerSideApply=true
25 changes: 25 additions & 0 deletions gitops/argo-cd/datamesh-dev/applicaiton-service-account-sec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: airflow-argo-cd
namespace: datamesh-ci-cd
spec:
destination:
namespace: datamesh-demo
server: 'https://kubernetes.default.svc'
project: datamesh
source:
repoURL: https://github.com/opendatahub-io-contrib/datamesh-platform.git
path: development/common/kustomize/overlays/development
targetRevision: main
# plugin:
# name: argocd-vault-plugin-kustomize
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- Validate=true
- ServerSideApply=true

0 comments on commit 74f3505

Please sign in to comment.