add kubeadm ClusterConfiguration usage (#15175)
* add usage * update note * update note * update ClusterConfiguration yml
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
e2802088a8
commit
9c1af4ddb8
@@ -21,10 +21,15 @@ The `extraArgs` field consist of `key: value` pairs. To override a flag for a co
|
|||||||
|
|
||||||
1. Add the appropriate fields to your configuration.
|
1. Add the appropriate fields to your configuration.
|
||||||
2. Add the flags to override to the field.
|
2. Add the flags to override to the field.
|
||||||
|
3. Run `kubeadm init` with `--config <YOUR CONFIG YAML>`.
|
||||||
|
|
||||||
For more details on each field in the configuration you can navigate to our
|
For more details on each field in the configuration you can navigate to our
|
||||||
[API reference pages](https://godoc.org/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2#ClusterConfiguration).
|
[API reference pages](https://godoc.org/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2#ClusterConfiguration).
|
||||||
|
|
||||||
|
{{< note >}}
|
||||||
|
You can generate a `ClusterConfiguration` object with default values by running `kubeadm config print init-defaults` and saving the output to a file of your choice.
|
||||||
|
{{< /note >}}
|
||||||
|
|
||||||
{{% /capture %}}
|
{{% /capture %}}
|
||||||
|
|
||||||
{{% capture body %}}
|
{{% capture body %}}
|
||||||
@@ -38,12 +43,10 @@ Example usage:
|
|||||||
apiVersion: kubeadm.k8s.io/v1beta2
|
apiVersion: kubeadm.k8s.io/v1beta2
|
||||||
kind: ClusterConfiguration
|
kind: ClusterConfiguration
|
||||||
kubernetesVersion: v1.13.0
|
kubernetesVersion: v1.13.0
|
||||||
metadata:
|
|
||||||
name: 1.13-sample
|
|
||||||
apiServer:
|
apiServer:
|
||||||
extraArgs:
|
extraArgs:
|
||||||
advertise-address: 192.168.0.103
|
advertise-address: 192.168.0.103
|
||||||
anonymous-auth: false
|
anonymous-auth: "false"
|
||||||
enable-admission-plugins: AlwaysPullImages,DefaultStorageClass
|
enable-admission-plugins: AlwaysPullImages,DefaultStorageClass
|
||||||
audit-log-path: /home/johndoe/audit.log
|
audit-log-path: /home/johndoe/audit.log
|
||||||
```
|
```
|
||||||
@@ -57,13 +60,11 @@ Example usage:
|
|||||||
apiVersion: kubeadm.k8s.io/v1beta2
|
apiVersion: kubeadm.k8s.io/v1beta2
|
||||||
kind: ClusterConfiguration
|
kind: ClusterConfiguration
|
||||||
kubernetesVersion: v1.13.0
|
kubernetesVersion: v1.13.0
|
||||||
metadata:
|
|
||||||
name: 1.13-sample
|
|
||||||
controllerManager:
|
controllerManager:
|
||||||
extraArgs:
|
extraArgs:
|
||||||
cluster-signing-key-file: /home/johndoe/keys/ca.key
|
cluster-signing-key-file: /home/johndoe/keys/ca.key
|
||||||
bind-address: 0.0.0.0
|
bind-address: 0.0.0.0
|
||||||
deployment-controller-sync-period: 50
|
deployment-controller-sync-period: "50"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Scheduler flags
|
## Scheduler flags
|
||||||
@@ -75,8 +76,6 @@ Example usage:
|
|||||||
apiVersion: kubeadm.k8s.io/v1beta2
|
apiVersion: kubeadm.k8s.io/v1beta2
|
||||||
kind: ClusterConfiguration
|
kind: ClusterConfiguration
|
||||||
kubernetesVersion: v1.13.0
|
kubernetesVersion: v1.13.0
|
||||||
metadata:
|
|
||||||
name: 1.13-sample
|
|
||||||
scheduler:
|
scheduler:
|
||||||
extraArgs:
|
extraArgs:
|
||||||
address: 0.0.0.0
|
address: 0.0.0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user