argocd-autopilot icon indicating copy to clipboard operation
argocd-autopilot copied to clipboard

--insecure doesn't seem to work correctly

Open joelcomp1 opened this issue 2 years ago • 6 comments

I want to run ArgoCD behind a ingress so --insecure seemed like exactly what I wanted but I want run repo bootstrap with these flags:

argocd-autopilot repo bootstrap --insecure --provider gitlab --git-user --repo

I get this error:

FATAL failed to build bootstrap manifests: failed running kustomization: accumulating resources: accumulation err='accumulating resources from 'manifests/insecure': evalsymlink failure on '/home//auto-pilot1445738794/manifests/insecure' : lstat /home//auto-pilot1445738794/manifests: no such file or directory': evalsymlink failure on '/home//auto-pilot1445738794/manifests/insecure' : lstat /home//auto-pilot1445738794/manifests: no such file or directory

if I don't use --insecure it works fine just deploys argocd w/HTTPS which I don't want.

joelcomp1 avatar Jul 18 '22 20:07 joelcomp1

it seems as a workaround you can provide:

--app github.com/argoproj-labs/argocd-autopilot/manifests/insecure?ref=v0.4.2

then it works, must be something wrong in the binary?

joelcomp1 avatar Jul 18 '22 22:07 joelcomp1

does not work for me:

no matches found: github.com/argoproj-labs/argocd-autopilot/manifests/insecure?ref=v0.4.2

WladyX avatar Jul 26 '22 14:07 WladyX

Just wondered if there is any traction on this?

iamandymcinnes avatar Apr 26 '23 15:04 iamandymcinnes

also wondering if anyone has a proper way to do this.

rogue@TUMBLER:~/roguelabTNG/argo$ argocd-autopilot repo bootstrap --insecure FATAL failed to build bootstrap manifests: failed running kustomization: accumulating resources: accumulation err='accumulating resources from 'manifests/insecure': evalsymlink failure on '/home/rogue/roguelabTNG/argo/auto-pilot828369425/manifests/insecure' : lstat /home/rogue/roguelabTNG/argo/auto-pilot828369425/manifests: no such file or directory': evalsymlink failure on '/home/rogue/roguelabTNG/argo/auto-pilot828369425/manifests/insecure' : lstat /home/rogue/roguelabTNG/argo/auto-pilot828369425/manifests: no such file or directory

Roguito avatar May 23 '23 16:05 Roguito

github.com/argoproj-labs/argocd-autopilot/manifests/insecure?ref=v0.4.2

put that in quotes and it might help.

I eventually got mine working by kustomizing the cm-params but I had to redo my lab so I thought I'd try to get it working this way.

argocd-autopilot repo bootstrap --insecure --app "github.com/argoproj-labs/argocd-autopilot/manifests/insecure?ref=v0.4.6"

Seemed to work while we wait for kustomize to fix their evalsymlink and argo adopts the fix.

obviously use the version you are most comfortable with... I chose 4.6 cause I was messing about.

Roguito avatar Sep 08 '23 19:09 Roguito

I would just update argocd-cmd-params-cm by editing the kustomization under /bootstrap/argo-cd/kustomization.yaml with a merge for the parameter server.insecure: "true"

Something like this:

apiVersion: kustomize.config.k8s.io/v1beta1
configMapGenerator:
- name: argocd-cmd-params-cm
  behavior: merge
  literals:
  - |
    server.insecure="true"

todaywasawesome avatar Apr 23 '24 22:04 todaywasawesome