kops replace

kops replace

Replace cluster resources.

Synopsis

Replace a resource desired configuration by filename or stdin.

  1. kops replace {-f FILENAME}... [flags]

Examples

  1. # Replace a cluster desired configuration using a YAML file
  2. kops replace -f my-cluster.yaml
  3. # Replace an instancegroup using YAML passed into stdin.
  4. cat instancegroup.yaml | kops replace -f -
  5. # Note, if the resource does not exist the command will error, use --force to provision resource
  6. kops replace -f my-cluster.yaml --force

Options

  1. -f, --filename strings A list of one or more files separated by a comma.
  2. --force Force any changes, which will also create any non-existing resource
  3. -h, --help help for replace

Options inherited from parent commands

  1. --config string yaml config file (default is $HOME/.kops.yaml)
  2. --name string Name of cluster. Overrides KOPS_CLUSTER_NAME environment variable
  3. --state string Location of state storage (kops 'config' file). Overrides KOPS_STATE_STORE environment variable
  4. -v, --v Level number for the log level verbosity

SEE ALSO

  • kops - kOps is Kubernetes Operations.