Commit 4a12720d authored by Zivi's avatar Zivi

added grafana/prom

parent c38eea8e
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-grafana-datasource
namespace: monitoring
labels:
grafana_datasource: '1'
data:
datasource.yaml: |-
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
orgId: 1
url: http://prometheus-server.monitoring.svc.cluster.local
---
# Source: resolver/templates/deployment.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: resolver-elasticsearch
annotations:
kompose.cmd: kompose convert
kompose.version: 1.13.0 (84fa826)
labels:
app.kubernetes.io/name: resolver-elasticsearch
helm.sh/chart: resolver
app.kubernetes.io/instance: resolver-elasticsearch
app.kubernetes.io/version: "1.0"
io.kompose.service: resolver-elasticsearch
spec:
replicas:
selector:
matchLabels:
app.kubernetes.io/name: resolver-elasticsearch
app.kubernetes.io/instance: resolver-elasticsearch
helm.sh/chart: resolver
io.kompose.service: resolver-elasticsearch
app.kubernetes.io/version: "1.0"
template:
metadata:
labels:
app.kubernetes.io/name: resolver-elasticsearch
io.kompose.service: resolver-elasticsearch
app.kubernetes.io/instance: resolver-elasticsearch
helm.sh/chart: resolver
app.kubernetes.io/version: "1.0"
spec:
imagePullSecrets:
- name: dodis
containers:
- name: resolver-elasticsearch
image: source.dodis.ch:4577/histhub/resolver-elasticsearch:latest
command:
- "node"
- "dist/index.js"
- "--kafka:schema-registry=http://kafka-schema-registry:8081"
- "--kafka:broker=geolinker-kafka-bootstrap:9092"
- --elasticsearch:server=http://elastic-elasticsearch-client
- --elasticsearch:port=9200
resources:
limits:
cpu: 0.1
memory: 128Mi
nodeSelector:
doks.digitalocean.com/node-pool: app
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: resolver-neo4j
annotations:
kompose.cmd: kompose convert
kompose.version: 1.13.0 (84fa826)
labels:
app.kubernetes.io/name: resolver-neo4j
helm.sh/chart: resolver
app.kubernetes.io/instance: resolver-neo4j
app.kubernetes.io/version: "1.0"
io.kompose.service: resolver-neo4j
spec:
replicas:
selector:
matchLabels:
app.kubernetes.io/name: resolver-neo4j
app.kubernetes.io/instance: resolver-neo4j
helm.sh/chart: resolver
io.kompose.service: resolver-neo4j
app.kubernetes.io/version: "1.0"
template:
metadata:
labels:
app.kubernetes.io/name: resolver-neo4j
io.kompose.service: resolver-neo4j
app.kubernetes.io/instance: resolver-neo4j
helm.sh/chart: resolver
app.kubernetes.io/version: "1.0"
spec:
imagePullSecrets:
- name: dodis
containers:
- name: resolver-neo4j
image: source.dodis.ch:4577/histhub/resolver-neo4j:latest
env:
- name: neo4j_config_password
valueFrom:
secretKeyRef:
key: neo4j-password
name: neo4j-neo4j-secrets
command:
- "node"
- "dist/index.js"
- "--kafka:schema-registry=http://kafka-schema-registry:8081"
- "--kafka:broker=geolinker-kafka-bootstrap:9092"
- --neo4j:config:uri=bolt+routing://neo4j-neo4j:7687
- --neo4j:config:user=neo4j
resources:
limits:
cpu: 0.1
memory: 128Mi
nodeSelector:
doks.digitalocean.com/node-pool: app
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: resolver-metadata
annotations:
kompose.cmd: kompose convert
kompose.version: 1.13.0 (84fa826)
labels:
app.kubernetes.io/name: resolver-metadata
helm.sh/chart: resolver
app.kubernetes.io/instance: resolver-metadata
app.kubernetes.io/version: "1.0"
io.kompose.service: resolver-metadata
spec:
replicas:
selector:
matchLabels:
app.kubernetes.io/name: resolver-metadata
app.kubernetes.io/instance: resolver-metadata
helm.sh/chart: resolver
io.kompose.service: resolver-metadata
app.kubernetes.io/version: "1.0"
template:
metadata:
labels:
app.kubernetes.io/name: resolver-metadata
io.kompose.service: resolver-metadata
app.kubernetes.io/instance: resolver-metadata
helm.sh/chart: resolver
app.kubernetes.io/version: "1.0"
spec:
imagePullSecrets:
- name: dodis
containers:
- name: resolver-metadata
image: source.dodis.ch:4577/histhub/resolver-metadata:latest
command:
- "node"
- "dist/index.js"
- "--kafka:schema-registry=http://kafka-schema-registry:8081"
- "--kafka:broker=geolinker-kafka-bootstrap:9092"
resources:
limits:
cpu: 0.1
memory: 128Mi
nodeSelector:
doks.digitalocean.com/node-pool: app
---
nodeSelector:
doks.digitalocean.com/node-pool: app
webhook:
nodeSelector:
doks.digitalocean.com/node-pool: app
cainjector:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: doks.digitalocean.com/node-pool
operator: In
values:
- app
......@@ -58,3 +58,10 @@ fluentd-elasticsearch:
enabled: false
elasticsearch:
host: elastic-stack-elasticsearch-client
elasticsearch-exporter:
enabled: true
nodeSelector:
doks.digitalocean.com/node-pool: elastic
es:
uri: "http://elastic-elasticsearch-client:9200"
sidecar:
datasources:
enabled: true
label: grafana_datasource
nodeSelector:
doks.digitalocean.com/node-pool: app
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/issuer: "letsencrypt-prod"
path: /
hosts:
- grafana.geolinker.knubbel.ch
tls:
- secretName: grafana-tls
hosts:
- grafana.geolinker.knubbel.ch
issuer:
- name: staging
server: https://acme-staging-v02.api.letsencrypt.org/directory
email: zivi@dodis.ch
- name: prod
server: https://acme-v02.api.letsencrypt.org/directory
email: zivi@dodis.ch
controller:
nodeSelector:
doks.digitalocean.com/node-pool: app
patch:
nodeSelector:
doks.digitalocean.com/node-pool: app
defaultBackend:
nodeSelector:
doks.digitalocean.com/node-pool: app
---
# disable alertmanager and pushgateway
alertmanager:
enabled: false
pushgateway:
enabled: false
kubeStateMetrics:
nodeSelector:
doks.digitalocean.com/node-pool: app
server:
nodeSelector:
doks.digitalocean.com/node-pool: app
extraScrapeConfigs: |
- job_name: 'elasticsearch'
scrape_interval: 10s
metrics_path: "/metrics"
static_configs:
- targets:
- elastic-elasticsearch-exporter.geolinker.svc.cluster.local:9108
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment