Skip to content

Commit

Permalink
traefik/longhorn: improve targetRevision, traefik: reduce replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
kreatoo committed Dec 23, 2024
1 parent 5d10a8e commit be43730
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 3 deletions.
2 changes: 1 addition & 1 deletion longhorn/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
sources:
- chart: longhorn
repoURL: https://charts.longhorn.io/
targetRevision: v1.7.2
targetRevision: v1.*
helm:
values: |
preUpgradeChecker:
Expand Down
5 changes: 5 additions & 0 deletions prometheus/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mariadb-root-password=test
mariadb-replication-password=test
mariadb-username=test
mariadb-password=test
redis-password=test
21 changes: 21 additions & 0 deletions prometheus/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: prometheus
namespace: argocd
spec:
destination:
namespace: prometheus
server: 'https://kubernetes.default.svc'
source:
repoURL: 'https://prometheus-community.github.io/helm-charts'
targetRevision: 66.*
chart: kube-prometheus-stack
sources: []
project: default
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
27 changes: 27 additions & 0 deletions prometheus/ingressroute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: grafana
namespace: prometheus
annotations:
cert-manager.io/cluster-issuer: mainissuer

spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`grafana.internal.kreato.dev`)
priority: 10
services:
- kind: Service
name: prometheus-grafana
namespace: prometheus
passHostHeader: true
port: 80
scheme: http
tls:
secretName: wildcard-kreato.dev-tls

domains:
- main: grafana.internal.kreato.dev
14 changes: 14 additions & 0 deletions prometheus/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
resources:
- namespace.yaml
- app.yaml
- ingressroute.yaml

generatorOptions:
disableNameSuffixHash: true

secretGenerator:
- name: nextcloud-db
namespace: nextcloud
envs:
- .env

4 changes: 2 additions & 2 deletions traefik/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ spec:
server: 'https://kubernetes.default.svc'
source:
repoURL: 'https://traefik.github.io/charts'
targetRevision: 3*.*
targetRevision: '*'
chart: traefik
helm:
values: |
deployment:
replicas: 3
replicas: 2
ports:
web:
Expand Down

0 comments on commit be43730

Please sign in to comment.