about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-05-05 14:22:50 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-05-05 14:54:43 +0200
commit32ffb5c8f5487cd99e84f47cebd4e0997d0a1fa0 (patch)
tree31383940ea5daefb15b339806ff26ca10e1cb21b
parentk8s: add kafka-ui config (diff)
downloadfs-tracer-backend-32ffb5c8f5487cd99e84f47cebd4e0997d0a1fa0.tar.gz
fs-tracer-backend-32ffb5c8f5487cd99e84f47cebd4e0997d0a1fa0.tar.bz2
fs-tracer-backend-32ffb5c8f5487cd99e84f47cebd4e0997d0a1fa0.zip
k8s: fix metallb config resources not being applied
-rw-r--r--k8s/helmsman.yml11
-rw-r--r--k8s/metallb-config/Chart.yaml24
-rw-r--r--k8s/metallb-config/templates/metallb.yml (renamed from k8s/metallb.yml)0
3 files changed, 34 insertions, 1 deletions
diff --git a/k8s/helmsman.yml b/k8s/helmsman.yml
index 6cf4e26..7dfd0ea 100644
--- a/k8s/helmsman.yml
+++ b/k8s/helmsman.yml
@@ -14,7 +14,16 @@ apps:
     wait: true
     chart: oci://registry-1.docker.io/bitnamicharts/metallb
     version: 6.1.3
-    valuesFile: metallb.yml
+    priority: -5
+  
+  # When deleting the resource this will get stuck as it should be deleted before "metallib".
+  # To fix it, run: k delete secret sh.helm.release.v1.metallb-config.v1
+  metallb-config:
+    namespace: metallb-system
+    enabled: true
+    wait: true
+    chart: metallb-config
+    version: 0.1.0
     priority: -4
 
   kafka:
diff --git a/k8s/metallb-config/Chart.yaml b/k8s/metallb-config/Chart.yaml
new file mode 100644
index 0000000..1254f93
--- /dev/null
+++ b/k8s/metallb-config/Chart.yaml
@@ -0,0 +1,24 @@
+apiVersion: v2
+name: metallb-config
+description: A Helm chart for Kubernetes
+
+# A chart can be either an 'application' or a 'library' chart.
+#
+# Application charts are a collection of templates that can be packaged into versioned archives
+# to be deployed.
+#
+# Library charts provide useful utilities or functions for the chart developer. They're included as
+# a dependency of application charts to inject those utilities and functions into the rendering
+# pipeline. Library charts do not define any templates and therefore cannot be deployed.
+type: application
+
+# This is the chart version. This version number should be incremented each time you make changes
+# to the chart and its templates, including the app version.
+# Versions are expected to follow Semantic Versioning (https://semver.org/)
+version: 0.1.0
+
+# This is the version number of the application being deployed. This version number should be
+# incremented each time you make changes to the application. Versions are not expected to
+# follow Semantic Versioning. They should reflect the version the application is using.
+# It is recommended to use it with quotes.
+appVersion: "1.16.0"
diff --git a/k8s/metallb.yml b/k8s/metallb-config/templates/metallb.yml
index 9dee7ef..9dee7ef 100644
--- a/k8s/metallb.yml
+++ b/k8s/metallb-config/templates/metallb.yml