From 72dfdcc6fa7361e2e5d0680d673637f24c179318 Mon Sep 17 00:00:00 2001
From: entlein <einentlein@gmail.com>
Date: Fri, 29 Apr 2022 15:08:21 +0200
Subject: [PATCH] LOGGING I: using the stable banzaicloud logging helm chart
 and setting the CRDs to be auto-created

---
 .../manifests/deploy-rancher-logging.j2       | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 roles/rke2/templates/manifests/deploy-rancher-logging.j2

diff --git a/roles/rke2/templates/manifests/deploy-rancher-logging.j2 b/roles/rke2/templates/manifests/deploy-rancher-logging.j2
new file mode 100644
index 0000000..aa73b83
--- /dev/null
+++ b/roles/rke2/templates/manifests/deploy-rancher-logging.j2
@@ -0,0 +1,28 @@
+---
+
+kind: Namespace
+apiVersion: v1
+metadata:
+  name: cattle-logging-system
+
+
+---
+
+apiVersion: helm.cattle.io/v1
+kind: HelmChart
+metadata:
+  name: rancher-logging
+  namespace: kube-system
+spec:
+  repo: {{ item.value.repo | default("https://charts.rancher.io") }}
+  chart: rancher-logging
+  version: {{ item.value.version | default("3.15.0") }}
+  targetNamespace: cattle-logging-system
+  valuesContent: |-
+    createCustomResource: true
+    global.seLinux.enabled: true
+    additionalLoggingSources.rke2.enabled: true
+
+
+
+
-- 
GitLab