Skip to content

Commit

Permalink
feat(chart): added prometheus annotations and values (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolmi authored Oct 5, 2023
1 parent 03dfe28 commit 0945cd3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/livekit-webhook-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.1.1
version: 1.1.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v1.1.1"
appVersion: "v1.1.2"
11 changes: 10 additions & 1 deletion charts/livekit-webhook-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ spec:
{{- include "livekit-webhook-proxy.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- if .Values.config.prometheus.enabled }}
prometheus.io/scrape: true
prometheus.io/port: {{ .Values.config.prometheus.port }}
{{- end }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
Expand Down Expand Up @@ -42,6 +46,11 @@ spec:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
{{- if .Values.config.prometheus.enabled }}
- name: metrics
containerPort: {{ .Values.config.prometheus.port }}
protocol: TCP
{{- end }}
livenessProbe:
httpGet:
path: /
Expand Down
7 changes: 4 additions & 3 deletions charts/livekit-webhook-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ config:
topic: livekit-webhook
# replace with your existing GCP project ID
project-id: <gcp-project>
prometheus:
enabled: true
port: 9040

imagePullSecrets: []
nameOverride: ""
Expand All @@ -29,9 +32,7 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""

podAnnotations:
sidecar.istio.io/inject: "false"
linkerd.io/inject: disabled
podAnnotations: {}

podSecurityContext:
{}
Expand Down

0 comments on commit 0945cd3

Please sign in to comment.