Add kustomization file to monitoring
This commit is contained in:
@@ -4,7 +4,7 @@ metadata:
|
||||
name: linking
|
||||
namespace: linkding
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- srv.yaml
|
||||
- pvc.yaml
|
||||
- deployment.yaml
|
||||
- namespace.yaml
|
||||
|
||||
9
infrastructure/hydra/monitoring/kustomization.yaml
Normal file
9
infrastructure/hydra/monitoring/kustomization.yaml
Normal 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
|
||||
@@ -4,7 +4,7 @@ metadata:
|
||||
name: truenas-csi
|
||||
namespace: truenas-csi
|
||||
resources:
|
||||
- iscsi-storage-class.yaml
|
||||
- namespace.yaml
|
||||
- config.yaml
|
||||
- nfs-storage-class.yaml
|
||||
- iscsi-storage-class.yaml
|
||||
|
||||
@@ -23,13 +23,15 @@ func init() {
|
||||
}
|
||||
|
||||
func Stack() stack.Stack {
|
||||
s := stack.NewStack("monitoring", map[string]any{
|
||||
"namespace": Namespace,
|
||||
"kube-prometheus-stack": PrometheusHelmSource(),
|
||||
"release": PrometheusRelease(),
|
||||
})
|
||||
|
||||
return s
|
||||
kz := kube.NewKuztomizedStack(
|
||||
meta,
|
||||
map[string]any{
|
||||
"namespace": Namespace,
|
||||
"kube-prometheus-stack": PrometheusHelmSource(),
|
||||
"release": PrometheusRelease(),
|
||||
},
|
||||
)
|
||||
return kz.Stack("monitoring")
|
||||
}
|
||||
|
||||
func PrometheusHelmSource() source.HelmRepository {
|
||||
|
||||
Reference in New Issue
Block a user