Add notes for file/flag precedence
This commit is contained in:
committed by
Andrew Chen
parent
b4b64e9dc2
commit
0ef468e48b
@@ -105,6 +105,19 @@ A kubeadm specific [config file](#config-file). This can be used to specify an
|
|||||||
extended set of options including passing arbitrary command line flags to the
|
extended set of options including passing arbitrary command line flags to the
|
||||||
control plane components.
|
control plane components.
|
||||||
|
|
||||||
|
**Note**: When providing configuration values using _both_ a configuration file
|
||||||
|
and flags, the file will take precedence. For example, if a file exists with:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
apiVersion: kubeadm.k8s.io/v1alpha1
|
||||||
|
kind: MasterConfiguration
|
||||||
|
token: 1234
|
||||||
|
```
|
||||||
|
|
||||||
|
and the user ran `kubeadm init --config file.yaml --token 5678`,
|
||||||
|
the chosen token value will be `1234`.
|
||||||
|
|
||||||
|
|
||||||
- `--kubernetes-version` (default 'latest') the kubernetes version to initialise
|
- `--kubernetes-version` (default 'latest') the kubernetes version to initialise
|
||||||
|
|
||||||
The **v1.6** version of kubeadm only supports building clusters that are at
|
The **v1.6** version of kubeadm only supports building clusters that are at
|
||||||
|
|||||||
Reference in New Issue
Block a user