add very simplistic charts to easily deploy sm and vss

This commit is contained in:
2025-05-16 22:07:14 +02:00
parent e117238c0d
commit 51bf1fa110
6 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
apiVersion: v2
name: service-monitor
description: Supports deploying ServiceMonitor resources
type: application
version: 0.2.0
appVersion: "1.0"

View File

@@ -0,0 +1,18 @@
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
name: {{ .Release.Name }}-servicemonitor
release: {{ .Release.Namespace }}
name: {{ .Release.Name }}-servicemonitor
spec:
endpoints:
- port: {{ .Values.port }}
interval: {{ .Values.interval }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
selector:
matchLabels:
app.kubernetes.io/instance: {{ .Values.instanceLabel }}

View File

@@ -0,0 +1,3 @@
port:
instanceLabel:
interval: 30s

View File

@@ -0,0 +1,7 @@
apiVersion: v2
name: vault-static-secret
description: Supports deploying VaultStaticSecret resources
type: application
version: 0.1.0
appVersion: "1.0"

View File

@@ -0,0 +1,15 @@
{{- range .Values.secrets }}
---
apiVersion: secrets.hashicorp.com/v1beta1
kind: VaultStaticSecret
metadata:
name: {{ .name }}
spec:
type: kv-v2
mount: {{ $.Values.mount }}
path: {{ .path }}
destination:
name: {{ .name }}
create: true
refreshAfter: {{ .refreshAfter | default "30s" }}
{{- end }}

View File

@@ -0,0 +1,6 @@
mount: kubernetes
secrets: []
# - name: a-test-secret
# path: tools/a-test-secret
# (optional, default is 30s)
# refreshAfter: 30s