Compare commits
7 Commits
user-monit
...
user-monit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3fc8e332ea | ||
|
|
c58fbd2334 | ||
|
|
4df31ddaf6 | ||
|
|
9b00f330b3 | ||
|
|
7bf01de75f | ||
|
|
9687f504e1 | ||
|
|
8e43add4da |
24
apps/user-demo.yaml
Normal file
24
apps/user-demo.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: <user>-demo
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: <user>
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
repoURL: 'https://gitea.training.cluster.acend.ch/<user>/prometheus-training-lab-setup'
|
||||
path: charts/user-monitoring-demo/
|
||||
targetRevision: main
|
||||
helm:
|
||||
values: |
|
||||
user: <user>
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- Replace=true
|
||||
42
apps/user-prom-stack.yaml
Normal file
42
apps/user-prom-stack.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: <user>-prom-stack
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: <user>-monitoring
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
repoURL: 'https://gitea.training.cluster.acend.ch/<user>/prometheus-training-lab-setup'
|
||||
path: charts/user-monitoring/
|
||||
targetRevision: main
|
||||
helm:
|
||||
values: |
|
||||
user: <user>
|
||||
# alertmanager
|
||||
alertmanager:
|
||||
enabled: false
|
||||
# grafana
|
||||
grafana:
|
||||
enabled: false
|
||||
# prometheus
|
||||
prometheus:
|
||||
enabled: false
|
||||
# pushgateway
|
||||
pushgateway:
|
||||
enabled: false
|
||||
# thanos-ruler
|
||||
ruler:
|
||||
enabled: false
|
||||
# thanos-query
|
||||
query:
|
||||
enabled: false
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- Replace=true
|
||||
@@ -15,7 +15,7 @@ type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 0.1.0
|
||||
version: 0.1.1
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: prometheus-{{ .Values.user }}
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources:
|
||||
- services
|
||||
- endpoints
|
||||
- pods
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources:
|
||||
- configmaps
|
||||
verbs: ["get"]
|
||||
- apiGroups:
|
||||
- networking.k8s.io
|
||||
resources:
|
||||
- ingresses
|
||||
verbs: ["get", "list", "watch"]
|
||||
@@ -1 +1 @@
|
||||
user: user1
|
||||
user: userX # Replace me
|
||||
@@ -15,7 +15,7 @@ type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 0.2.1
|
||||
version: 0.2.5
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
|
||||
@@ -18,4 +18,7 @@ stringData:
|
||||
type: prometheus
|
||||
url: http://thanos-query.{{ .Values.user }}-monitoring.svc.cluster.local:10902
|
||||
version: 1
|
||||
{{- if .Values.grafana.datasources }}
|
||||
{{- toYaml .Values.grafana.datasources | nindent 6 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -2,6 +2,7 @@ apiVersion: v1
|
||||
data:
|
||||
admin: JDEkSzNRZUlsOHAkZVZZb1h2RERNWk40b3RJT2tBc3AwLw== # $(openssl passwd -1 admin)
|
||||
{{ .Values.user }}: JDEkSzNRZUlsOHAkZVZZb1h2RERNWk40b3RJT2tBc3AwLw== # $(openssl passwd -1 admin)
|
||||
grafana_user: {{ .Values.user }}
|
||||
kind: Secret
|
||||
metadata:
|
||||
labels:
|
||||
@@ -1,25 +1,31 @@
|
||||
user: user1
|
||||
user: userX # Replace me
|
||||
|
||||
# alertmanager
|
||||
alertmanager:
|
||||
enabled: true
|
||||
enabled: false
|
||||
|
||||
# grafana
|
||||
grafana:
|
||||
datasources:
|
||||
- name: prometheus
|
||||
access: proxy
|
||||
editable: false
|
||||
type: prometheus
|
||||
url: http://prometheus-operated.user4-monitoring.svc.cluster.local:9090
|
||||
enabled: true
|
||||
|
||||
# prometheus
|
||||
prometheus:
|
||||
enabled: true
|
||||
enabled: false
|
||||
|
||||
# pushgeitwey
|
||||
# pushgateway
|
||||
pushgateway:
|
||||
enabled: true
|
||||
enabled: false
|
||||
|
||||
# thanos-ruler
|
||||
ruler:
|
||||
enabled: true
|
||||
enabled: false
|
||||
|
||||
# thanos-query
|
||||
query:
|
||||
enabled: true
|
||||
enabled: false
|
||||
21
user-umbrella.yaml
Normal file
21
user-umbrella.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: <user>-umbrella
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: argocd
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
repoURL: 'https://gitea.training.cluster.acend.ch/<user>/prometheus-training-lab-setup'
|
||||
path: apps/
|
||||
targetRevision: main
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- Replace=true
|
||||
Reference in New Issue
Block a user