Skip to content
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

k8s-head: Failed to restart kubelet.service: Unit kubelet.service not found #5

Open
kamal2222ahmed opened this issue Mar 1, 2019 · 2 comments

Comments

@kamal2222ahmed
Copy link

$vagrant up
8s-head: Err:8 https://packages.cloud.google.com/apt kubernetes-xenial/main amd64 Packages
k8s-head: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
k8s-head: Ign:9 https://packages.cloud.google.com/apt kubernetes-xenial/main all Packages
k8s-head: Ign:10 https://packages.cloud.google.com/apt kubernetes-xenial/main Translation-en_US
k8s-head: Ign:11 https://packages.cloud.google.com/apt kubernetes-xenial/main Translation-en
k8s-head: Reading package lists...
k8s-head: W: The repository 'http://apt.kubernetes.io kubernetes-xenial Release' does not have a Release file.
k8s-head: E: Failed to fetch https://packages.cloud.google.com/apt/dists/kubernetes-xenial/main/binary-amd64/Packages server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
k8s-head: E: Some index files failed to download. They have been ignored, or old ones used instead.
k8s-head: Reading package lists...
k8s-head: Building dependency tree...
k8s-head:
k8s-head: Reading state information...
k8s-head: E: Unable to locate package kubelet
k8s-head: E: Unable to locate package kubeadm
k8s-head: E: Unable to locate package kubectl
k8s-head: E: Unable to locate package kubelet
k8s-head: E: Unable to locate package kubeadm
k8s-head: E: Unable to locate package kubectl
k8s-head: E: No packages found
k8s-head: sed: can't read /etc/default/kubelet: No such file or directory
k8s-head: Failed to restart kubelet.service: Unit kubelet.service not found.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

@bdjordjevic1
Copy link

I am facing the same issue, anyone has a clue why is this file missing? I trying to setup different Internal IP for my worker nodes but I am not able to since /etc/default/kubelet file is missing.

@raj-rajaratnam
Copy link
Member

Look at this PR. #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants