Forráskód Böngészése

fix: missing k3s volumeMounts (#533)

Possibly due to the fix in https://github.com/squat/kilo/pull/520 not
falling back to a valid value anymore, the following error reproduces on
k3s now:

    failed to create Kubernetes config: invalid configuration: unable to read certificate-authority /var/lib/rancher/k3s/agent/server-ca.crt for kilo due to open /var/lib/rancher/k3s/agent/server-ca.crt: no such file or directory

This adds the mounts for volumes that are already available

fixes: https://github.com/squat/kilo/issues/531

Signed-off-by: Anton Melser <anton.melser@outlook.com>
Anton Melser 1 hónapja
szülő
commit
3ca9611946

+ 3 - 0
manifests/kilo-k3s-cilium.yaml

@@ -133,6 +133,9 @@ spec:
         - name: xtables-lock
           mountPath: /run/xtables.lock
           readOnly: false
+        - name: k3s-agent
+          mountPath: /var/lib/rancher/k3s/agent/
+          readOnly: true
       initContainers:
       - name: generate-kubeconfig
         image: squat/kilo:0.7.0

+ 3 - 0
manifests/kilo-k3s-flannel.yaml

@@ -130,6 +130,9 @@ spec:
         - name: xtables-lock
           mountPath: /run/xtables.lock
           readOnly: false
+        - name: k3s-agent
+          mountPath: /var/lib/rancher/k3s/agent/
+          readOnly: true
       initContainers:
       - name: generate-kubeconfig
         image: squat/kilo:0.7.0

+ 3 - 0
manifests/kilo-k3s-userspace-heterogeneous.yaml

@@ -162,6 +162,9 @@ spec:
         - name: xtables-lock
           mountPath: /run/xtables.lock
           readOnly: false
+        - name: k3s-agent
+          mountPath: /var/lib/rancher/k3s/agent/
+          readOnly: true
       initContainers:
       - name: generate-kubeconfig
         image: squat/kilo:0.7.0

+ 3 - 0
manifests/kilo-k3s-userspace.yaml

@@ -165,6 +165,9 @@ spec:
         - name: wireguard
           mountPath: /var/run/wireguard
           readOnly: false
+        - name: k3s-agent
+          mountPath: /var/lib/rancher/k3s/agent/
+          readOnly: true
       - name: wireguard
         image: ghcr.io/masipcat/wireguard-go-docker:0.0.20230223
         args:

+ 3 - 0
manifests/kilo-k3s.yaml

@@ -158,6 +158,9 @@ spec:
         - name: xtables-lock
           mountPath: /run/xtables.lock
           readOnly: false
+        - name: k3s-agent
+          mountPath: /var/lib/rancher/k3s/agent/
+          readOnly: true
       initContainers:
       - name: generate-kubeconfig
         image: squat/kilo:0.7.0