Skip to content

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 scottcrossen force-pushed the scottcrossen/node-locality branch from 391d5b6 to c27da88 Compare August 14, 2021 03:20
@scottcrossen
Copy link
Author

Rebased

@scottcrossen scottcrossen force-pushed the scottcrossen/node-locality branch from c27da88 to b9946d2 Compare August 15, 2021 01:28
@scottcrossen scottcrossen force-pushed the scottcrossen/node-locality branch from b9946d2 to f6ca266 Compare September 18, 2021 17:32
@scottcrossen
Copy link
Author

Rebased

{{- 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 scottcrossen force-pushed the scottcrossen/node-locality branch from f6ca266 to 3c92778 Compare November 21, 2021 00:02
@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