EUGENIO SOUZA CARVALHO 4 år sedan
förälder
incheckning
402d0189a0
1 ändrade filer med 10 tillägg och 14 borttagningar
  1. 10 14
      monitoring/009-grafana-ingress.yaml

+ 10 - 14
monitoring/009-grafana-ingress.yaml

@@ -19,22 +19,18 @@ spec:
 ###################################################
 # Grafana Ingres
 ###################################################
-kind: Ingress
-apiVersion: networking.k8s.io/v1beta1
+apiVersion: traefik.containo.us/v1alpha1
+kind: IngressRoute
 metadata:
   name: grafana
   namespace: monitoring
-  annotations:
-    traefik.ingress.kubernetes.io/router.entrypoints: web, websecure
-    # traefik.ingress.kubernetes.io/router.tls.certresolver: letse
+
 spec:
-  rules:
-    - host: grafana.monteasua.com.br
-      http:
-        paths:
-          - path: ""
-            backend:
-              serviceName: grafana
-              servicePort: 3000
+  routes:
+    - match: Host(`grafana.monteasua.com.br`)
+      kind: Rule
+      services:
+        - name: grafana
+          port: 3000
   tls:
-    secretName: monteasua-com-br-tls
+    secretName: monteasua-com-br-tls