2020-05-18 18:55:58 +00:00
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: Prometheus
|
|
|
|
metadata:
|
|
|
|
name: main
|
|
|
|
spec:
|
|
|
|
serviceAccountName: prometheus
|
|
|
|
serviceMonitorSelector:
|
|
|
|
matchLabels:
|
|
|
|
monitor: main
|
|
|
|
resources:
|
|
|
|
requests:
|
2020-05-31 22:05:21 +00:00
|
|
|
memory: 300Mi
|
|
|
|
limits:
|
|
|
|
memory: 500Mi
|
2020-05-18 18:55:58 +00:00
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
2020-05-18 20:18:39 +00:00
|
|
|
name: prometheus
|
2020-05-18 18:55:58 +00:00
|
|
|
annotations:
|
|
|
|
nginx.ingress.kubernetes.io/rewrite-target: /
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
|
|
|
spec:
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- prometheus.127.0.0.1.nip.io
|
|
|
|
secretName: letsencrypt-cert
|
|
|
|
rules:
|
|
|
|
- host: prometheus.127.0.0.1.nip.io
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
backend:
|
2020-05-31 22:05:21 +00:00
|
|
|
serviceName: prometheus-operated
|
2020-05-18 18:55:58 +00:00
|
|
|
servicePort: web
|