Skip to content

Conversation

@holzgeist
Copy link

No description provided.

@holzgeist
Copy link
Author

@davidzhao this is an attempt to bring livekit/livekit#2252 over to the helm chart. It's currently completely untested because I don't fully understand how to test local changes with flux/helm/... yet.
I'll try again next week, unless you get to it before me 😇

@holzgeist holzgeist marked this pull request as ready for review February 19, 2024 13:59
@holzgeist holzgeist force-pushed the feat-add-prometheus-credentials branch from 24ef91f to 8d6b2d1 Compare October 8, 2024 11:55
@holzgeist
Copy link
Author

holzgeist commented Oct 8, 2024

@davidzhao Meantime I figured out how to develop and test helm charts 😄

Here's an update PR that allows credentials to be set. They are

  • passed in plain text into livekits config map so livekit can load them
  • stored in a secret so that the service monitor can load them (with a configurable secret name via .Values.serviceMonitor.secretName)

Copy link

@wrenix wrenix left a comment

Choose a reason for hiding this comment

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

use with instatt of if when using the value inside the block.

PS @livekit: why you do not merge any PRs?

Comment on lines +43 to +44
{{- if (include "livekit-server.prometheus_port" .) }}
- port: {{ include "livekit-server.prometheus_port" . }}
Copy link

Choose a reason for hiding this comment

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

Suggested change
{{- if (include "livekit-server.prometheus_port" .) }}
- port: {{ include "livekit-server.prometheus_port" . }}
{{- with (include "livekit-server.prometheus_port" .) }}
- port: {{ . }}

Comment on lines +79 to +82
{{- if (include "livekit-server.prometheus_port" .) }}
- name: metrics
containerPort: {{ .Values.livekit.prometheus_port }}
hostPort: {{ .Values.livekit.prometheus_port }}
containerPort: {{ include "livekit-server.prometheus_port" . }}
hostPort: {{ include "livekit-server.prometheus_port" . }}
Copy link

Choose a reason for hiding this comment

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

Suggested change
{{- if (include "livekit-server.prometheus_port" .) }}
- name: metrics
containerPort: {{ .Values.livekit.prometheus_port }}
hostPort: {{ .Values.livekit.prometheus_port }}
containerPort: {{ include "livekit-server.prometheus_port" . }}
hostPort: {{ include "livekit-server.prometheus_port" . }}
{{- with (include "livekit-server.prometheus_port" .) }}
- name: metrics
containerPort: {{ . }}
hostPort: {{ . }}

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