Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port-forward:443 error while creating project in other cluster #461

Open
neeraj-ec opened this issue Apr 24, 2023 · 1 comment
Open

port-forward:443 error while creating project in other cluster #461

neeraj-ec opened this issue Apr 24, 2023 · 1 comment

Comments

@neeraj-ec
Copy link

I'm trying to create a project for cluster other than where argocd-server is running. With following command
argocd-autopilot project create stage --dest-kube-context staging-cluster

Output:

INFO cloning git repository: https://github.com/abc/gitops.git 
Enumerating objects: 97, done.
Counting objects: 100% (97/97), done.
Compressing objects: 100% (55/55), done.
Total 97 (delta 32), reused 90 (delta 30), pack-reused 0
INFO using revision: "", installation path: "/"   
INFO adding cluster: staging-cluster 
WARNING: This will create a service account `argocd-manager` on the cluster referenced by context `staging-cluster` with full cluster level privileges. Do you want to continue [y/N]? y
INFO[0005] ServiceAccount "argocd-manager" already exists in namespace "kube-system" 
INFO[0006] ClusterRole "argocd-manager-role" updated    
INFO[0007] ClusterRoleBinding "argocd-manager-role-binding" updated 
FATA[0007] Failed to establish connection to port-forward:443: dial tcp: lookup port-forward: no such host

Tried with --insecure option also, still getting same issue.

@hguermeur
Copy link

Same here, workaround using :
argocd-autopilot project create myproject --dest-kube-context mycontext --port-forward --port-forward-namespace argocd
Without --port-forward option, on my system, it looks after "port-forward" in the dns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants