feat(grafana): Add ingress

Basic ingress for grafana (beta) and force some containers to specific node (beta environment)
This commit is contained in:
Tanguy Herbron 2022-09-21 18:17:32 +02:00
parent 8ab1d55272
commit 838ccaccf2
6 changed files with 27 additions and 3 deletions

View File

@ -24,6 +24,6 @@ data:
- name: Prometheus
type: prometheus
access: proxy
url: "http://prometheus-svc:3100"
url: "http://prometheus-svc:9090"
version: 1
isDefault: false

View File

@ -39,6 +39,7 @@ spec:
runAsGroup: 472
runAsUser: 472
enableServiceLinks: true
nodeName: slave-1
containers:
- name: grafana-sc-datasources
image: "quay.io/kiwigrid/k8s-sidecar:1.15.6"

View File

@ -0,0 +1,23 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: grafana-ingress
namespace: monitoring
annotations:
kubernetes.io/ingress.class: "traefik"
spec:
tls:
- secretName: grafana-beta-tls
hosts:
- grafana.beta.halia.dev
rules:
- host: grafana.beta.halia.dev
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: loki-grafana
port:
number: 80

View File

@ -10,9 +10,7 @@ metadata:
app.kubernetes.io/name: grafana
app.kubernetes.io/instance: loki
app.kubernetes.io/version: "8.3.5"
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- name: service
port: 80

View File

@ -41,6 +41,7 @@ spec:
runAsUser: 10001
initContainers:
[]
nodeName: slave-1
containers:
- name: loki
image: "grafana/loki:2.6.1"

View File

@ -43,3 +43,4 @@ spec:
name: prometheus-server-conf
- name: prometheus-storage-volume
emptyDir: {}
nodeName: slave-1