Application yml fully explaied
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: vg-vgerp-master-rust
annotations:
argocd-image-updater.argoproj.io/write-back-method: git:secret:argocd/git-credentials ## this is kubernetes secret inside it i stored private ssh key that argocd use to authenticate with public key of repo stored in deploy keys
argocd-image-updater.argoproj.io/git-branch: main ## branch to keep eye
argocd-image-updater.argoproj.io/write-back-target: kustomization ## kustization or helm
argocd-image-updater.argoproj.io/image-list: vgerp-master-rust=165887003662.dkr.ecr.ap-southeast-1.amazonaws.com/vgerp-master-rust $ image link
argocd-image-updater.argoproj.io/vgerp-master-rust.update-strategy: latest ## <project-name>.update-strtergy
notifications.argoproj.io/subscribe.on-sync-failed.teams: channelName ## for failed alert
notifications.argoproj.io/subscribe.on-sync-succeeded.teams: channelName ## for succeded aler
notifications.argoproj.io/subscribe.on-health-progressing.teams: channelName
notifications.argoproj.io/subscribe.on-health-degraded.teams: channelName
notifications.argoproj.io/subscribe.on-app-deployed.teams: channelName
notifications.argoproj.io/subscribe.on-app-deleted.teams: channelName
spec:
destination:
namespace: default ## namespace of application
server: https://kubernetes.default.svc ## on which destinition cluster to deploy
source:
path: prod/VG/ERP/vgerp-master-rust ## path where kustamization file located
repoURL: [email protected]:VG-Industrial/vg-argocd-k8s.git ## ssh repo url
targetRevision: HEAD
sources: []
project: default
syncPolicy:
automated:
prune: false ## When enabled, ArgoCD will automatically delete (prune) any Kubernetes resources that were removed from your Git repository.
selfHeal: false ## When enabled, ArgoCD will automatically revert any manual changes made directly in the Kubernetes cluster (drift correction).Last updated