Code Monkey home page Code Monkey logo

Comments (4)

geerlingguy avatar geerlingguy commented on May 28, 2024

I ran into this because commands like kubectl logs [pod name] and kubectl exec were returning errors like:

root@master:/home/vagrant# kubectl logs a4d-nginx-67594d6bf6-9vfh6
Error from server (NotFound): the server could not find the requested resource ( pods/log a4d-nginx-67594d6bf6-9vfh6)

root@master:/home/vagrant# kubectl exec a4d-nginx-67594d6bf6-9vfh6 date
error: unable to upgrade connection: pod does not exist

from ansible-role-kubernetes.

geerlingguy avatar geerlingguy commented on May 28, 2024

After a ton of fruitless searches, I found this comment: kubernetes/kubeadm#203 (comment) (which led me to reading the systemd unit file more closely). Testing a fix now... this will make the role incompatible with 1.10, at least if the user sets a value for kubernetes_kubelet_extra_args...

from ansible-role-kubernetes.

geerlingguy avatar geerlingguy commented on May 28, 2024

After editing the correct file:

root@master:/home/vagrant# kubectl get nodes -o wide
NAME      STATUS    ROLES     AGE       VERSION   INTERNAL-IP    EXTERNAL-IP   OS-IMAGE                       KERNEL-VERSION   CONTAINER-RUNTIME
master    Ready     master    19m       v1.11.2   192.168.84.2   <none>        Debian GNU/Linux 9 (stretch)   4.9.0-8-amd64    docker://18.6.1
node1     Ready     <none>    18m       v1.11.2   192.168.84.3   <none>        Debian GNU/Linux 9 (stretch)   4.9.0-8-amd64    docker://18.6.1
node2     Ready     <none>    18m       v1.11.2   192.168.84.4   <none>        Debian GNU/Linux 9 (stretch)   4.9.0-8-amd64    docker://18.6.1

from ansible-role-kubernetes.

geerlingguy avatar geerlingguy commented on May 28, 2024

And now logs and all the other commands work correctly.

from ansible-role-kubernetes.

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.