-
Notifications
You must be signed in to change notification settings - Fork 38
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
Tinkerbell chart improvements #101
Conversation
{{- if .Values.deployment.hostPortEnabled }} | ||
hostPort: {{ .Values.deployment.port }} | ||
{{- end }} |
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.
Curious, is there a known use case for needing this? Kubernetes has some general guidance to not use hostPort
. ref
d58b4bd
to
e34a640
Compare
{{- with .Values.stack.kubevip.prometheus }} | ||
- name: prometheus_server | ||
value: {{ .addr }}:{{ .port }} | ||
{{- end }} |
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.
We should open up env vars generically here. This way we dont need to keep up to date on all possible options as the come and go. We do this in Smee:
{{- range .Values.additionalEnv }} |
You don't have to follow this naming convention (
additionalEnv
) though. It could just something like .Values.env
or similar.
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.
Yeah that sounds like a great idea. will update the PR shortly!
e34a640
to
8ca2213
Compare
@@ -32,6 +32,7 @@ stack: | |||
roleBindingName: kube-vip-rolebinding | |||
# Customize the interface KubeVIP advertises on. When unset, KubeVIP will autodetect the interface. | |||
# interface: enp0s8 | |||
additionalEnv: [] |
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.
mind adding the code comment for the format of the values in this array? see the Smee example:
charts/tinkerbell/smee/values.yaml
Line 124 in 43a6c2c
# Additional environment variables to pass to the smee container. Each entry is expected to have a |
8ca2213
to
2ebe8c0
Compare
{{- range .Values.args }} | ||
- {{ . }} | ||
{{- end }} |
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 might need to hardcode --leader-elect
and then additional args can be added. In its current state if the use modifies the rufio args from the stack they'll need to be aware that they will also need to supply --leader-elect
. Smee handles this with an additionalArgs
charts/tinkerbell/smee/values.yaml
Line 119 in 8ca2213
additionalArgs: [] |
2ebe8c0
to
c962a50
Compare
Signed-off-by: Ahree Hong <[email protected]>
c962a50
to
7b67520
Compare
Description
This PR adds the following:
prometheus_server
to be set to override the default addressWhy is this needed
These changes allow the tinkerbell chart to be more customizable for various use cases
How Has This Been Tested?
Tested manually with EKS-Anywhere
Checklist:
I have: