argocd deploying helm application using command line and yaml


You can deploy argocd helm application using the command line. This is when you wanted to use a git repo and specify a path

argocd app create helm-guestbook --repo https://github.com/argoproj/argocd-example-apps.git --path helm-guestbook --dest-namespace default --dest-server https://kubernetes.default.svc --helm-set replicaCount=2 

Or you can use the following yaml to deploy your sample helm application hosted in a git. (Not from a helm repo - for that you need to specify chart name). This is solely for deploying from a git source that contains helm deployment.


apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: helm-guestbook
  namespace: argocd
spec:
  project: default
  directory:
      recurse: true
  source:
    repoURL: https://github.com/argoproj/argocd-example-apps.git
    path: helm-guestbook
    helm:
      releaseName: helm-guestbook
      parameters:
      - name: "replicaCount"
        value: "2"
      # valuesObject:
      #   replicaCount: 2 # didn't work for me
  destination:
    server: "https://kubernetes.default.svc"
    namespace: default



Then run the following command to create argocd application

argocd app create -f helm-local-deployment.yaml 


For more information about the Application crd spec, please refer to there.

https://argo-cd.readthedocs.io/en/stable/user-guide/application-specification/

Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm