Terraform helm install ArgoCD

From wikieduonline
Jump to navigation Jump to search
resource "helm_release" "argocd" {
 name       = "argocd"
 namespace  = "argocd"
 chart      = "argo-cd"
 repository = "https://argoproj.github.io/argo-helm"
}

Verify[edit]

Login:

 kubectl port-forward service/argocd-server -n argocd 8080:443 &
http://localhost:8080
User: admin
Pass: kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo

Example[edit]

  # helm_release.argocd will be created
  + resource "helm_release" "argocd" {
      + atomic                     = false
      + chart                      = "argo-cd"
      + cleanup_on_fail            = false
      + create_namespace           = false
      + dependency_update          = false
      + disable_crd_hooks          = false
      + disable_openapi_validation = false
      + disable_webhooks           = false
      + force_update               = false
      + id                         = (known after apply)
      + lint                       = false
      + manifest                   = (known after apply)
      + max_history                = 0
      + metadata                   = (known after apply)
      + name                       = "argocd"
      + namespace                  = "argocd"
      + pass_credentials           = false
      + recreate_pods              = false
      + render_subchart_notes      = true
      + replace                    = false
      + repository                 = "https://argoproj.github.io/argo-helm"
      + reset_values               = false
      + reuse_values               = false
      + skip_crds                  = false
      + status                     = "deployed"
      + timeout                    = 300
      + verify                     = false
      + version                    = "7.7.22"
      + wait                       = true
      + wait_for_jobs              = false
    }

Errors[edit]

╷
│ Error: Kubernetes cluster unreachable: Get "https://XXXXXXXXX.sk1.us-east-2.eks.amazonaws.com/version": getting credentials: exec: executable aws failed with exit code 253 
│
│   with helm_release.argocd,
│   on helm.tf line 16, in resource "helm_release" "argocd":
│   16: resource "helm_release" "argocd" {
│
╵

Solution: export AWS_PROFILE="your-profile"

Related[edit]

See also[edit]

Advertising: