Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Fix helm securityContext (#640)

amplsc7fd631f86a5
diff --git a/deploy/helm/pulse/Chart.yaml b/deploy/helm/pulse/Chart.yaml
index 2ff6913973..bb6362841c 100644
--- a/deploy/helm/pulse/Chart.yaml
+++ b/deploy/helm/pulse/Chart.yaml
@@ -2,8 +2,8 @@ apiVersion: v2
name: pulse
description: Helm chart for deploying the Pulse hub and optional Docker monitoring agent.
type: application
-version: 4.26.0
-appVersion: "4.26.0"
+version: 4.26.1
+appVersion: "4.26.1"
icon: https://raw.githubusercontent.com/rcourtman/Pulse/main/docs/images/pulse-logo.svg
keywords:
- monitoring
diff --git a/deploy/helm/pulse/templates/deployment.yaml b/deploy/helm/pulse/templates/deployment.yaml
index 7e2d2abfe3..8a1a648148 100644
--- a/deploy/helm/pulse/templates/deployment.yaml
+++ b/deploy/helm/pulse/templates/deployment.yaml
@@ -23,10 +23,14 @@ spec:
{{- end }}
spec:
serviceAccountName: {{ include "pulse.serviceAccountName" . }}
- {{- $podSecurityContext := merge (dict) .Values.podSecurityContext .Values.server.podSecurityContext }}
+ {{- $podSecurityContext :=
+ ternary
+ (merge (dict) .Values.podSecurityContext .Values.server.podSecurityContext)
+ .Values.server.podSecurityContext
+ .Values.podSecurityContext.enabled }}
{{- if $podSecurityContext }}
securityContext:
- {{- toYaml $podSecurityContext | nindent 8 }}
+ {{- omit $podSecurityContext "enabled" | toYaml | nindent 8 }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
@@ -39,10 +43,14 @@ spec:
ports:
- name: http
containerPort: 7655
- {{- $containerSecurityContext := merge (dict) .Values.securityContext .Values.server.securityContext }}
+ {{- $containerSecurityContext :=
+ ternary
+ (merge (dict) .Values.containerSecurityContext .Values.server.securityContext)
+ .Values.server.securityContext
+ .Values.containerSecurityContext.enabled }}
{{- if $containerSecurityContext }}
securityContext:
- {{- toYaml $containerSecurityContext | nindent 12 }}
+ {{- omit $containerSecurityContext "enabled" | toYaml | nindent 12 }}
{{- end }}
{{- $envList := list }}
{{- range .Values.server.env }}
diff --git a/deploy/helm/pulse/values.yaml b/deploy/helm/pulse/values.yaml
index 8a501062fc..9f62371d5b 100644
--- a/deploy/helm/pulse/values.yaml
+++ b/deploy/helm/pulse/values.yaml
@@ -22,13 +22,16 @@ serviceAccount:
podAnnotations: {}
podLabels: {}
-podSecurityContext: {}
+podSecurityContext:
+ enabled: true
+ fsGroup: 1000
-securityContext:
+containerSecurityContext:
+ enabled: true
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
- fsGroup: 1000
+
service:
type: ClusterIP