Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Latest commit

 

History

History
62 lines (40 loc) · 1.6 KB

ks_env_set.md

File metadata and controls

62 lines (40 loc) · 1.6 KB

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/.

Related Commands

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

Syntax

ks env set <env-name> [flags]

Examples

# Update the name of the environment 'us-west/staging'.
# Updating the name will update the directory structure in 'environments/'.
ks env set us-west/staging --name=us-east/staging

# Setting k8s API version for an environment
ks env set us-west/staging --api-spec=version:v1.8.0

# Updating the server
ks env set us-west/staging --server=https://192.168.99.100:8443

Options

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

Options inherited from parent commands

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

SEE ALSO

  • ks env - Manage ksonnet environments