Initial monitoring impl

This commit is contained in:
Mathis 2024-01-18 20:43:36 +00:00
parent 99be722b27
commit e3d87d2393
4 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,16 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: grafana-ingress
namespace: monitoring
spec:
entryPoints:
- websecure
routes:
- match: Host(`monitoring.namesny.com`)
kind: Rule
middlewares:
- name: "auth-authelia@kubernetescrd"
services:
- name: kube-prometheus-stack-grafana
port: 80

View File

@ -0,0 +1,20 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
generatorOptions:
disableNameSuffixHash: true
namespace: monitoring
resources:
- namespace.yaml
- grafana-ingress.yaml
#generators:
#- ./secret-generator.yaml
helmCharts:
- name: kube-prometheus-stack
releaseName: kube-prometheus-stack
version: 55.11.0
repo: https://prometheus-community.github.io/helm-charts
namespace: monitoring
valuesFile: values.yaml

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: monitoring

View File

@ -0,0 +1,12 @@
defaultRules:
rules:
etcd: false
kubeControllerManager: true
kubeEtcd:
enabled: false
kubeControllerManager:
enabled: false
kubeScheduler:
enabled: false