add very simplistic charts to easily deploy sm and vss
This commit is contained in:
7
charts/service-monitor/Chart.yaml
Normal file
7
charts/service-monitor/Chart.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: service-monitor
|
||||||
|
description: Supports deploying ServiceMonitor resources
|
||||||
|
|
||||||
|
type: application
|
||||||
|
version: 0.2.0
|
||||||
|
appVersion: "1.0"
|
||||||
18
charts/service-monitor/templates/servicemonitor.yaml
Normal file
18
charts/service-monitor/templates/servicemonitor.yaml
Normal 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 }}
|
||||||
3
charts/service-monitor/values.yaml
Normal file
3
charts/service-monitor/values.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
port:
|
||||||
|
instanceLabel:
|
||||||
|
interval: 30s
|
||||||
7
charts/vault-static-secret/Chart.yaml
Normal file
7
charts/vault-static-secret/Chart.yaml
Normal 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"
|
||||||
15
charts/vault-static-secret/templates/vss.yaml
Normal file
15
charts/vault-static-secret/templates/vss.yaml
Normal 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 }}
|
||||||
6
charts/vault-static-secret/values.yaml
Normal file
6
charts/vault-static-secret/values.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
mount: kubernetes
|
||||||
|
secrets: []
|
||||||
|
# - name: a-test-secret
|
||||||
|
# path: tools/a-test-secret
|
||||||
|
# (optional, default is 30s)
|
||||||
|
# refreshAfter: 30s
|
||||||
Reference in New Issue
Block a user