Giter VIP home page Giter VIP logo

Comments (5)

readams avatar readams commented on August 11, 2024

Usually this would indicate your host networking is not set up correctly, but you can get more information by looking at the logs for aci-containers host agent.

kubectl -n kube-system logs aci-containers-host-k1jxx -c aci-containers-host
kubectl -n kube-system logs aci-containers-host-k1jxx -c opflex-agent
kubectl -n kube-system logs aci-containers-host-k1jxx -c mcast-daemon

These containers are designed to kill themselves if the environment is not set up correctly to aid diagnosis. For more detailed support, we can have a Cisco TME reach out to you.

from aci-containers.

yoongseong avatar yoongseong commented on August 11, 2024

Thanks for the advice. After fixing the MTU issue, aci-containers-host-k1jxx in is running now. But still aci-containers-controller is in pending status and kube-dns shows rpc error.

[root@k8s-master ~]# kubectl get pods --all-namespaces
NAMESPACE     NAME                                         READY     STATUS                                                                                                                                                                                                                                                                                RESTARTS   AGE
kube-system   aci-containers-controller-2834261735-7719d   0/1       Pending                                                                                                                                                                                                                                                                               0          1d
kube-system   aci-containers-host-k1jxx                    3/3       Running                                                                                                                                                                                                                                                                               293        1d
kube-system   aci-containers-openvswitch-dmwbf             1/1       Running                                                                                                                                                                                                                                                                               4          1d
kube-system   etcd-k8s-master                              1/1       Running                                                                                                                                                                                                                                                                               4          1d
kube-system   kube-apiserver-k8s-master                    1/1       Running                                                                                                                                                                                                                                                                               4          1d
kube-system   kube-controller-manager-k8s-master           1/1       Running                                                                                                                                                                                                                                                                               4          1d
kube-system   kube-dns-2617979913-54372                    0/3       rpc error: code = 2 desc = failed to start container "b68fc34e0c2d770655ad065ce4193242aedc7d29d23f25753d769500e37cec40": Error response from daemon: {"message":"cannot join network of a non running container: 999ed6cc9dd7c04988d5f806b217c245a8edb905ef6f426d57f2793cbe58be7e"}   9          1d
kube-system   kube-proxy-5fhm4                             1/1       Running                                                                                                                                                                                                                                                                               4          1d
kube-system   kube-scheduler-k8s-master                    1/1       Running                                                                                                                                                                                                                                                                               4          1d
[root@k8s-master ~]#

from aci-containers.

readams avatar readams commented on August 11, 2024

You can use kubectl describe to find out why a pod is in pending state.

from aci-containers.

yoongseong avatar yoongseong commented on August 11, 2024

Thanks. The issue is resolved by including the master node to schedule pods. As documented in k8s:

By default, your cluster will not schedule pods on the master for security reasons.

Just wonder is it a must for master node to schedule pod if we would like to integrate ACI with k8s? By looking at the steps, we have to install a pod network using kubectl apply -f <add-on.yaml> before we can add new nodes to the cluster.

from aci-containers.

readams avatar readams commented on August 11, 2024

You can add nodes before you apply the networking plugin, and in any event you don't need the networking plugin to be running until you need to run pods, so it's not required to run pods on the master node.

from aci-containers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.