about summary refs log tree commit diff
path: root/tools/eck-operator
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-06-30 11:46:45 +0200
committermakefunstuff <[email protected]>2024-06-30 11:46:45 +0200
commit198d8e1eef66d071a43cc4ebbff4352dc5cd7baf (patch)
tree5782d6db2d54cf7cba9ceee4a5e7567a04a88763 /tools/eck-operator
parentda5fffce067524b306b87a8a27d54a7f6e1820d4 (diff)
downloadk3s-lab-198d8e1eef66d071a43cc4ebbff4352dc5cd7baf.tar.gz
add kibana
Diffstat (limited to '')
-rw-r--r--tools/eck-operator/templates/kibana.yaml41
1 files changed, 41 insertions, 0 deletions
diff --git a/tools/eck-operator/templates/kibana.yaml b/tools/eck-operator/templates/kibana.yaml
new file mode 100644
index 0000000..f0c261b
--- /dev/null
+++ b/tools/eck-operator/templates/kibana.yaml
@@ -0,0 +1,41 @@
+apiVersion: kibana.k8s.elastic.co/v1
+kind: Kibana
+metadata:
+  name: log-storage
+spec:
+  version: 8.14.1
+  count: 1
+  elasticsearchRef:
+    name: log-storage
+    namespace: default
+
+---
+
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  name: kibana-ingress
+  namespace: monitoring
+  annotations:
+    traefik.ingress.kubernetes.io/router.entrypoints: websecure
+    traefik.ingress.kubernetes.io/router.tls: "true"
+    traefik.ingress.kubernetes.io/router.tls.certresolver: "default"
+    traefik.ingress.kubernetes.io/redirect-entry-point: https
+    cert-manager.io/cluster-issuer: letsencrypt-prod
+spec:
+  tls:
+  - hosts:
+    - logs.topkek.cloud
+    secretName: kibana-tls
+  rules:
+  - host: logs.topkek.cloud
+    http:
+      paths:
+      - path: /
+        pathType: Prefix
+        backend:
+          service:
+            name: log-storage-kb-http
+            port:
+              number: 5601
+