Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
12ecbf991e | ||
|
|
951610cda2 |
@@ -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 }}
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user