-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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: Add automatic lookup option for k8s service info #31885
Conversation
label should be |
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.
Thank you for your contribution, this is a neat idea!
Overall, I like the approach but I have a bit of feedback on the implementation
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.
Awesome, thank you, this looks good to me now overall. Two minor things:
- Please squash your two commits into one
- I believe you have to run
make -C Documentation update-helm-values
to also update the Helm values in the web docs
cf47df1
to
a99d47a
Compare
@gandro I squashed the commits. I don't think there's any other documentation to update though I already updated |
Awesome!
We also have https://docs.cilium.io/en/latest/helm-reference/ which like the README.md contains all the Helm values and their description. That also needs to be regenerated via While at it, the commit message lint fails with the following error message:
Thanks! |
Commit 326b84e does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
326b84e
to
416e28e
Compare
416e28e
to
4724137
Compare
@gandro ok I think I got it sorted now. Apologies, git is not my strong suit 😅 |
Commit e2705ca does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
e2705ca
to
4724137
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.
Seems like Documentation/helm-values.tmp is added unintentionally, I have only one nitpick, the rest looks good to me.
4724137
to
20e6a06
Compare
@sayboras removed |
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 a lot, lgtm.
1a4e016
to
6b0e81b
Compare
6b0e81b
to
7e767e8
Compare
This commit adds an option for kubeadm-based clusters to specify ``` k8sServiceHost: "auto" ``` and have a helper function automatically determine the Kubernetes host and port information from the `cluster-info` ConfigMap in the `kube-public` namespace, and use that to populate the `k8sServiceHost` and `k8sServicePort` values. This can significantly simplify the enabling of kubeproxy-less mode, especially for CAPI clusters where the value for `k8sServiceHost` cannot always be known ahead of time. If any other value than "auto" is provided for `k8sServiceHost`, the behavior reverts to its original form. Signed-off-by: Kevin Reeuwijk <kevin.reeuwijk@spectrocloud.com>
7e767e8
to
3d28574
Compare
/test |
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.
Thank you
Hi, do we plan to add this feature to upcoming 1.16 release? This is an important feature for clusterapi/kubeadm based kubernetes deployments |
This commit adds an option for kubeadm-based clusters to specify
and have a helper function automatically determine the Kubernetes host and port information from the
cluster-info
ConfigMap in thekube-public
namespace, and use that to populate thek8sServiceHost
andk8sServicePort
values. This can significantly simplify the enabling of kubeproxy-less mode, especially for CAPI clusters where the value fork8sServiceHost
cannot always be known ahead of time.If any other value than "auto" is provided for
k8sServiceHost
, the behavior reverts to its original form.