Tye is a tool that makes developing, testing, and deploying microservices and distributed applications easier. Project Tye includes a local orchestrator to make developing microservices easier and the ability to deploy microservices to Kubernetes with min
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1.9 KiB

tye undeploy

Name

tye undeploy - Removes a deployed application from Kubernetes.

Synopsis

tye undeploy [-?|-h|--help] [-i|--interactive] [-v|--verbosity <Debug|Info|Quiet>] [--what-if] [<PATH>]

Description

The tye undeploy command will delete a deployed application from Kubernetes. tye undeploy by default will:

  • List all resources that are part of an application
  • Print the list of resources (what-if)
  • Offer a choice to delete each resource (interactive)
  • Delete each resource (if applicable)

tye undeploy operates in the current Kubernetes namespace. Use kubectl config view --minify --output 'jsonpath={..namespace}' to view the current namespace.

Undeploy decides which resources to delete based on the app.kubernetes.io/part-of=... label. This label will be set to the application name for all resources created by Tye. tye undeploy does not rely on the list of services in tye.yaml or a solution file.

Arguments

PATH

The path to either a file or directory to execute tye undeploy on. Can either be a yaml, sln, or project file, however it is recommend to have a tye.yaml file for tye undeploy.

If a directory path is specified, tye undeploy will default to using these files, in the following order:

  • tye.yaml
  • *.sln
  • *.csproj/*.fsproj

Options

  • -i|--interactive

    Does an interactive undeploy that will prompt for deletion of each resource.

  • -v|--verbosity <Debug|Info|Quiet>

    The verbosity of logs emitted by tye undeploy. Defaults to Info.

  • --what-if

    Print each resource instead of deleting.

Examples

  • Delete a deployed application from the current directory:

    tye undeploy
    
  • Delete a deployed application with interactive input:

    tye undeploy --interactive
    
  • Display the resources that would be deleted by an undeploy operation:

    tye undeploy --what-if