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

Issue with k8s.io/docs/getting-started-guides/fedora/fedora_manual_config/ #7521

Closed
1 of 2 tasks
adelton opened this issue Feb 26, 2018 · 5 comments
Closed
1 of 2 tasks
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. sig/node Categorizes an issue or PR as relevant to SIG Node.

Comments

@adelton
Copy link

adelton commented Feb 26, 2018

This is a...

  • Feature Request
  • Bug Report

Problem:

The page https://kubernetes.io/docs/getting-started-guides/fedora/fedora_manual_config/ says:


    Edit /etc/kubernetes/kubelet to appear as such:

###
# Kubernetes kubelet (node) config

# The address for the info server to serve on (set to 0.0.0.0 or "" for all interfaces)
KUBELET_ADDRESS="--address=0.0.0.0"

# You may leave this blank to use the actual hostname
KUBELET_HOSTNAME="--hostname-override=fed-node"

# location of the api-server
KUBELET_API_SERVER="--api-servers=http://fed-master:8080"

# Add your own!
#KUBELET_ARGS=""

When I do that, attempt to start the kubelet service seemingly passes but systemctl status kubelet reports

Failed to start Kubernetes Kubelet Server.

and journalctl _COMM=kubelet -l says

Feb 26 12:34:33 kubernetes-cri-o.example.test kubelet[3707]: Error: unknown flag: --api-servers
Feb 26 12:34:33 kubernetes-cri-o.example.test kubelet[3707]: The kubelet binary is responsible for maintaining a set of containers on a
Feb 26 12:34:33 kubernetes-cri-o.example.test kubelet[3707]:   particular node. It syncs data from a variety of sources including a
Feb 26 12:34:33 kubernetes-cri-o.example.test kubelet[3707]:   Kubernetes API server, an etcd cluster, HTTP endpoint or local file. It then
Feb 26 12:34:33 kubernetes-cri-o.example.test kubelet[3707]:   queries Docker to see what is currently running.  It synchronizes the
Feb 26 12:34:33 kubernetes-cri-o.example.test kubelet[3707]:   configuration data, with the running set of containers by starting or stopping
Feb 26 12:34:33 kubernetes-cri-o.example.test kubelet[3707]:   Docker containers.
Feb 26 12:34:33 kubernetes-cri-o.example.test kubelet[3707]: Usage:
Feb 26 12:34:33 kubernetes-cri-o.example.test kubelet[3707]:   kubelet [flags]
[...]

Proposed Solution:

Update the documentation to match the current software.

Page to Update:
https://kubernetes.io/docs/getting-started-guides/fedora/fedora_manual_config/

Kubernetes Version:

# rpm -qa 'kubernetes*'
kubernetes-client-1.9.1-5.fc27.x86_64
kubernetes-node-1.9.1-5.fc27.x86_64
kubernetes-master-1.9.1-5.fc27.x86_64
kubernetes-1.9.1-5.fc27.x86_64
@adelton
Copy link
Author

adelton commented Feb 26, 2018

I was able to make things work to the point where the node shows up in the kubectl get nodes by creating /etc/kubernetes/kubelet.kubeconfig with content

apiVersion: v1
kind: Config
clusters:
  - cluster:
      server: http://kubernetes-cri-o.example.test:8080/
    name: local
contexts:
  - context:
      cluster: local
    name: local
current-context: local

and adding --kubeconfig=/etc/kubernetes/kubelet.kubeconfig to KUBELET_ARGS in /etc/kubernetes/kubelet.

I took inspiration from https://github.com/kubernetes/kubernetes/pull/40050/files. Maybe the Fedora packaging ought to be changed to ship an example kubelet.kubeconfig file and use the KUBELET_KUBECONFIG environment variable?

@adelton
Copy link
Author

adelton commented Feb 26, 2018

I've now filed https://bugzilla.redhat.com/show_bug.cgi?id=1549151 to improve the packaging in Fedora.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 3, 2018
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jul 3, 2018
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. sig/node Categorizes an issue or PR as relevant to SIG Node.
Projects
None yet
Development

No branches or pull requests

4 participants