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

adding kubelet config.yaml path which is used in kubeadm for centos a… #208

Closed
wants to merge 1 commit into from

Conversation

OrlinVasilev
Copy link

…nd ubuntu

@lizrice
Copy link
Contributor

lizrice commented Jan 25, 2019

Oh... I think you have uncovered something more significant!

  • The remediation text in 2.1.* tests refer to a "kubelet service file" in which you can change parameters. We use the substitution parameter $kubeletconf for this. Looking at the files on a kubeadm installation, this should be /var/lib/kubelet/config.yaml (as suggested in your PR here, @OrlinVasilev, thank you)

  • The tests in 2.2.* refer to a number of kubelet-related files. 2.2.9 and 2.2.10 are about /var/lib/kubelet/config.yaml, but we don't currently have a substitution parameter for that one.

  • 2.2.1 and 2.2.2 refer to the kubelet.conf file /etc/kubernetes/kubelet.conf. This is the kubeconfig file for the kubelet - essentially the credentials for the kubelet, not its configuration parameters.

  • 2.2.3 and 2.2.4 refer to the service file, as in, a systemd service file. I need to check on this but I think this approach is now replaced by the /var/lib/kubelet/config.yaml

  • 2.2.5-2.2.8 refer to other files that I think are OK.

If the above is correct, I think we are currently using $kubeletconf to represent both the parameters file which should be /var/lib/kubelet/config.yaml, and the kubeconfig file at /etc/kubernetes/kubelet.conf. This is wrong, and we need another substitution parameter!

I'd suggest

  • make $kubeletconf represent the parameter config file: change the definition (and the default definition under defaultconf) to /var/lib/kubelet/config.yaml
  • have a new substitution parameter $kubeletkubeconfig (wdyt?) for the kubeconfig file at /etc/kubernetes/kubelet.conf- @ttousai will this need a change to the Go code to pick it up?
  • change 2.2.1 and 2.2.2 to use $kubeletkubeconfig

Wdyt? I would appreciate someone else checking my working here @OrlinVasilev @ttousai

Copy link
Contributor

@ttousai ttousai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lizrice your deductions are completely correct, we will need a new parameter for the correct behaviour.
This will require change in the Go code to pick it up. I will take care of it.

@OrlinVasilev
Copy link
Author

@lizrice completely agree I'll be more than happy to help out with that :)

@lizrice lizrice added the bug label Feb 13, 2019
ttousai added a commit that referenced this pull request Feb 27, 2019
This fix applies to only checks for kubernetes versions 1.8 and 1.11.
See #208.
@lizrice
Copy link
Contributor

lizrice commented Mar 3, 2019

@OrlinVasilev we think this is now sorted out with #228 - does this work for you?

@OrlinVasilev
Copy link
Author

@lizrice you looks great thanks

@lizrice lizrice closed this Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants