Closed ankush06 closed 3 years ago
We use Calico with DANM in production, so it is probably just improper configuration. Please share your Calico config. Do you have CNI version -which is a mandatory field according to the spec- defined?
Thanks for replying on this. yes looks a config issue only but not able to debug what has gone wrong here. i can see the applications are running in other-node (Controller-1), but failing in Controller-0. Below is the Calico config on both the nodes.
Controller-0
{ "name": "k8s-pod-network", "cniVersion": null, "type": "calico", "log_level": "info", "datastore_type": "kubernetes", "nodename": "controller-0", "mtu": 1440, "ipam": { "type": "calico-ipam", "assign_ipv4": "true", "assign_ipv6": "false" }, "policy": { "type": "k8s" }, "kubernetes": { "kubeconfig": "/etc/cni/net.d/calico-kubeconfig" } }
Controller-1
{ "name": "k8s-pod-network", "cniVersion": null, "type": "calico", "log_level": "info", "datastore_type": "kubernetes", "nodename": "controller-1", "mtu": 1440, "ipam": { "type": "calico-ipam", "assign_ipv4": "true", "assign_ipv6": "false" }, "policy": { "type": "k8s" }, "kubernetes": { "kubeconfig": "/etc/cni/net.d/calico-kubeconfig" } }
it is interesting how they are running on Controller-1, but the CNI version should be definitely filled :)
try adding "0.3.1" into the config on both nodes, and see what happens
@ankush06 any updates?
Thanks @Levovar . It is working. Sorry for late response
Is this a BUG REPORT or FEATURE REQUEST?:
What happened: Installed DANM in starlingx setup. But after the installation some pods in controller-0 are not initializing. The starlingx is using the Calico-CNI. Is there any DANM known issue or any pointer to use DANM in starlingx ?
What you expected to happen: Pods should be deployed in both the the nodes
How to reproduce it: Install DANM in starlingx (Calico-CNI)
Environment:
DANM version (use
danm -version
): 4.2.0Kubernetes version (use
kubectl version
): v1.18.1DANM configuration (K8s manifests, kubeconfig files, CNI config file):
OS (e.g. from /etc/os-release): CentOS Linux 7
Kernel (e.g.
uname -a
): 4.18.0-147.3.1.el8_1.7.tis.x86_64Others: danm_data.yaml