argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.65k stars 5.38k forks source link

argocd add a prviate gke cluster behind a proxy is failed, the connection time out #7887

Open jinnjwu opened 2 years ago

jinnjwu commented 2 years ago

If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a question in argocd slack channel.

Checklist:

Describe the bug kubeconfig behind a proxy

apiVersion: v1
clusters:
  - cluster:
     server: https://192.168.224.2
     proxy-url: http://10.98.0.242:3128

log output: argocd cluster add papi-dev_europe-west2_gke-cluster1 WARNING: This will create a service account argocd-manager on the cluster referenced by context papi-dev_europe-west2_gke-cluster1 with full cluster level admin privileges. Do you want to continue [y/N]? y time="2021-12-08T18:40:30+08:00" level=info msg="ServiceAccount \"argocd-manager\" already exists in namespace \"kube-system\"" time="2021-12-08T18:40:31+08:00" level=info msg="ClusterRole \"argocd-manager-role\" updated" time="2021-12-08T18:40:31+08:00" level=info msg="ClusterRoleBinding \"argocd-manager-role-binding\" updated" time="2021-12-08T18:40:33+08:00" level=warning msg="Failed to invoke grpc call. Use flag --grpc-web in grpc calls. To avoid this warning message, use flag --grpc-web." time="2021-12-08T18:41:03+08:00" level=fatal msg="rpc error: code = Unknown desc = Get \"https://192.168.224.2/version?timeout=32s\";: dial tcp 192.168.224.2:443: i/o timeout"

A clear and concise description of what the bug is.

To Reproduce

A list of the steps required to reproduce the issue. Best of all, give us the URL to a repository that exhibits this issue.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Version v2.2.0-rc1

Paste the output from `argocd version` here.

Logs

Paste any relevant application logs here.
ilanni2460 commented 2 years ago

yes,i had this problem too @GitHubFor122

jinnjwu commented 2 years ago

How to make this issue to be solved ?

jinnjwu commented 2 years ago

I am not a go developer, anyone from community can enhance it ?

rekiemfaxaf commented 2 years ago

If the cluster is private, you should add your IP address to the authorized networks, also the IP from the argocd cluster

ohrafaelmartins commented 1 year ago

If the cluster is private, you should add your IP address to the authorized networks, also the IP from the argocd cluster

@rekiemfaxaf Would you be able to tell me how to do that, please?