tye deploy
Name
tye deploy - Deploys the application to Kubernetes.
Synopsis
tye deploy [-?|-h|--help] [-i|--interactive] [-v|--verbosity <Debug|Info|Quiet>] [-n|--namespace <n>] [-f|--framework <framework>] [--tags <tags>] [--force] [<PATH>]Description
The tye deploy command will deploy an application to Kubernetes. tye deploy by default will:
- Create a docker image for each project in your application.
- Push each docker image to your container registry.
- Generate a Kubernetes Deployment and Service for each project.
- Apply the generated Deployment and Service to your current Kubernetes context.
tye deploy chooses the Kubernetes namespace to operate in according to the following priority:
- The value of
--namespacepassed at the command line - The value of
namespaceconfigured intye.yaml(if present) - The Kubernetes namespace for the current context
💡 Use
kubectl config view --minify --output 'jsonpath={..namespace}'to view the current namespace.
⚠️ The
tye deploycommand requires access to a remote container registry. Images will be tagged using the registry configured intye.yaml(if present), or using a registry supplied interactively at the command line.
💡 The
tye deploycommand uses Docker's credentials for pushing to the remote container registry. Make sure Docker is configured to push to your registry before runningtye deploy.
💡 The
tye deploycommand uses your local Kubernetes context to access the Kubernetes cluster. Make surekubectlis configured to manage your cluster before runningtye deploy.
Arguments
PATH
The path to either a file or directory to execute tye deploy on. Can either be a yaml, sln, or project file, however it is recommend to have a tye.yaml file for tye deploy.
If a directory path is specified, tye deploy will default to using these files, in the following order:
tye.yaml*.sln*.csproj/*.fsproj
Options
-i|--interactiveDoes an interactive deployment that will accept input for values that are required by default.
-v|--verbosity <Debug|Info|Quiet>The verbosity of logs emitted by
tye deploy. Defaults to Info.-n|--namespaceSpecifies the Kubernetes namespace for deployment. Overrides a namespace value set in
tye.yaml.-f|--framework <framework>The target framework hint to use for all cross-targeting projects with multiple TFMs. This value must be a valid target framework for each individual cross-targeting project. Non-crosstargeting projects will ignore this hint and the value TFM configured in tye.yaml will override this hint.
--tags <tags>Filter the group of running services by tag.
--forceOverride validation and forces deployment.
Examples
Deploy an application from the current directory:
texttye deployDeploy an application with interactive input:
texttye deploy --interactiveDeploy an application, increasing log verbosity to Debug.
texttye deploy --verbosity Debug