Skip to content

Add service annotations to the helm chart - #3056

Closed
monneyboi wants to merge 1 commit into
alephdata:mainfrom
followthemoney:monneyboi/helm-service-annotations
Closed

monneyboi wants to merge 1 commit into
alephdata:mainfrom
followthemoney:monneyboi/helm-service-annotations

Conversation

@monneyboi

Copy link
Copy Markdown
Contributor

When running Aleph in the google cloud with container native loadbalancing, the healthcheck of the default BackendConfig google cloud generates won't work (because of the non-standard name api of the service port if i remember correctly.).

This can be solved in multiple ways:

  • I think renaming the port to http would make the defaults work, but i haven't tested this.
  • Making it possible for the user to set annotations on the service. Which seems like a good idea anyway.

apiVersion: v1
kind: Service
metadata:
{{- if .Values.api.serviceAnnotations }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If you specify default value it will always be there, you don't need to check that it exists.

metadata:
{{- if .Values.api.serviceAnnotations }}
annotations:
{{- range $key, $value := .Values.api.serviceAnnotations }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can you implement it like helm does it here?

@stchris stchris closed this Oct 13, 2025
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.

3 participants