Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

--require-kubeconfig deprecated in kubernetes 1.10.0 #918

Closed
DongZhaoYu opened this issue Jul 18, 2018 · 3 comments
Closed

--require-kubeconfig deprecated in kubernetes 1.10.0 #918

DongZhaoYu opened this issue Jul 18, 2018 · 3 comments
Assignees

Comments

@DongZhaoYu
Copy link
Member

Kubernetes deprecated --require-kubeconfig parameter in v1.10.0 . So we need to change our launching script when starting kubelet.

@YitongFeng
Copy link
Contributor

K8s version >= 1.10, need to remove --require-kubeconfig and specify config file path with --kubeconfig.

In old K8s version, there are two ways to specify the master (refer to v1.7 doc https://v1-7.docs.kubernetes.io/docs/admin/kubelet/ ):

  1. With flag –api-servers
  2. With flags --require-kubeconfig + --kubeconfig. --kubeconfig is path to a kubeconfig file (default is "/var/lib/kubelet/kubeconfig", specifying how to connect to the API server, if --require-kubeconfig is not set, --api-servers will be used.

In higher version of K8s, the --api-servers and --require-kubeconfig are both deprecated.
Currently PAI use k8s v1.9, it just throw a warning, in >=v1.10, they are totally removed in this PR (kubernetes/kubernetes#58367 ), note that it also removed the default path of –kubeconfig, which means we must specify --kubeconfig in >= 1.10 version

@fanyangCS
Copy link
Contributor

fanyangCS commented Jul 19, 2018

We can keep our current k8s version for now as I do not see a reason to upgrade. We can come back to his issue when we need to upgrade.

@fanyangCS
Copy link
Contributor

@YitongFeng would be good to provide a reason to close this issue.

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

No branches or pull requests

4 participants