Add kustomization file to monitoring

This commit is contained in:
Daniel Cosme
2026-05-01 18:46:20 -04:00
parent d222525279
commit 66b97f6215
4 changed files with 20 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ metadata:
name: linking name: linking
namespace: linkding namespace: linkding
resources: resources:
- namespace.yaml
- srv.yaml - srv.yaml
- pvc.yaml - pvc.yaml
- deployment.yaml - deployment.yaml
- namespace.yaml

View File

@@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
metadata:
name: monitoring
namespace: monitoring
resources:
- kube-prometheus-stack.yaml
- release.yaml
- namespace.yaml

View File

@@ -4,7 +4,7 @@ metadata:
name: truenas-csi name: truenas-csi
namespace: truenas-csi namespace: truenas-csi
resources: resources:
- iscsi-storage-class.yaml
- namespace.yaml - namespace.yaml
- config.yaml - config.yaml
- nfs-storage-class.yaml - nfs-storage-class.yaml
- iscsi-storage-class.yaml

View File

@@ -23,13 +23,15 @@ func init() {
} }
func Stack() stack.Stack { func Stack() stack.Stack {
s := stack.NewStack("monitoring", map[string]any{ kz := kube.NewKuztomizedStack(
meta,
map[string]any{
"namespace": Namespace, "namespace": Namespace,
"kube-prometheus-stack": PrometheusHelmSource(), "kube-prometheus-stack": PrometheusHelmSource(),
"release": PrometheusRelease(), "release": PrometheusRelease(),
}) },
)
return s return kz.Stack("monitoring")
} }
func PrometheusHelmSource() source.HelmRepository { func PrometheusHelmSource() source.HelmRepository {