2 Commits
Author SHA1 Message Date
ahp 12ecbf991e release v0.3.8: chart metadata + image tags
build-and-push / build (push) Successful in 28s
- Chart 0.2.3 -> 0.2.4, appVersion 0.2.1 -> 0.3.7 (metadata labels only;
  pod templates use selectorLabels, no statefulset churn)
- values-apollo image tags 0.3.7 -> 0.3.8 (backend+frontend roll once)
2026-10-19 00:49:16 +03:30
ahp 951610cda2 chart: add backend ServiceMonitor (token-auth /metrics, off by default)
- /metrics is bearer-protected via METRICS_TOKEN; the endpoint carries
  authorization.credentials (pargar-app/metrics-token) so Prometheus
  scrapes it the same way the live probe does.
- disabled by default: plain 'helm template' renders byte-identical;
  values-apollo enables it (enabled: true, interval 30s already present).
- kube-prometheus (ns infra) selects ServiceMonitors in all namespaces;
  its operator holds cluster-wide secret read to resolve the credential.
2026-10-19 00:47:54 +03:30
4 changed files with 40 additions and 4 deletions
+2 -2
View File
@@ -2,8 +2,8 @@ apiVersion: v2
name: pargar
description: Pargar gated LMS - Go API, Next.js frontend, Postgres, Redis, S3-compatible storage
type: application
version: 0.2.3
appVersion: "0.2.1"
version: 0.2.4
appVersion: "0.3.7"
keywords:
- lms
- pargar
@@ -0,0 +1,29 @@
{{- if .Values.backend.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "pargar.fullname" . }}-backend
labels:
{{- include "pargar.labels" . | nindent 4 }}
app.kubernetes.io/component: backend
spec:
selector:
matchLabels:
{{- include "pargar.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: backend
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
endpoints:
- port: http
path: /metrics
interval: {{ .Values.backend.metrics.serviceMonitor.interval | default "30s" }}
scheme: http
# /metrics answers 401 without it; Prometheus sends it as
# Authorization: Bearer <token>.
authorization:
type: Bearer
credentials:
name: {{ include "pargar.appSecretName" . }}
key: metrics-token
{{- end }}
+2 -2
View File
@@ -11,7 +11,7 @@ backend:
image:
pullPolicy: IfNotPresent
repository: pargar-backend
tag: 0.3.7
tag: 0.3.8
metrics:
serviceMonitor:
enabled: true
@@ -41,7 +41,7 @@ frontend:
image:
pullPolicy: IfNotPresent
repository: pargar-frontend
tag: 0.3.7
tag: 0.3.8
podDisruptionBudget:
enabled: false
replicaCount: 2
+7
View File
@@ -25,6 +25,13 @@ backend:
pullPolicy: IfNotPresent
service:
port: 8080
metrics:
# Prometheus Operator ServiceMonitor. /metrics is bearer-protected by
# METRICS_TOKEN, so the endpoint carries authorization credentials
# (pargar-app secret) instead of scraping anonymously.
serviceMonitor:
enabled: false
interval: 30s
resources:
requests:
cpu: 50m