mirror of
https://github.com/morten-olsen/homelab-apps.git
synced 2026-02-08 01:36:28 +01:00
add homelab operator
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
apiVersion: v2
|
||||
version: 1.0.0
|
||||
name: redis
|
||||
@@ -1,2 +0,0 @@
|
||||
globals:
|
||||
timezone: Europe/Amsterdam
|
||||
@@ -1,42 +0,0 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: kube-prometheus-stack
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: foundation
|
||||
source:
|
||||
repoURL: https://prometheus-community.github.io/helm-charts
|
||||
targetRevision: 79.11.0
|
||||
chart: kube-prometheus-stack
|
||||
helm:
|
||||
releaseName: kps
|
||||
values: |
|
||||
prometheusr:
|
||||
prometheusSpec:
|
||||
storageSpec:
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
storageClassName: "{{ .Values.globals.storageClass }}" # Replace with your StorageClass
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
alertmanager:
|
||||
name: alerts
|
||||
alertmanagerSpec:
|
||||
storage:
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
storageClassName: "{{ .Values.globals.storageClass }}" # Replace with your StorageClass
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: foundation
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ServerSideApply=true
|
||||
@@ -1,37 +0,0 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: loki-stack
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: foundation
|
||||
source:
|
||||
repoURL: https://grafana.github.io/helm-charts
|
||||
targetRevision: 2.10.3
|
||||
chart: loki-stack
|
||||
helm:
|
||||
releaseName: loki-stack
|
||||
values: |
|
||||
loki:
|
||||
serviceMonitor: # Enable Prometheus to scrape Loki's metrics
|
||||
enabled: true
|
||||
persistence:
|
||||
enabled: true
|
||||
storageClassName: "{{ .Values.globals.storageClass }}" # Replace with your StorageClass
|
||||
size: 50Gi # Adjust as needed
|
||||
|
||||
promtail:
|
||||
serviceMonitor: # Enable Prometheus to scrape Promtail's metrics
|
||||
enabled: true
|
||||
podLogs:
|
||||
enabled: true # Scrape all pod log
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: foundation
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ServerSideApply=true
|
||||
@@ -1,3 +1,3 @@
|
||||
apiVersion: v2
|
||||
version: 1.0.0
|
||||
name: certs
|
||||
name: operators
|
||||
25
foundation/charts/operators/templates/homelab.yaml
Normal file
25
foundation/charts/operators/templates/homelab.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: homelab-operator
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
destination:
|
||||
namespace: foundation
|
||||
server: https://kubernetes.default.svc
|
||||
project: foundation
|
||||
source:
|
||||
repoURL: https://github.com/morten-olsen/homelab-operator.git
|
||||
path: charts/operator
|
||||
targetRevision: main
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- ServerSideApply=true
|
||||
- ApplyOutOfSyncOnly=true
|
||||
- CreateNamespace=true
|
||||
@@ -1,3 +0,0 @@
|
||||
apiVersion: v2
|
||||
version: 1.0.0
|
||||
name: certs
|
||||
@@ -1,2 +0,0 @@
|
||||
globals:
|
||||
timezone: Europe/Amsterdam
|
||||
Reference in New Issue
Block a user