Reputation: 488
I've tried the Application definition below, but it's just not synchronizing by ArgoCD without any logging. Synchronization process just keeps hanging.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: guestbook
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
destination:
namespace: guestbook
server: "https://kubernetes.default.svc"
source:
helm:
valueFiles:
- "values.yaml"
repoURL: 'https://{private git server}/guestbook'
targetRevision: HEAD
Git repository https://{private git server}/guestbook
has the following file structure of a Helm chart:
- charts (folder)
- templates (folder)
- Chart.yaml
- values.yaml
Helm chart gets successfully deployed when run outside of ArgoCD with helm install guestbook . --namespace guestbook
from the root of the cloned git repository with the chart.
Git repository and access credentials are configured in ArgoCD dashboard and ArgoCD connects to the repo successfully.
Upvotes: 5
Views: 12296
Reputation: 359
Path should contain a Chart.yaml file.
kind: Application
metadata:
name: test-apps
spec:
destination:
namespace: argocd
server: https://kubernetes.default.svc
project: argocd
syncPolicy:
automated:
prune: true
source:
path: argocd-example-apps
repoURL: https://github.com/stevesea/argocd-helm-app-of-apps-example.git
targetRevision: test
helm:
valueFiles:
- test-values.yaml```
Upvotes: 5