kubernetes/cmd
Kubernetes Submit Queue 698ac55852
Merge pull request #64187 from luxas/kubeadm_kubelet_improve_security
Automatic merge from submit-queue (batch tested with PRs 64174, 64187, 64216, 63265, 64223). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

kubeadm: Improve the kubelet default configuration security-wise

**What this PR does / why we need it**:
 - Disables the readonly port for the kubelets in the cluster
 - Enables delegated SA token authentication for the secure kubelet port (GCE also did this ref: https://github.com/kubernetes/kubernetes/pull/58178)
 - Follows up https://github.com/kubernetes/kubernetes/pull/63912 to move the last flag from the system dropin to the ComponentConfig

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes https://github.com/kubernetes/kubeadm/issues/732
Fixes https://github.com/kubernetes/kubeadm/issues/650
Replaces https://github.com/kubernetes/kubernetes/pull/57997

**Special notes for your reviewer**:
In order to make sure this actually works, or that clusters actually are secure, we're adding e2e tests for this: https://github.com/kubernetes/kubeadm/issues/838 & https://github.com/kubernetes/kubernetes/pull/64140
Depends on https://github.com/kubernetes/kubernetes/pull/63912

**Release note**:

```release-note
[action required] kubeadm: kubelets in kubeadm clusters now disable the readonly port (10255). If you're relying on unauthenticated access to the readonly port, please switch to using the secure port (10250). Instead, you can now use ServiceAccount tokens when talking to the secure port, which will make it easier to get access to e.g. the `/metrics` endpoint of the kubelet securely.
```
@kubernetes/sig-cluster-lifecycle-pr-reviews 
@kubernetes/sig-auth-pr-reviews FYI
2018-05-24 09:41:13 -07:00
..
clicheck wire config flags through factory 2018-05-04 17:02:20 -04:00
cloud-controller-manager do some code clean for cloud-controller manager 2018-05-23 17:28:02 +08:00
controller-manager auto generated file 2018-05-18 10:23:38 +08:00
gendocs wire config flags through factory 2018-05-04 17:02:20 -04:00
genkubedocs Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
genman wire config flags through factory 2018-05-04 17:02:20 -04:00
genswaggertypedocs Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
genutils Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
genyaml wire config flags through factory 2018-05-04 17:02:20 -04:00
hyperkube Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
importverifier fix message output for import verifier 2018-05-10 12:50:28 -04:00
kube-apiserver Correctly identify types served in the kube-apiserver openapi doc 2018-05-22 20:57:18 -04:00
kube-controller-manager Merge pull request #61419 from enisoc/apps-v1-deploy 2018-05-23 18:14:13 -07:00
kube-proxy Add --ipvs-exclude-cidrs flag to kube-proxy. 2018-04-13 10:09:14 -07:00
kube-scheduler fix little bug in kube-scheduler options 2018-05-17 16:59:39 +08:00
kubeadm Merge pull request #64187 from luxas/kubeadm_kubelet_improve_security 2018-05-24 09:41:13 -07:00
kubectl kubectl use its own logs 2018-05-22 11:35:38 +08:00
kubelet kubelet: Move RotateCertificates to the KubeletConfiguration struct 2018-05-23 00:19:11 +03:00
kubemark Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
linkcheck Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
BUILD gke-certificates-controller: rm -rf 2018-02-15 12:01:00 -08:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00