Skip to main content

wf create namespace

wf create namespace

Creates a namespace within a managed cluster


Lets you create a namespace on a provisioned cluster

wf create namespace [flags]


# 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


  -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              Indicates we should use debug / trace logging (default: false)
--force Used to force an operation to happen (default: false)
--no-wait Indicates we should not wait for resources to provision
--profile string Use a profile other than your default for this command
--show-headers Indicates we should display headers on table out (default true)
--verbose Enables verbose logging for debugging purposes (default: false)
-w, --workspace string The workspace you are operating within