fix(smartctl-exporter): use priv ns

This commit is contained in:
JJGadgets
2024-02-22 07:55:05 +08:00
parent 57eaa0e968
commit 25368df4ac
4 changed files with 14 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: &app smartctl-exporter
namespace: monitoring
namespace: *app
spec:
interval: 5m
chart:

View File

@@ -5,10 +5,10 @@ metadata:
name: 1-core-monitoring-smartctl-exporter-app
namespace: flux-system
labels: &l
app.kubernetes.io/name: "smartctl-exporter"
app.kubernetes.io/name: &app "smartctl-exporter"
spec:
commonMetadata:
labels: *l
path: ./kube/deploy/core/monitoring/smartctl-exporter/app
targetNamespace: "monitoring"
targetNamespace: *app
dependsOn: []

View File

@@ -2,4 +2,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ns.yaml
- ks.yaml

View File

@@ -0,0 +1,10 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: smartctl-exporter
labels:
kustomize.toolkit.fluxcd.io/prune: disabled
pod-security.kubernetes.io/enforce: &ps privileged
pod-security.kubernetes.io/audit: *ps
pod-security.kubernetes.io/warn: *ps