github.com/buildtool/build-tools@v0.2.29-0.20240322150259-6a1d0a553c23/www/docs/commands/deploy.md (about)

     1  # deploy
     2  
     3  Deploys the built application to a Kubernetes cluster. Normal usage `deploy <target>`, but additional flags can be used to override:
     4  
     5  |      Flag             |                   Description                                                   |
     6  | :-------------------- | :-------------------------------------------------------------------------------|
     7  | `--context`, `-c`           | Use a different context than the one found in configuration                     |
     8  | `--namespace`, `-n`         | Use a different namespace than the one found in configuration                   |
     9  | `--timeout`, `-t`           | Override the default deployment waiting time for completion (default 2 minutes). <br>0 means forever, all other values should contain a corresponding time unit (e.g. 1s, 2m, 3h)|
    10  | `--tag`                    | Override the default tag to use (instead of the current commit tag or the value from CI) |
    11   | `--no-wait`                | Don't wait for deployment to become ready |
    12  
    13  ## Default usage, with `.buildtools.yaml` file
    14  Only the `target` name has to be specified
    15  ```sh
    16  $ deploy local
    17  ```
    18  
    19  ### Overriding namespace from config:
    20  ```sh
    21  $ deploy --namespace test local
    22  ```
    23  
    24  
    25  ## Usage without `.buildtools.yaml` file
    26  In this case we need to at least specify the Kubernetes context to use for deployment:
    27  ```sh
    28  $ deploy --context docker-desktop
    29  ```
    30  
    31  This will set the `namespace` to `default`
    32  
    33  ### Specifying namespace:
    34  ```sh
    35  $ deploy --context docker-desktop --namespace test
    36  ```