Skip to main content

wf create namespace

wf create namespace

Creates a namespace within a managed cluster

Synopsis

Lets you create a namespace on a provisioned cluster

wf create namespace [flags]

Examples


# Create a namespace on a given cluster
$ wf create namespace -c cluster -w <workspace> my-namespace

# Delete a namespace on a given cluster
$ wf delete namespace -c cluster -w <workspace> my-namespace

# List all namespaces on all clusters owned by a workspace
$ wf get namespace -w <workspace>

# List all namespaces on a given cluster
$ wf get namespace -w <workspace> -c cluster

Options

  -c, --cluster string                 the unique name of the cluster you are creating the namespace in
--dry-run string Validates resources without persisting - 'client' performs limited local schema checks and prints the resources, 'server' performs full validation of each resource with the API. Default: 'none' (default "none")
-h, --help help for namespace
--non-interactive does not prompt interactively
-o, --output string Outputs the resources being applied to your terminal in the specified format (supports json, yaml).
-p, --pod-security-standard string the pod security standard level to apply to the namespace

Options inherited from parent commands

      --debug              Debug / trace logging (default: false)
--force Force operation to happen (default: false)
--no-wait Do not wait for resources to provision
--profile string Use a profile other than your current - to change current: wf use profile NAME
--show-headers Display headers on table out (default true)
--verbose Verbose logging (default: false)
-w, --workspace string Workspace to use - to change default: wf use workspace NAME

SEE ALSO