tanzu domain

Create and manage Domain custom resources (CRs) for Projects in Tanzu Platform.

Prerequisites

  • A Project in Tanzu Platform that has been specified for Tanzu CLI operations with the tanzu project use command

Usage

CLI Plugin: domain | Target: global | Primarily used for: Platform Operations | Release Notes

Syntax:

  tanzu domain [command]

Commands

  create  Create a Domain CR.
  delete  Delete a Domain CR.
  get     Get a Domain CR.
  list    List Domain CRs.
  update  Update Domain CRs.

Global Flags

  -h, --help   help for domain

tanzu domain create

Create a Domain CRs inside the current Project.

Usage

tanzu domain create [flags]

Flags

      --allowed-ports strings         provide list of allowed ports
      --auto-assignable-subdomains    
      --certificate-provider string   provide details of certificate provider
      --dns-provider string           provide details of dns provider

Example

$ tanzu domain create test.corp.com --certificate-provider dev.corp.com \
    --dns-provider dev.corp.com --allowed-ports 443 --allowed-ports 1024 \
    --auto-assignable-subdomains

Domain test.corp.com created

tanzu domain delete

Delete a domain

Usage

tanzu domain delete [flags]

Example

$ tanzu domain delete example.com
Domain test.corp.com deleted

tanzu domain get

Get domain CRs present in the current Project.

Usage

tanzu domain get [flags]

Example

$ tanzu domain get dev.corp.com
Overview
  Domain:                dev.corp.com
  Allowed Subdomains:    *
  Allowed Ports:         443
  Allowed Spaces:        *
  Auto-Assignable:       subdomains

tanzu domain list

Display list of domain CRs present in the current Project.

Usage

tanzu domain list [flags]

Example

$ tanzu domain list
  DOMAIN         ALLOWED SUBDOMAINS  ALLOWED PORTS  ALLOWED SPACES  AUTO-ASSIGNABLE
  dev.corp.com   *                   443            *               subdomains
  test.corp.com                      443,1024                       subdomains

tanzu domain update

Update domain CRs present in the current Project.

Flags

  --allowed-spaces strings   provide list of allowed spaces

Usage

tanzu domain update [flags]

Example

$ tanzu domain update test.corp.com --allowed-spaces "corp-com-prod"
Domain test.corp.com updated
check-circle-line exclamation-circle-line close-line
Scroll to top icon