-
Notifications
You must be signed in to change notification settings - Fork 247
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
helm: make master port configurable #1044
helm: make master port configurable #1044
Conversation
✅ Deploy Preview for kubernetes-sigs-nfd ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Welcome @AhmedGrati! |
Hi @AhmedGrati. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
Thanks for the PR @AhmedGrati. Looks good, I had just one comment regarding the gitignore
Also one nit about the commit message, the "Feat:" topic looks just baffling to me, could you change it to e.g. "helm:" (helm: make master port configurable
or smth). And, could you squash the PR into one commit?
.gitignore
Outdated
@@ -2,3 +2,4 @@ bin/ | |||
demo/helper-scripts/*.pdf | |||
demo/helper-scripts/*.log | |||
/kustomization.yaml | |||
.idea |
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.
What is this? At least unrelated to this PR
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.
Yes true. However, I thought that it would be great to add it for users who use JetBrains products. I will open another PR for it if you see that it is helpful. WDYT?
5c8758e
to
d07c5fe
Compare
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.
Thanks @AhmedGrati, looks good to me now 👍
/retitle helm: make master port configurable
ping @stek29 |
@AhmedGrati mdlint is not happy with the docs' changes^ |
/assign @adrianchiris |
d07c5fe
to
ec4f2ff
Compare
/retest |
@marquiz It's fixed now. |
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 doesn’t solve my original issue, it was about changing containerPort and listener port in the nfd master |
@@ -65,6 +65,7 @@ spec: | |||
ports: | |||
- containerPort: 8080 | |||
name: grpc | |||
hostPort: {{ .Values.master.port }} |
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 don't think it is good idea to use hostPort
as a default option to deploy nfd-master
it will use/reserve this port on the k8s worker node. If we just want to make it configurable on which port nfd-master
is listening then something like this would be enough:
command:
- "/usr/bin/grpc_health_probe"
- "-addr=:{{ .Values.master.port | default "8080" }}"
...
ports:
- containerPort: {{ .Values.master.port | default "8080" }}
name: grpc
reference to best practises:
https://kubernetes.io/docs/concepts/configuration/overview/#services
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.
Thanks @PiotrProkop, you're absolutely right 🙄 My feedback was ill-advised.
@AhmedGrati forget about my thoughtless comments, listen to @PiotrProkop
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.
Okay, I will update it ASAP.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AhmedGrati, marquiz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
docs/deployment/helm.md
Outdated
@@ -108,6 +108,7 @@ We have introduced the following Chart parameters. | |||
| Name | Type | Default | description | | |||
|-----------------------------|---------|-----------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------| | |||
| `master.*` | dict | | NFD master deployment configuration | | |||
| `master.port` | integer | | Specifies the TCP port that nfd-master listens for incoming requests. | |
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 know it renders properly but this is the only line which is not aligned :( otherwise lgtm
one small nit but overall lgtm |
e7275b4
to
517b27f
Compare
517b27f
to
e68bfe4
Compare
7ad0bf1
to
ab8cd4f
Compare
Signed-off-by: AhmedGrati <[email protected]>
ab8cd4f
to
07d5ffe
Compare
Thanks for the review @PiotrProkop |
@PiotrProkop Thanks! It's fixed now! |
LGTM |
/lgtm |
LGTM label has been added. Git tree hash: 7ec0ca152659e9c9023f56a2529aea0e20be1b5e
|
/cherry-pick release-0.12 |
@marquiz: new pull request created: #1135 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Resolves #884.