diff --git a/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml b/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml index 64781c2..37a581a 100644 --- a/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml +++ b/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml @@ -1,4 +1,4 @@ -apiVersion: helm.toolkit.fluxcd.io/v2beta2 +apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease metadata: name: kube-prometheus-stack @@ -68,18 +68,15 @@ spec: storageSpec: volumeClaimTemplate: spec: - storageClassName: longhorn - selector: - matchLabels: - app.kubernetes.io/name: kube-prometheus-stack-pv + storageClassName: openebs-hostpath resources: requests: - storage: 15Gi + storage: 40Gi kubeControllerManager: enabled: true endpoints: - - 192.168.87.250 + - 192.168.10.40 service: enabled: true port: 10257 @@ -92,7 +89,7 @@ spec: kubeScheduler: enabled: true endpoints: - - 192.168.87.250 + - 192.168.10.40 service: enabled: true port: 10259 @@ -105,7 +102,7 @@ spec: kubeProxy: enabled: true endpoints: - - 192.168.87.250 + - 192.168.10.40 service: enabled: true port: 10249 diff --git a/cluster/apps/monitoring/kube-prometheus-stack/kustomization.yaml b/cluster/apps/monitoring/kube-prometheus-stack/kustomization.yaml index d616c15..ebc0bda 100644 --- a/cluster/apps/monitoring/kube-prometheus-stack/kustomization.yaml +++ b/cluster/apps/monitoring/kube-prometheus-stack/kustomization.yaml @@ -1,7 +1,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- ./prom-pv.yaml - ./helm-repository.yaml - ./helm-release.yaml - ./alertmanager-config.yaml \ No newline at end of file diff --git a/cluster/apps/monitoring/kube-prometheus-stack/prom-pv.yaml b/cluster/apps/monitoring/kube-prometheus-stack/prom-pv.yaml deleted file mode 100644 index 58cf94c..0000000 --- a/cluster/apps/monitoring/kube-prometheus-stack/prom-pv.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: PersistentVolume -metadata: - name: prometheus-pv - namespace: monitoring - labels: - app.kubernetes.io/name: kube-prometheus-stack-pv -spec: - storageClassName: hostpath - persistentVolumeReclaimPolicy: Retain - capacity: - storage: 30Gi - accessModes: - - ReadWriteOnce - hostPath: - path: "/mnt/MainPool/Kubernetes/prometheus" \ No newline at end of file