-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bitnami/multus-cni] failed to get context for the kubeconfig #30606
Comments
Hi, This is strange, because looking at the logs the kubeconfig should be there. Could you try entering the container with kubectl exec and verify that it created the kubeconfig file? If so, maybe the |
I think the multus daemonset use the wrong paths.
So the multus pods should use the path |
Could you try changing the path in the YAML to confirm this? If so, as you spotted the issue, would you like to submit a PR? |
I think I found the isse, the file (on the host) {
"cniVersion": "1.0.0",
"name": "multus-cni-network",
"plugins": [ {
"type": "multus",
"capabilities": {"bandwidth":true,"portMappings":true},
"logLevel": "verbose",
"cniConf": "/bitnami/multus-cni/host/etc/cni/net.d",
"kubeconfig": "/etc/cni/net.d/multus.d/multus.kubeconfig",
"delegates": [
{"cniVersion":"1.0.0","name":"cbr0","plugins":[{"delegate":{"forceAddress":true,"hairpinMode":true,"isDefaultGateway":true},"type":"flannel"},{"capabilities":{"portMappings":true},"type":"portmap"},{"capabilities":{"bandwidth":true},"type":"bandwidth"}]}
]
}]
} The correct path is below |
Let's try something, could you try deploying using the |
I fixed the issue by adding the following arg to
This could be set by default from |
Hi, I'd say so. Would you like to submit a PR adding that parameter? |
Signed-off-by: Christoph Roeder <[email protected]>
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Just to pause the bot, I already added a pull request |
Name and Version
bitnamicharts/multus-cni:2.1.19
What architecture are you using?
amd64
What steps will reproduce the bug?
kubectl netshoot run tmp-shell
Are you using any custom parameters or values?
What is the expected behavior?
No response
What do you see instead?
Logs from "tmp-shell" pod
Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "3574ecbded3a47def3133b1d8a783035a1a63f6d95ba4c4a3845c5cf24c78614": plugin type="multus" failed (add): Multus: error getting k8s client: GetK8sClient: failed to get context for the kubeconfig /etc/cni/net.d/multus.d/multus.kubeconfig: stat /etc/cni/net.d/multus.d/multus.kubeconfig: no such file or directory
Additional information
Logs from multus pod:
The text was updated successfully, but these errors were encountered: