mirror of
https://github.com/gwg313/homelab-gitops.git
synced 2026-06-05 21:51:00 +00:00
add kube-prometheus-stack
Signed-off-by: gwg313 <gwg313@pm.me> remove vals Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
231e6b3319
commit
198733316a
8 changed files with 44 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ resources:
|
||||||
- tetragon-policies.yaml
|
- tetragon-policies.yaml
|
||||||
- sealed-secrets.yaml
|
- sealed-secrets.yaml
|
||||||
- cert-manager.yaml
|
- cert-manager.yaml
|
||||||
|
- monitoring.yaml
|
||||||
- nfs-subdir.yaml
|
- nfs-subdir.yaml
|
||||||
- forgejo.yaml
|
- forgejo.yaml
|
||||||
- navidrome.yaml
|
- navidrome.yaml
|
||||||
|
|
|
||||||
|
|
@ -21,3 +21,4 @@ spec:
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=false
|
- CreateNamespace=false
|
||||||
- ServerSideApply=true
|
- ServerSideApply=true
|
||||||
|
- Replace=true # <-- Policies have immutable fields so this helps deal with updates
|
||||||
|
|
|
||||||
23
management/platform-apps/monitoring.yaml
Normal file
23
management/platform-apps/monitoring.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: monitoring
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argoproj.io/sync-wave: "-5"
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://github.com/gwg313/homelab-gitops.git
|
||||||
|
targetRevision: main
|
||||||
|
path: platform/monitoring
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: monitoring
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
|
@ -29,6 +29,7 @@ spec:
|
||||||
- cert-manager
|
- cert-manager
|
||||||
- sealed-secrets
|
- sealed-secrets
|
||||||
- nfs-subdir-external-provisioner
|
- nfs-subdir-external-provisioner
|
||||||
|
- monitoring
|
||||||
generate:
|
generate:
|
||||||
apiVersion: cilium.io/v2
|
apiVersion: cilium.io/v2
|
||||||
kind: CiliumNetworkPolicy
|
kind: CiliumNetworkPolicy
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ spec:
|
||||||
- cert-manager
|
- cert-manager
|
||||||
- sealed-secrets
|
- sealed-secrets
|
||||||
- nfs-subdir-external-provisioner
|
- nfs-subdir-external-provisioner
|
||||||
|
- monitoring
|
||||||
validate:
|
validate:
|
||||||
message: "Resource discipline violation: Containers must declare cpu/memory requests and limits."
|
message: "Resource discipline violation: Containers must declare cpu/memory requests and limits."
|
||||||
pattern:
|
pattern:
|
||||||
|
|
|
||||||
9
platform/monitoring/Chart.yaml
Normal file
9
platform/monitoring/Chart.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
apiVersion: v2
|
||||||
|
name: cluster-monitoring
|
||||||
|
description: chart for cluster monitoring stack
|
||||||
|
type: application
|
||||||
|
version: 1.0.0
|
||||||
|
dependencies:
|
||||||
|
- name: kube-prometheus-stack
|
||||||
|
version: "85.1.3"
|
||||||
|
repository: "https://prometheus-community.github.io/helm-charts"
|
||||||
8
platform/monitoring/templates/namespace.yaml
Normal file
8
platform/monitoring/templates/namespace.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: monitoring
|
||||||
|
labels:
|
||||||
|
pod-security.kubernetes.io/enforce: privileged
|
||||||
|
pod-security.kubernetes.io/audit: privileged
|
||||||
|
pod-security.kubernetes.io/warn: privileged
|
||||||
0
platform/monitoring/values.yaml
Normal file
0
platform/monitoring/values.yaml
Normal file
Loading…
Add table
Add a link
Reference in a new issue