feat(monitoring): Update configuration for Kustomize
Add Kustomize support, and all connectors necessary for different supportes apps
This commit is contained in:
parent
8060077f0a
commit
c7b03a2a1f
@ -6,11 +6,9 @@ metadata:
|
|||||||
name: loki-grafana
|
name: loki-grafana
|
||||||
namespace: monitoring
|
namespace: monitoring
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-6.24.1
|
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: loki
|
app.kubernetes.io/instance: loki
|
||||||
app.kubernetes.io/version: "8.3.5"
|
app.kubernetes.io/version: "8.3.5"
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
revisionHistoryLimit: 10
|
revisionHistoryLimit: 10
|
||||||
@ -31,7 +29,6 @@ spec:
|
|||||||
checksum/sc-dashboard-provider-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
|
checksum/sc-dashboard-provider-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
|
||||||
checksum/secret: a8dec7c19ea590ef9d5a0075b8ed84bdf3a82ce47d9c86f5caada045396ab392
|
checksum/secret: a8dec7c19ea590ef9d5a0075b8ed84bdf3a82ce47d9c86f5caada045396ab392
|
||||||
spec:
|
spec:
|
||||||
|
|
||||||
serviceAccountName: loki-grafana
|
serviceAccountName: loki-grafana
|
||||||
automountServiceAccountToken: true
|
automountServiceAccountToken: true
|
||||||
securityContext:
|
securityContext:
|
||||||
@ -39,7 +36,6 @@ spec:
|
|||||||
runAsGroup: 472
|
runAsGroup: 472
|
||||||
runAsUser: 472
|
runAsUser: 472
|
||||||
enableServiceLinks: true
|
enableServiceLinks: true
|
||||||
nodeName: slave-1
|
|
||||||
containers:
|
containers:
|
||||||
- name: grafana-sc-datasources
|
- name: grafana-sc-datasources
|
||||||
image: "quay.io/kiwigrid/k8s-sidecar:1.15.6"
|
image: "quay.io/kiwigrid/k8s-sidecar:1.15.6"
|
||||||
|
15
monitoring/grafana/kustomization.yaml
Normal file
15
monitoring/grafana/kustomization.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- clusterrolebinding.yaml
|
||||||
|
- clusterrole.yaml
|
||||||
|
- configmap.yaml
|
||||||
|
- datasources.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- ingress.yaml
|
||||||
|
- podsecuritypolicy.yaml
|
||||||
|
- rolebinding.yaml
|
||||||
|
- role.yaml
|
||||||
|
- serviceaccount.yaml
|
||||||
|
- service.yaml
|
@ -6,7 +6,6 @@ metadata:
|
|||||||
name: loki-grafana
|
name: loki-grafana
|
||||||
namespace: monitoring
|
namespace: monitoring
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-6.24.1
|
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: loki
|
app.kubernetes.io/instance: loki
|
||||||
app.kubernetes.io/version: "8.3.5"
|
app.kubernetes.io/version: "8.3.5"
|
||||||
@ -15,7 +14,7 @@ spec:
|
|||||||
- name: service
|
- name: service
|
||||||
port: 80
|
port: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 3000
|
targetPort: grafana
|
||||||
|
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
|
9
monitoring/kustomization.yaml
Normal file
9
monitoring/kustomization.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- ./promtail
|
||||||
|
- ./loki
|
||||||
|
- ./prometheus
|
||||||
|
- ./grafana
|
12
monitoring/loki/kustomization.yaml
Normal file
12
monitoring/loki/kustomization.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- rolebinding.yaml
|
||||||
|
- role.yaml
|
||||||
|
- secret.yaml
|
||||||
|
- serviceaccount.yaml
|
||||||
|
- service-headless.yaml
|
||||||
|
- service-memberlist.yaml
|
||||||
|
- service.yaml
|
||||||
|
- statefulset.yaml
|
@ -41,7 +41,6 @@ spec:
|
|||||||
runAsUser: 10001
|
runAsUser: 10001
|
||||||
initContainers:
|
initContainers:
|
||||||
[]
|
[]
|
||||||
nodeName: slave-1
|
|
||||||
containers:
|
containers:
|
||||||
- name: loki
|
- name: loki
|
||||||
image: "grafana/loki:2.6.1"
|
image: "grafana/loki:2.6.1"
|
||||||
|
@ -65,10 +65,6 @@ data:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- gitlab-svc.gitlab.svc.cluster.local:9236
|
- gitlab-svc.gitlab.svc.cluster.local:9236
|
||||||
- job_name: 'gitlab-nginx_metrics'
|
|
||||||
static_configs:
|
|
||||||
- targets:
|
|
||||||
- gitlab-svc.gitlab.svc.cluster.local:8060
|
|
||||||
- job_name: 'gitlab-rails_metrics'
|
- job_name: 'gitlab-rails_metrics'
|
||||||
metrics_path: "/-/metrics"
|
metrics_path: "/-/metrics"
|
||||||
scheme: https
|
scheme: https
|
||||||
@ -79,7 +75,25 @@ data:
|
|||||||
scrape_interval: 15s
|
scrape_interval: 15s
|
||||||
metrics_path: "/_synapse/metrics"
|
metrics_path: "/_synapse/metrics"
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["synapse-svc.synapse.svc.cluster.local:9000"]
|
- targets:
|
||||||
|
- synapse-svc.synapse.svc.cluster.local:9000
|
||||||
|
- job_name: 'sonarr'
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- sonarr-svc.torrent.svc.cluster.local:9707
|
||||||
|
- job_name: 'radarr'
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- radarr-svc.torrent.svc.cluster.local:9707
|
||||||
|
- job_name: 'prowlarr'
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- prowlarr-svc.torrent.svc.cluster.local:9707
|
||||||
|
- job_name: 'jellyfin'
|
||||||
|
metrics_path: "/metrics"
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- jellyfin-svc.streaming.svc.cluster.local:80
|
||||||
- job_name: 'node-exporter'
|
- job_name: 'node-exporter'
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
- role: endpoints
|
- role: endpoints
|
||||||
@ -87,6 +101,11 @@ data:
|
|||||||
- source_labels: [__meta_kubernetes_endpoints_name]
|
- source_labels: [__meta_kubernetes_endpoints_name]
|
||||||
regex: 'node-exporter'
|
regex: 'node-exporter'
|
||||||
action: keep
|
action: keep
|
||||||
|
- job_name: 'argocd'
|
||||||
|
metrics_path: "/metrics"
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- argocd-metrics.argocd.svc.cluster.local:8082
|
||||||
|
|
||||||
- job_name: 'kubernetes-apiservers'
|
- job_name: 'kubernetes-apiservers'
|
||||||
|
|
@ -43,4 +43,3 @@ spec:
|
|||||||
name: prometheus-server-conf
|
name: prometheus-server-conf
|
||||||
- name: prometheus-storage-volume
|
- name: prometheus-storage-volume
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
nodeName: slave-1
|
|
||||||
|
8
monitoring/prometheus/kustomization.yaml
Normal file
8
monitoring/prometheus/kustomization.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- clusterrole.yaml
|
||||||
|
- configmap.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
9
monitoring/promtail/kustomization.yaml
Normal file
9
monitoring/promtail/kustomization.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- clusterrolebinding.yaml
|
||||||
|
- clusterrole.yaml
|
||||||
|
- daemonset.yaml
|
||||||
|
- secret.yaml
|
||||||
|
- serviceaccount.yaml
|
Loading…
Reference in New Issue
Block a user