Reference

Edit This Page

Writes an environment file with runtime flags for the kubelet.

Synopsis

Writes an environment file with flags that should be passed to the kubelet executing on the master or node. This –config flag can either consume a InitConfiguration object or a JoinConfiguration one, as this function is used for both “kubeadm init” and “kubeadm join”.

Alpha Disclaimer: this command is currently alpha.

kubeadm alpha phase kubelet write-env-file [flags]

Examples

  # Writes a dynamic environment file with kubelet flags from a InitConfiguration file.
  kubeadm alpha phase kubelet write-env-file --config masterconfig.yaml
  
  # Writes a dynamic environment file with kubelet flags from a JoinConfiguration file.
  kubeadm alpha phase kubelet write-env-file --config nodeconfig.yaml

Options

--config string
Path to kubeadm config file (WARNING: Usage of a configuration file is experimental)
-h, --help
help for write-env-file

Options inherited from parent commands

--rootfs string
[EXPERIMENTAL] The path to the 'real' host root filesystem.