diff --git a/longhorn/app.yaml b/longhorn/app.yaml index 609d82b..a1ff0bb 100644 --- a/longhorn/app.yaml +++ b/longhorn/app.yaml @@ -11,7 +11,7 @@ spec: sources: - chart: longhorn repoURL: https://charts.longhorn.io/ - targetRevision: v1.7.2 + targetRevision: v1.* helm: values: | preUpgradeChecker: diff --git a/prometheus/.env.example b/prometheus/.env.example new file mode 100644 index 0000000..46d4cbd --- /dev/null +++ b/prometheus/.env.example @@ -0,0 +1,5 @@ +mariadb-root-password=test +mariadb-replication-password=test +mariadb-username=test +mariadb-password=test +redis-password=test diff --git a/prometheus/app.yaml b/prometheus/app.yaml new file mode 100644 index 0000000..15795fb --- /dev/null +++ b/prometheus/app.yaml @@ -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 diff --git a/prometheus/ingressroute.yaml b/prometheus/ingressroute.yaml new file mode 100644 index 0000000..268cf9f --- /dev/null +++ b/prometheus/ingressroute.yaml @@ -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 diff --git a/prometheus/kustomization.yaml b/prometheus/kustomization.yaml new file mode 100644 index 0000000..b87114b --- /dev/null +++ b/prometheus/kustomization.yaml @@ -0,0 +1,14 @@ +resources: + - namespace.yaml + - app.yaml + - ingressroute.yaml + +generatorOptions: + disableNameSuffixHash: true + +secretGenerator: + - name: nextcloud-db + namespace: nextcloud + envs: + - .env + diff --git a/traefik/app.yaml b/traefik/app.yaml index fdf10f7..d3a2278 100644 --- a/traefik/app.yaml +++ b/traefik/app.yaml @@ -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: