Merge pull request #99 from 3dwardch3ng/app/prometheus-operator

App/prometheus operator
This commit is contained in:
2024-06-12 16:37:06 +10:00
committed by GitHub
11 changed files with 85 additions and 8 deletions

View File

@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- prometheus-operator.yaml

View File

@@ -0,0 +1,14 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: prometheus-operator
namespace: flux-system
spec:
interval: 1h
targetNamespace: cert-manager
path: ./kubernetes/templates/apps/prometheus-operator
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system

View File

@@ -0,0 +1,59 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: prometheus-operator
namespace: prometheus-operator
spec:
releaseName: prometheus-operator
chart:
spec:
chart: prometheus-operator
sourceRef:
kind: HelmRepository
name: truecharts
namespace: flux-system
interval: 5m
install:
remediation:
retries: 3
values:
service:
main:
enabled: true
ports:
main:
enabled: true
workload:
main:
enabled: true
portal:
open:
enabled: true
operator:
register: true
kps:
## Install Prometheus Operator CRDs
##
crds:
enabled: true
## Manages Prometheus and Alertmanager components
##
prometheusOperator:
enabled: true
####
##
## Everything down here, explicitly disables everything BUT the operator itself
##
####
## dont Deploy a Prometheus instance
##
prometheus:
enabled: true

View File

@@ -4,6 +4,6 @@ metadata:
name: bitnami
namespace: flux-system
spec:
interval: 1h
interval: 6h
type: oci
url: oci://registry-1.docker.io/bitnamicharts

View File

@@ -4,6 +4,6 @@ metadata:
name: bjw-s
namespace: flux-system
spec:
interval: 1h
interval: 6h
type: oci
url: oci://ghcr.io/bjw-s/helm

View File

@@ -4,5 +4,5 @@ metadata:
name: external-dns
namespace: flux-system
spec:
interval: 1h
interval: 6h
url: https://kubernetes-sigs.github.io/external-dns/

View File

@@ -4,6 +4,6 @@ metadata:
name: gabe565
namespace: flux-system
spec:
interval: 1h
interval: 6h
type: oci
url: oci://ghcr.io/gabe565/charts

View File

@@ -4,7 +4,7 @@ metadata:
name: home-cluster-ops-secrets
namespace: flux-system
spec:
interval: 5m0s
interval: 6h
ref:
branch: main
secretRef:

View File

@@ -4,5 +4,5 @@ metadata:
name: prometheus-community
namespace: flux-system
spec:
interval: 1h
interval: 6h
url: https://prometheus-community.github.io/helm-charts

View File

@@ -4,6 +4,6 @@ metadata:
name: truecharts
namespace: flux-system
spec:
interval: 1h
interval: 6h
type: oci
url: oci://tccr.io/truecharts

View File

@@ -5,7 +5,7 @@ metadata:
name: repositories
namespace: flux-system
spec:
interval: 5m
interval: 6h
path: ./kubernetes/infrastructure/repositories/repos
prune: true
sourceRef: