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

Request for help troubleshooting kubelet startup #34668

Closed
trickymee opened this issue Jun 28, 2022 · 8 comments
Closed

Request for help troubleshooting kubelet startup #34668

trickymee opened this issue Jun 28, 2022 · 8 comments
Labels
kind/support Categorizes issue or PR as a support question. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@trickymee
Copy link

trickymee commented Jun 28, 2022

OS: Linux oracle 5.4.17-2136.308.9.el8uek.x86_64 #2 SMP Mon Jun 13 20:36:40 PDT 2022 x86_64 x86_64 x86_64 GNU/Linux

Followed steps from https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#k8s-install-2 -> "without package manager" to setup kubeadm / kubetcl/ kubelet. However, kubelet service is not starting:

sudo systemctl enable --now kubelet
Removed /etc/systemd/system/multi-user.target.wants/kubelet.service.
Created symlink /etc/systemd/system/multi-user.target.wants/kubelet.service → /etc/systemd/system/kubelet.service.
sudo systemctl start kubelet

sudo systemctl status kubelet
● kubelet.service - kubelet: The Kubernetes Node Agent
   Loaded: loaded (/etc/systemd/system/kubelet.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/kubelet.service.d
           └─10-kubeadm.conf
   Active: activating (auto-restart) (Result: exit-code) since Tue 2022-06-28 14:56:46 GMT; 9s ago
     Docs: https://kubernetes.io/docs/home/
  Process: 9842 ExecStart=/usr/local/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=1/FAILURE)
 Main PID: 9842 (code=exited, status=1/FAILURE)

● kubelet.service - kubelet: The Kubernetes Node Agent
   Loaded: loaded (/etc/systemd/system/kubelet.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/kubelet.service.d
           └─10-kubeadm.conf
   Active: activating (auto-restart) (Result: exit-code) since Tue 2022-06-28 14:57:37 GMT; 3s ago
     Docs: https://kubernetes.io/docs/home/
  Process: 10159 ExecStart=/usr/local/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=1/FAILURE)
 Main PID: 10159 (code=exited, status=1/FAILURE)

Jun 28 14:57:37 oracle kubelet[10159]:                 Insecure values: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA>
Jun 28 14:57:37 oracle kubelet[10159]:       --tls-min-version string                                   Minimum TLS version supported. Possible values: VersionTLS10, VersionTLS11, VersionTLS12, VersionTLS13 (DEPRECATED: This parameter s>
Jun 28 14:57:37 oracle kubelet[10159]:       --tls-private-key-file string                              File containing x509 private key matching --tls-cert-file. (DEPRECATED: This parameter should be set via the config file specified b>
Jun 28 14:57:37 oracle kubelet[10159]:       --topology-manager-policy string                           Topology Manager policy to use. Possible values: 'none', 'best-effort', 'restricted', 'single-numa-node'. (default "none") (DEPRECAT>
Jun 28 14:57:37 oracle kubelet[10159]:       --topology-manager-scope string                            Scope to which topology hints applied. Topology Manager collects hints from Hint Providers and applies them to defined scope to ensu>
Jun 28 14:57:37 oracle kubelet[10159]:   -v, --v Level                                                  number for the log level verbosity
Jun 28 14:57:37 oracle kubelet[10159]:       --version version[=true]                                   Print version information and quit
Jun 28 14:57:37 oracle kubelet[10159]:       --vmodule pattern=N,...                                    comma-separated list of pattern=N settings for file-filtered logging (only works for text log format)
Jun 28 14:57:37 oracle kubelet[10159]:       --volume-plugin-dir string                                 The full path of the directory in which to search for additional third party volume plugins (default "/usr/libexec/kubernetes/kubele>
Jun 28 14:57:37 oracle kubelet[10159]:       --volume-stats-agg-period duration                         Specifies interval for kubelet to calculate and cache the volume disk usage for all pods and volumes.  To disable volume calculation

Already tried sudo kubeadm reset, but did not work.

@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jun 28, 2022
@k8s-ci-robot
Copy link
Contributor

@trickymee: This issue is currently awaiting triage.

SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sftim
Copy link
Contributor

sftim commented Jun 28, 2022

/retitle Request for help troubleshooting kubelet startup
/kind support

@k8s-ci-robot k8s-ci-robot changed the title Starting kubelet Request for help troubleshooting kubelet startup Jun 28, 2022
@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Jun 28, 2022
@neolit123
Copy link
Member

could be this:

When you upgrade, the kubelet restarts every few seconds as it waits in a crashloop for kubeadm to tell it what to do. This crashloop is expected and normal. After you initialize your control-plane, the kubelet runs normally.

https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/

@neolit123
Copy link
Member

@k8s-ci-robot
Copy link
Contributor

@neolit123: Closing this issue.

In response to this:

please see:
https://github.com/kubernetes/kubernetes/blob/master/SUPPORT.md

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trickymee
Copy link
Author

mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

This fixed the issue.

@Zia-Eurus
Copy link

@trickymee When I run the the above commands

sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config

It's throw an error
cp: cannot stat '/etc/kubernetes/admin.conf': No such file or directory

@souleymanix
Copy link

souleymanix commented Feb 19, 2023

@trickymee @sftim

yeah me too i don't know what to do if they respond this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

6 participants