add grafana and prometheus
This commit is contained in:
parent
6f29876b28
commit
0e7a148ede
2 changed files with 67 additions and 0 deletions
28
grafana/ingress.yaml
Normal file
28
grafana/ingress.yaml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: grafana-ingress
|
||||||
|
namespace: grafana
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: "nginx"
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
|
acme.cert-manager.io/http01-edit-in-place: "true"
|
||||||
|
ingress.kubernetes.io/ssl-redirect: "false"
|
||||||
|
#nginx.org/ssl-services: "grafana"
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: "grafana.apps.yolokube.de"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- pathType: Prefix
|
||||||
|
path: "/"
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: grafana
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- grafana.apps.yolokube.de
|
||||||
|
secretName: grafana-cert
|
39
prometheus/ingress.yaml
Normal file
39
prometheus/ingress.yaml
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: prometheus-ingress
|
||||||
|
namespace: prometheus
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: "nginx"
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
|
acme.cert-manager.io/http01-edit-in-place: "true"
|
||||||
|
ingress.kubernetes.io/ssl-redirect: "false"
|
||||||
|
nginx.org/basic-auth-secret: prometheus-basic-auth-secret
|
||||||
|
#nginx.org/ssl-services: "prometheus-server"
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: "prometheus.apps.yolokube.de"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- pathType: Prefix
|
||||||
|
path: "/"
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: prometheus-server
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- prometheus.apps.yolokube.de
|
||||||
|
secretName: prometheus-cert
|
||||||
|
---
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: prometheus-basic-auth-secret
|
||||||
|
namespace: prometheus
|
||||||
|
apiVersion: v1
|
||||||
|
type: nginx.org/htpasswd
|
||||||
|
stringData:
|
||||||
|
htpasswd: |
|
||||||
|
aaron:$2y$05$B2.Q.9/e4VEXsnoe.ypjYOkiykmrF2hpApE7CYc2DPIr0pFIdDO1O
|
Loading…
Reference in a new issue