Skip to content
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

Optionally expose node locality (region, zone, host) to pod #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scottcrossen
Copy link

Discussion: Has this been investigated before? I imagine that most people want these locality tags in multi-region setups. This PR adds them from well-known node labels. I'm happy to transfer ownership of my proof-of-concept initContainer that mounts the node labels in the statefulset.

TLDR: This pullrequest automatically adds the CLI start flag values

--locality=region=us-west-2,zone=us-west-2a,host=myhost

@scottcrossen scottcrossen changed the title Proposal: Optionally expose node locality (region, zone, host) to pod Optionally expose node locality (region, zone, host) to pod Jul 19, 2021
@scottcrossen scottcrossen force-pushed the scottcrossen/node-locality branch 3 times, most recently from 2dd218d to 391d5b6 Compare July 25, 2021 23:41
@scottcrossen
Copy link
Author

Rebased

@scottcrossen
Copy link
Author

Rebased

@@ -16,9 +16,9 @@ metadata:
{{- with .Values.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
annotations:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this approach, helm hooks annotations should always be present or someone who wants to add new annotations will override helms one

Copy link
Contributor

@sergeyshaykhullin sergeyshaykhullin Nov 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add something like extraJobAnnotations and list them after helm hooks

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! The purpose of this was to make it possible to remove the annotations.

I've moved this discussion into a new PR: #206

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Thanks!

@scottcrossen
Copy link
Author

Rebased PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants