Skip to content

Commit

Permalink
feat: cleanup and add kps
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Fornaro <20387402+xUnholy@users.noreply.github.com>
  • Loading branch information
xunholy committed Jan 8, 2025
1 parent be482cc commit d63bc08
Show file tree
Hide file tree
Showing 25 changed files with 111 additions and 507 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ resources:
- node-feature-discovery-chart.yaml
- oauth2-proxy-chart.yaml
- openebs-charts.yaml
- openebs-cstor-chart.yaml
- openebs-jiva-chart.yaml
- openfaas-charts.yaml
- otel-charts.yaml
- postfinance-charts.yaml
Expand All @@ -55,7 +53,4 @@ resources:
- traefik-charts.yaml
- vernemq-charts.yaml
- vmware-charts.yaml
- weave-charts.yaml
- wge-charts.yaml
- wge-secret.enc.yaml
- xunholy-charts.yaml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,83 @@ spec:
interval: 2h
url: oci://registry-1.docker.io/bitnamicharts
timeout: 10m


apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: OCIRepository
metadata:
name: thanos
namespace: flux-system
spec:
interval: 10m
layerSelector:
mediaType: "application/vnd.cncf.helm.chart.content.v1.tar+gzip"
operation: copy
url: oci://registry-1.docker.io/bitnamicharts/thanos
ref:
semver: ">= 15.9.2"
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: thanos-test
namespace: observability
spec:
chartRef:
kind: OCIRepository
name: thanos
namespace: flux-system
driftDetection:
mode: enabled
install:
crds: CreateReplace
createNamespace: true
remediation:
retries: 3
replace: true
timeout: 10m
interval: 5m
maxHistory: 3
rollback:
cleanupOnFail: true
force: true
recreate: true
test:
enable: true
uninstall:
deletionPropagation: background
keepHistory: false
upgrade:
cleanupOnFail: true
crds: CreateReplace
remediation:
remediateLastFailure: true
retries: 3
strategy: rollback
values:
compactor:
enabled: false
image:
repository: thanosio/thanos
tag: v0.29.0
metrics:
enabled: true
objstoreConfig:
config:
bucket: thanos-raspbernetes-storage
type: GCS
query:
dnsDiscovery:
sidecarsNamespace: observability
sidecarsService: kube-prometheus-stack-thanos-discovery
podAntiAffinityPreset: hard
replicaCount: 3
replicaLabel:
- __replica__
queryFrontend:
enabled: false
serviceMonitor:
enabled: true
valuesFrom:
- kind: Secret
name: thanos-objstore-config
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ spec:
driftDetection:
mode: enabled
maxHistory: 3
# TODO: Reenable when cstor is stable
# dependsOn:
# - name: cstor
# namespace: openebs
values:
controllers:
home-assistant:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ spec:
resources:
requests:
storage: 2Gi
storageClassName: cstor-replica-raspberry-pi-pool
# TODO: Use the new storage class
# storageClassName: cstor-replica-raspberry-pi-pool
3 changes: 0 additions & 3 deletions kubernetes/namespaces/base/home-system/home-assistant/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@ spec:
kind: OCIRepository
name: cluster
dependsOn:
# TODO: Reenable when cstor is stable
# - name: cstor
# namespace: flux-system
- name: istiod
namespace: flux-system
2 changes: 0 additions & 2 deletions kubernetes/namespaces/base/home-system/jellyfin/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,5 @@ spec:
kind: OCIRepository
name: cluster
dependsOn:
- name: cstor
namespace: flux-system
- name: istiod
namespace: flux-system
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ spec:
resources:
requests:
storage: 1Gi
storageClassName: cstor-replica-raspberry-pi-pool
# TODO: Use the new storage class
# storageClassName: cstor-replica-raspberry-pi-pool
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ spec:
mode: enabled
maxHistory: 3
dependsOn:
- name: thanos
namespace: observability
# - name: thanos
# namespace: observability
- name: grafana
namespace: observability
timeout: 30m
Expand All @@ -73,10 +73,10 @@ spec:
limits:
memory: 50Mi
prometheus:
thanosService:
enabled: true
thanosServiceMonitor:
enabled: true
# thanosService:
# enabled: true
# thanosServiceMonitor:
# enabled: true
## Settings affecting prometheusSpec
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
prometheusSpec:
Expand All @@ -103,18 +103,18 @@ spec:
cpu: 1000m
limits:
memory: 6294M
# Thanos chart will generate the secret: thanos
thanos:
objectStorageConfig:
name: thanos-objstore-secret
key: objstore.yml
# Resources allocated based on Robusta KRR output
resources:
requests:
memory: 128Mi
cpu: 10m
limits:
memory: 160Mi
# # Thanos chart will generate the secret: thanos
# thanos:
# objectStorageConfig:
# name: thanos-objstore-secret
# key: objstore.yml
# # Resources allocated based on Robusta KRR output
# resources:
# requests:
# memory: 128Mi
# cpu: 10m
# limits:
# memory: 160Mi
ruleSelectorNilUsesHelmValues: false
serviceMonitorSelectorNilUsesHelmValues: false
podMonitorSelectorNilUsesHelmValues: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ spec:
enabled: false
read:
replicas: 1
persistence:
storageClass: cstor-replica-raspberry-pi-pool
# persistence:
# storageClass: cstor-replica-raspberry-pi-pool
write:
replicas: 1
persistence:
storageClass: cstor-replica-raspberry-pi-pool
# persistence:
# storageClass: cstor-replica-raspberry-pi-pool
backend:
replicas: 1
persistence:
storageClass: cstor-replica-raspberry-pi-pool
# persistence:
# storageClass: cstor-replica-raspberry-pi-pool
monitoring:
dashboards:
annotations:
Expand Down
Loading

0 comments on commit d63bc08

Please sign in to comment.