Skip to content

Instantly share code, notes, and snippets.

@purwandi
Last active June 21, 2021 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save purwandi/2614cc60debad130d6b57ecdd4eb68bf to your computer and use it in GitHub Desktop.
Save purwandi/2614cc60debad130d6b57ecdd4eb68bf to your computer and use it in GitHub Desktop.
Argo Continuos Deployment (ARGOCD)
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argocd-git
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
path: manifest
repoURL: https://github.com/optimus/argocd/argocd-git.git
targetRevision: main #branch or tag
destination:
server: https://kubernetes.default.svc
namespace: optimus
syncPolicy:
automated:
prune: true
selfHeal: true
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cm
namespace: argocd
labels:
app.kubernetes.io/name: argocd-cm
app.kubernetes.io/part-of: argocd
data:
repositories: |
- url: https://github.com/optimus/argocd/argocd-git.git
type: git
usernameSecret:
key: username
name: repo-argocd-git
passwordSecret:
key: password
name: repo-argocd-git
- url: https://gitlab.com/optimus/argocd/argocd-helm.git
type: git
usernameSecret:
key: username
name: repo-1503435582
passwordSecret:
key: password
name: repo-1503435582
apiVersion: v1
kind: Secret
metadata:
name: repo-argocd-git
namespace: argocd
type: Opaque
data:
username: # base64(username)
password: # base64(password)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment