less than 1 minute read

Guide ## PrerequisitesPermalink

  • ArgoCD Server able to connect to GitLab url
  • Have at least one file of kubernetes manifest
  • Run yaml on master node

1. Create Repository to store ArgoCD manifest file and kubernetes deploymentPermalink

2. Create the guestbook for the first time by create application.yaml filePermalink

application.yaml example

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: myapp
  namespace: argocd
spec:
  project: default

  source:
    repoURL: https://gitlab.lab.id/sd/argocd-config.git
    targetRevision: HEAD
    path: dev
  destination: 
    server: https://kubernetes.default.svc
    namespace: myapp

  syncPolicy:
    syncOptions:
    - CreateNamespace=true

    automated:
      selfHeal: true
      prune: true

3. Deploy application.yaml using kubectl for the first time, later you have to make changes on the repoPermalink

kubectl apply -f application.yaml

Dashboard1

4. The guestbook will be synced automatically with selected repository and check every 3 minutesPermalink

Manual pullPermalink

1. Select one of applicationPermalink

2. Click Refresh and then syncPermalink

Dashboard2

Comments