-
Notifications
You must be signed in to change notification settings - Fork 653
error on bootstrapping flux #1265
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
Comments
The failure happens on your cluster, is it Kubernetes on Docker for Mac? Can you post here the output of these commands:
|
Hi. yes its happened in Kubernetes on docker for Mac. Output of commands as below (base) sanj@Sanjs-Air Flux % flux check (base) sanj@Sanjs-Air Flux % flux get sources all (base) sanj@Sanjs-Air Flux % flux get kustomizations This is my third attempt as later on I get error in cloning sources and I was wondering if this was the reason. Thanks for a prompt reply |
Looks like the error was transient, as the state of the resources now reflects that they could download and apply the artifact successfully. |
Flux looks OK now, my guess is that the outbound network connection was really slow and it took some time for source-controller to clone the repo. |
Okay thanks . So reason I wonder this was the issue was due to failure in creating sources. I will carry on and see if the sources get created successfully this time. thanks again. |
Hi Stephan, So reason I was trying to setup flux again was down to this error on creating sources. I am still new to this so feel free to correct me. When I create the source, I am getting the below error. the error is obvious as in it's missing authentication but I am not sure why the flux-system (default source I am guessing) is able to talk to git-hub but not the custom source named staging that I created. I have also pasted the content of the staging file. (base) sanj@Sanjs-Air app-cluster % flux get sources git Contents of staging file** apiVersion: source.toolkit.fluxcd.io/v1beta1 apiVersion: kustomize.toolkit.fluxcd.io/v1beta1 ***staging File Ends |
I see something similar, all the resources are healthy but there is one timeout which doesn't give enough details as to what went wrong.
Any leads would be appreciated. |
@sanjvij You have to specify a secret containing the git credentials in |
Thanks. for time being I simply injected value from env variables. But Agree with your approach. Also the original bootstrapping error didn't came when I ran the bootstrap command again so am happy to close this as not an issue |
@jdeokar95 I read somewhere that the solution to your problem is proxy related, running:
worked for me. Can't give you more info than that, but it fixed the problem for me on an Ubuntu VM and on my Mac :) |
Hi . I am having a hard time in setting up flux on my Mac using bootstrap. when I try to run bootstrap command I get a health check error as below. Am I okay to ignore this ? Apologies if this is not the right forum and feel free me to direct in that case.
◎ waiting for Kustomization "flux-system/flux-system" to be reconciled
✗ failed to download artifact, error: GET http://source-controller.flux-system.svc.cluster.local./gitrepository/flux-system/flux-system/3f5e6a9863de3306a0ae2f9a69cf0fa62d558e0e.tar.gz giving up after 10 attempt(s)
► confirming components are healthy
✔ source-controller: deployment ready
✔ kustomize-controller: deployment ready
✔ helm-controller: deployment ready
✔ notification-controller: deployment ready
✔ all components are healthy
✗ bootstrap failed with 1 health check failure(s)
The text was updated successfully, but these errors were encountered: