The existing Deployment still owns strategy.rollingUpdate from the previous release; omitting it in SSA does not drop it and Helm fails the upgrade.
169 lines
5.1 KiB
YAML
169 lines
5.1 KiB
YAML
# kube-prometheus-stack values — home cluster (Sirius DevOps)
|
|
#
|
|
# Pinned in release.yaml to chart 92.14.0 (appVersion v0.94.2).
|
|
# Everything lands on siriussec: amd64 image (rpi is arm64) + local-path PVs.
|
|
# Prometheus is capped twice (time AND bytes) so a metrics burst can never
|
|
# repeat the ephemeral-storage / DiskPressure incident (see docs/cluster-overview.md).
|
|
|
|
# --- Alertmanager: off. No receivers in this card; alerts fire to nowhere on purpose.
|
|
alertmanager:
|
|
enabled: false
|
|
|
|
defaultRules:
|
|
create: true
|
|
# Control-plane / proxy components that this cluster does not expose to
|
|
# Prometheus: kube-proxy is replaced by Cilium, and the kubeadm static pods
|
|
# only bind their metrics on 127.0.0.1. Rules for them would sit "firing"
|
|
# forever, so drop the whole groups that depend on those targets.
|
|
rules:
|
|
kubeProxy: false
|
|
kubeControllerManager: false
|
|
kubeScheduler: false
|
|
kubeEtcd: false
|
|
|
|
# --- Control-plane targets that are unreachable or lift-heavy for a lab box
|
|
kubeProxy:
|
|
enabled: false
|
|
kubeControllerManager:
|
|
enabled: false
|
|
kubeScheduler:
|
|
enabled: false
|
|
kubeEtcd:
|
|
enabled: false
|
|
kubeApiServer:
|
|
enabled: true
|
|
|
|
prometheusOperator:
|
|
nodeSelector:
|
|
kubernetes.io/hostname: siriussec
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 256Mi
|
|
admissionWebhooks:
|
|
patch:
|
|
nodeSelector:
|
|
kubernetes.io/hostname: siriussec
|
|
|
|
prometheus:
|
|
enabled: true
|
|
prometheusSpec:
|
|
# Storage: local-path on siriussec. 10Gi PVC + an 8GB TSDB cap leaves
|
|
# headroom for WAL/checkpoint files inside the same volume.
|
|
retention: 7d
|
|
retentionSize: 8GB
|
|
scrapeInterval: 30s
|
|
evaluationInterval: 30s
|
|
nodeSelector:
|
|
kubernetes.io/hostname: siriussec
|
|
resources:
|
|
requests:
|
|
cpu: 200m
|
|
memory: 512Mi
|
|
limits:
|
|
cpu: "1"
|
|
memory: 2Gi
|
|
storageSpec:
|
|
volumeClaimTemplate:
|
|
spec:
|
|
storageClassName: local-path
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 10Gi
|
|
# No remoteWrite / remoteRead / receivers: metrics never leave the cluster.
|
|
|
|
grafana:
|
|
enabled: true
|
|
nodeSelector:
|
|
kubernetes.io/hostname: siriussec
|
|
# Admin credentials live in the monitoring/grafana-admin Secret (created out of
|
|
# band with kubectl, never in git). Keys: admin-user, admin-password.
|
|
admin:
|
|
existingSecret: grafana-admin
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
# Dashboards and datasources are provisioned from ConfigMaps (chart-generated,
|
|
# sidecar-loaded) — nothing is created by hand in the UI.
|
|
defaultDashboardsEnabled: true
|
|
sidecar:
|
|
dashboards:
|
|
enabled: true
|
|
label: grafana_dashboard
|
|
datasources:
|
|
enabled: true
|
|
label: grafana_datasource
|
|
# Persistence: Grafana's own sqlite DB (/var/lib/grafana/grafana.db) now lives
|
|
# on a local-path PVC on siriussec, so an in-app admin-password change and any
|
|
# session/API-key state survive a pod restart. Dashboards + datasources are
|
|
# STILL provisioned from ConfigMaps below and win over UI edits — that is the
|
|
# source of truth, and the reason only credentials/session state needed a PVC.
|
|
# 5Gi is generous for a sqlite DB that is measured in MB; the PV sits next to
|
|
# Prometheus's 10Gi on the same disk.
|
|
persistence:
|
|
enabled: true
|
|
type: pvc
|
|
storageClassName: local-path
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
size: 5Gi
|
|
# A single local-path RWO PVC cannot be mounted by old + new pod at once, so a
|
|
# rolling update deadlocks (new pod Pending on the volume). Recreate is
|
|
# required with persistence enabled.
|
|
deploymentStrategy:
|
|
type: Recreate
|
|
# Explicit null: the pre-existing Deployment carries rollingUpdate settings
|
|
# from the previous release and server-side apply will not drop them by
|
|
# omission, which fails with "may not be specified when strategy type is
|
|
# Recreate". Rendering the null is what removes the stale field.
|
|
rollingUpdate: null
|
|
# Stable session-signing key. Without this Grafana generates a fresh
|
|
# secret_key on every boot, so every existing browser cookie becomes
|
|
# "user token not found" and the client bounces on /. The Secret
|
|
# monitoring/grafana-secret-key is created out of band (never in git).
|
|
envValueFrom:
|
|
GF_SECURITY_SECRET_KEY:
|
|
secretKeyRef:
|
|
name: grafana-secret-key
|
|
key: secret_key
|
|
grafana.ini:
|
|
auth.anonymous:
|
|
enabled: false
|
|
users:
|
|
allow_sign_up: false
|
|
analytics:
|
|
reporting_enabled: false
|
|
|
|
kube-state-metrics:
|
|
nodeSelector:
|
|
kubernetes.io/hostname: siriussec
|
|
resources:
|
|
requests:
|
|
cpu: 20m
|
|
memory: 32Mi
|
|
limits:
|
|
cpu: 200m
|
|
memory: 256Mi
|
|
|
|
prometheus-node-exporter:
|
|
# DaemonSet; pinned to siriussec per the stack's scheduling rule. Only
|
|
# siriussec's node metrics are collected (kubelet/cAdvisor metrics for the
|
|
# other nodes still arrive via the kubelet ServiceMonitor).
|
|
nodeSelector:
|
|
kubernetes.io/hostname: siriussec
|
|
resources:
|
|
requests:
|
|
cpu: 20m
|
|
memory: 32Mi
|
|
limits:
|
|
cpu: 200m
|
|
memory: 128Mi
|