-
Notifications
You must be signed in to change notification settings - Fork 44
Single Node deployment with bootstrap-in-place #46
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
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: eranco74 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/hold |
7a7e7b7 to
35c8438
Compare
febe942 to
473909d
Compare
pkg/start/bootstrap.go
Outdated
| previousErrorSuffix := "" | ||
| var lastErr error | ||
| wait.Until(func() { | ||
| version, err := discovery.ServerVersion() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better check for /readyz, not discovey
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sttts till api is not ready it will not answer the call, In case of kubeapi it is not really relevant what to check. We just need to have any call to return. We can though move it to http call but i think this method is nicely tested in installer and is good enough for our needs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will answer before /readyz. But you might get ugly errors for certain calls.
473909d to
7a2f87c
Compare
f771196 to
5907da0
Compare
pkg/start/bootstrap.go
Outdated
| customTransport := http.DefaultTransport.(*http.Transport).Clone() | ||
| customTransport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true} | ||
| client := &http.Client{Transport: customTransport} | ||
| previousErrorSuffix := "" | ||
| wait.Until(func() { | ||
| _, err := client.Get(fmt.Sprintf("https://%s/readyz", b.kubeApiUrl)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My preference was how you had it originally--looking up ServerVersion via the discovery client. I don't like using InsecureSkipVerify, despite it being pretty benign here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer discovery client as well, this is less pretty but doesn't' require dependencies.
#46 (comment)
| return err | ||
| } | ||
|
|
||
| return b.waitForApi() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain what problem this is looking to solve?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in case required-pods="" (this is the case when running bootstrap-in-place) cluster-bootstrap will fail to publish an event since kube-apiserver isn't up yet.
This should solve the problem by ensuring the kube-apiserver is available when bootstrapControlPlane.Start() returns.
I'll add it to the commit message
82d09d9 to
80b33a6
Compare
|
/unhold |
066d750 to
80b33a6
Compare
in case required-pods="" (this is the case when running bootstrap-in-place) cluster-bootstrap may fail to publish an event in case kube-apiserver isn't up yet. This should solve the problem by ensuring the kube-apiserver is available
This means that we fail to create some manifests
1ef73a3 to
d3530db
Compare
Use fcct for creating the master ignition Signed-off-by: Eran Cohen <eran@stratoscale.com>
d3530db to
6d7910f
Compare
cd5ba6f to
e5d5e71
Compare
e5d5e71 to
b3b043f
Compare
No description provided.