https://rancher.com/ logo
#k3s
Title
# k3s
a

adamant-kite-43734

10/24/2022, 11:44 AM
This message was deleted.
s

square-engine-61315

10/24/2022, 11:46 AM
I could force-delete it, but I'm afraid that might hide a bigger problem?
b

bland-account-99790

10/24/2022, 1:10 PM
it is apparently complaining about the JSON file describing the CNI plugin
You did not see any problem when creating the pod?
Could you
sudo cat /var/lib/rancher/k3s/agent/etc/cni/net.d/10-flannel.conflist
please?
s

square-engine-61315

10/24/2022, 1:33 PM
The pod is created by a deployment, which is created by a helm chart. I did not see any issues.
It was quite urgent, so I force deleted the pod before your message arrived. Before I did that, I checked to see if the container was running on the server, using
k3s crictl ps
. It was not running.
Contents of `/var/lib/rancher/k3s/agent/etc/cni/net.d/10-flannel.conflist`:
Copy code
{
  "name": "cbr0",
  "cniVersion": "1.0.0",
  "plugins": [
    {
      "type": "flannel",
      "delegate": {
        "hairpinMode": true,
        "forceAddress": true,
        "isDefaultGateway": true
      }
    },
    {
      "type": "portmap",
      "capabilities": {
        "portMappings": true
      }
    }
  ]
}
My problem is solved now, but I'll be glad to provide more info if you want to dig into this.
b

bland-account-99790

10/24/2022, 1:43 PM
the JSON seems correct, I wonder why it was complaining
If you are ever able to reproduce the problem, yes please, any extra info would be super helpful
s

square-engine-61315

10/24/2022, 1:59 PM
OK, I'll try to remember 🙂
b

bland-account-99790

10/24/2022, 2:55 PM
thanks Rudolf! 🙂
1318 Views