ks env set

Set environment-specific fields (name, namespace, server)

Synopsis

The set command lets you change the fields of an existing environment.
You can currently only update your environment’s name.

Note that changing the name of an environment will also update the corresponding
directory structure in environments/.

  • ks env list — List all environments in a ksonnet application

Syntax

  1. ks env set <env-name> [flags]

Examples

  1. # Update the name of the environment 'us-west/staging'.
  2. # Updating the name will update the directory structure in 'environments/'.
  3. ks env set us-west/staging --name=us-east/staging
  4. # Setting k8s API version for an environment
  5. ks env set us-west/staging --api-spec=version:v1.8.0
  6. # Updating the server
  7. ks env set us-west/staging --server=https://192.168.99.100:8443

Options

  1. --api-spec string Kubernetes version for environment
  2. -h, --help help for set
  3. --name string Name used to uniquely identify the environment. Must not already exist within the ksonnet app
  4. --namespace string Namespace for environment
  5. -o, --override Set fields in environment as override
  6. --server string Cluster server for environment

Options inherited from parent commands

  1. --dir string Ksonnet application root to use; Defaults to CWD
  2. --tls-skip-verify Skip verification of TLS server certificates
  3. -v, --verbose count Increase verbosity. May be given multiple times.

SEE ALSO

  • ks env - Manage ksonnet environments