Merge pull request #6130 from jamiehannaford/kubeadm-extra-args

Make kubeadm docs for extra args clearer
This commit is contained in:
Qiming
2017-11-08 09:33:32 +08:00
committed by GitHub
2 changed files with 36 additions and 13 deletions
+24
View File
@@ -1006,6 +1006,30 @@ In summary, `kubeadm init --feature-gates=SelfHosting=true` works as follows:
This process (steps 3-6) can also be triggered with `kubeadm phase selfhosting convert-from-staticpods`.
## Customising the control plane with custom arguments {#custom-args}
If you would like to override or extend the behaviour of a control plane component, you can provide
extra arguments to kubeadm. When the component is deployed, it will use these additional arguments _in its
pod command_.
For example, to add flag `--feature-gates=APIResponseCompression=true` to kube-apiserver, your [configuration file](#sample-master-configuration)
will need to look like this:
```
apiVersion: kubeadm.k8s.io/v1alpha1
kind: MasterConfiguration
apiServerExtraArgs:
feature-gates: APIResponseCompression=true
```
To customise the scheduler or controller-manager, use `schedulerExtraArgs` and `controllerManagerExtraArgs` respectively.
More information on custom arguments can be found here:
- [kube-apiserver](https://kubernetes.io/docs/admin/kube-apiserver/)
- [kube-controller-manager](https://kubernetes.io/docs/admin/kube-controller-manager/)
- [kube-scheduler](https://kubernetes.io/docs/admin/kube-scheduler/)
## Releases and release notes
If you already have kubeadm installed and want to upgrade, run `apt-get update