Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

The --api-servers is no longer supported by Kubelet 1.9, use the kubelet.kubeconfig approach. #2863

Merged
merged 1 commit into from May 2, 2018

Conversation

adelton
Copy link
Contributor

@adelton adelton commented Feb 26, 2018

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 26, 2018
@k8s-reviewable
Copy link

This change is Reviewable

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 26, 2018
@mikedanese mikedanese removed their request for review April 19, 2018 20:01
@@ -10,5 +10,9 @@ KUBELET_ADDRESS="--address=127.0.0.1"
# You may leave this blank to use the actual hostname
KUBELET_HOSTNAME="--hostname-override=127.0.0.1"

# Edit the kubelet.kubeconfig to have correct cluster server address
# then uncomment this line
# KUBELET_KUBECONFIG=/etc/kubernetes/kubelet.kubeconfig
Copy link
Contributor

Choose a reason for hiding this comment

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

# KUBELET_KUBECONFIG=--kubeconfig=/etc/kubernetes/kubelet.kubeconfig

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True.

kind: Config
clusters:
- cluster:
server: http://replace_with_master_hostname:8080/
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to be either templated or set to localhost.

@@ -11,7 +11,7 @@ EnvironmentFile=-/etc/kubernetes/kubelet
ExecStart=/usr/bin/kubelet \
$KUBE_LOGTOSTDERR \
$KUBE_LOG_LEVEL \
$KUBELET_API_SERVER \
$KUBELET_KUBECONFIG \
Copy link
Contributor

Choose a reason for hiding this comment

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

KUBELET_KUBECONFIG is currently commented out so the service would fail when run.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Undefined value should not harm. We can of course uncomment that KUBELET_KUBECONFIG assignment above if you prefer.

@ingvagabund
Copy link
Contributor

This fix is applicable only for 1-node cluster deployments. In order to support multi-node deployments, we need to update Ansible role at https://github.com/kubernetes/contrib/tree/master/ansible/roles/node as well. Plus, the Ansible in this repo is no longer supported.

@adelton
Copy link
Contributor Author

adelton commented Apr 30, 2018

This fix is applicable only for 1-node cluster deployments.

Well, it's an attempt to address kubernetes/website#7521 which is about https://kubernetes.io/docs/getting-started-guides/fedora/fedora_manual_config/ which is specifically single-node setup.

Would the proposed changes (if they get updated to address your comments) harm the multi-host setup, compared to the state today?

@adelton
Copy link
Contributor Author

adelton commented Apr 30, 2018

Rebased on master, uncommented KUBELET_KUBECONFIG, changed the server to http://127.0.0.1:8080/ -> f4ce29d.

@ingvagabund
Copy link
Contributor

None of the changed files are used during the Ansible deployment. Given the systemd files are supposed to be used with the latest k8s version, they are currently unusable. So it's safe to merge the changes. Assuming admin/user will modify the files properly.

Thanks Jan for the fixes.

@ingvagabund
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 2, 2018
@ingvagabund
Copy link
Contributor

/approve

@ingvagabund ingvagabund added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 2, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: adelton, ingvagabund

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 23789f7 into kubernetes-retired:master May 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants