Add kustomization file to monitoring
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
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
|
|
||||||
|
|||||||
@@ -23,13 +23,15 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Stack() stack.Stack {
|
func Stack() stack.Stack {
|
||||||
s := stack.NewStack("monitoring", map[string]any{
|
kz := kube.NewKuztomizedStack(
|
||||||
"namespace": Namespace,
|
meta,
|
||||||
"kube-prometheus-stack": PrometheusHelmSource(),
|
map[string]any{
|
||||||
"release": PrometheusRelease(),
|
"namespace": Namespace,
|
||||||
})
|
"kube-prometheus-stack": PrometheusHelmSource(),
|
||||||
|
"release": PrometheusRelease(),
|
||||||
return s
|
},
|
||||||
|
)
|
||||||
|
return kz.Stack("monitoring")
|
||||||
}
|
}
|
||||||
|
|
||||||
func PrometheusHelmSource() source.HelmRepository {
|
func PrometheusHelmSource() source.HelmRepository {
|
||||||
|
|||||||
Reference in New Issue
Block a user