Skip to content

mcbenjemaa/argocd-apps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

argocd-apps

This repo shows a brief demo about using kustomize to patch argocd apps with a new approach.

Install argocd

First, If you don't have argocd yet running, please proceed to install it.

Update CRD

kubectl apply -f base/crds/application-crd.yaml

Update argocd image:

Use image: medchiheb/argocd:values-raw-alpha36

kubectl -n argocd patch deploy argocd-server -p 'spec:
    template:
      spec:
        containers:
         - name: argocd-server
           image: medchiheb/argocd:values-raw-alpha36
           imagePullPolicy: IfNotPresent'

kubectl -n argocd patch deploy argocd-repo-server -p 'spec:
    template:
      spec:
        initContainers:
         - name: copyutil
           image: medchiheb/argocd:values-raw-alpha36
           imagePullPolicy: IfNotPresent
        containers:
         - name: argocd-repo-server
           image: medchiheb/argocd:values-raw-alpha36
           imagePullPolicy: IfNotPresent'

kubectl -n argocd patch deploy argocd-dex-server -p 'spec:
    template:
      spec:
        initContainers:
         - name: copyutil
           image: medchiheb/argocd:values-raw-alpha36
           imagePullPolicy: IfNotPresent
        containers:
         - name: argocd-repo-server
           image: medchiheb/argocd:values-raw-alpha36
           imagePullPolicy: IfNotPresent'

kubectl -n argocd patch sts argocd-application-controller -p 'spec:
    template:
      spec:
        containers:
         - name: argocd-application-controller
           image: medchiheb/argocd:values-raw-alpha36
           imagePullPolicy: IfNotPresent'

Test

kubectl -n argocd apply -f overlays/dev/root.yaml
kubectl -n argocd apply -f overlays/qa/root.yaml
kubectl -n argocd apply -f overlays/prod/root.yaml

Clean

kubectl -n argocd rollout undo deployment argocd-server
kubectl -n argocd rollout undo deployment argocd-repo-server
kubectl -n argocd rollout undo deployment argocd-dex-server
kubectl -n argocd rollout undo statefulset argocd-application-controller

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published