Comments (4)
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.
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.
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.
And now logs and all the other commands work correctly.
from ansible-role-kubernetes.
Related Issues (20)
- Configure Flannel networking tasks fails on Ubuntu 20.04 HOT 6
- Can't install any K8s version other than 1.20
- No kubeconfig in ~/.kube HOT 5
- Execution issue with kubernetes version HOT 5
- Role failing on play "Configure Calico networking" HOT 3
- Fail to install on fresh OS HOT 11
- Upgrade to new kubernetes versions HOT 3
- APT ignores version pinning on Ubuntu HOT 4
- CI Currently broken - kubelet won't start in GitHub Actions HOT 18
- Support JoinConfiguration HOT 2
- kube-flannel-rbac.yml not found HOT 3
- Put a hold on packages HOT 2
- Could not find the requested service kubelet: host HOT 2
- User "system:anonymous" cannot get resource "configmaps" in API group HOT 4
- `kubernetes-join-command` not delegated to any host except master HOT 6
- Ubuntu 22.04 needs to Forward IPv4 and letting iptables see bridged traffic HOT 4
- memory, br_netfilter and iptables issues when installing on 2023-05-03 Raspbian 64-bit HOT 4
- Changes to the location of Linux packages for Kubernetes HOT 1
- ansible-lint and molecule/default HOT 1
- Each virtual machine has the same hostname after installation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-kubernetes.