Flux bootstrapping succeeds but subsequent syncing using SSH fail. #5002
Unanswered
vijayansarathy
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The Flux CLI that commits the manifests to Git runs on your computer, while the Flux source-controller runs on the cluster. So either the firewall allows your computer and denies the cluster, or the cluster has some egress filter that blocks SSH. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to bootstrap two EKS clusters with Flux in two separate AWS Regions and sync their state from the same Git repository, hosted on GitHub enterprise (
github.cicd.mycompany.com
). Everything works fine with the EKS cluster in US-EAST-1. When doing the same for the cluster in US-WEST-2, the following operations during bootstrapping phase works OK. That is,clusters/CLUSTER_NAME/flux-system
directory in the Git repoFollowing that, during the syncing phase. when the Flux source controller tries to checkout the latest revision from the Git repo, it fails with the following error:
failed to checkout and determine revision: unable to clone 'ssh://[email protected]/ratings/spratings-gitops-hub.git': dial tcp 10.164.129.59:22: connect: connection timed out"
Looks like there is some firewall issue, perhaps, that is blocking access to port 22 when Flux tries to clone the Git repo from the cluster in US-WEST-2. But, how is Flux able to push the
gotk-*.yaml
manifests to the repository in the first place? Is that not done using SSH an by some other means using the PAT that we provide? Can someone please explain this?Thanks,
Viji
Beta Was this translation helpful? Give feedback.
All reactions