-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Move host-network services off of port 8080 #9355
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ import ( | |
"k8s.io/kops/pkg/assets" | ||
"k8s.io/kops/pkg/k8scodecs" | ||
"k8s.io/kops/pkg/model" | ||
"k8s.io/kops/pkg/wellknownports" | ||
"k8s.io/kops/upup/pkg/fi" | ||
"k8s.io/kops/upup/pkg/fi/fitasks" | ||
) | ||
|
@@ -100,7 +101,7 @@ spec: | |
# The sidecar serves a healthcheck on the same port, | ||
# but with a .kube-apiserver-healthcheck prefix | ||
path: /.kube-apiserver-healthcheck/healthz | ||
port: 8080 | ||
port: %d | ||
host: 127.0.0.1 | ||
initialDelaySeconds: 5 | ||
timeoutSeconds: 5 | ||
|
@@ -126,7 +127,7 @@ spec: | |
func (b *KubeApiserverBuilder) buildHealthcheckSidecar() (*corev1.Pod, error) { | ||
// TODO: pull from bundle | ||
bundle := "(embedded kube-apiserver-healthcheck manifest)" | ||
manifest := []byte(defaultManifest) | ||
manifest := []byte(fmt.Sprintf(defaultManifest, wellknownports.KubeAPIServerHealthCheck)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: I normally try to avoid using Sprintf with our templates, favoring |
||
|
||
var pod *corev1.Pod | ||
var container *corev1.Container | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Just to make sure, does the health check have to listen to all ips? I did a quick check to see where reqs were coming from and seemed to be all localhost. It was a very quick test though.
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.
This PR is not changing that aspect.
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.
Fair enough