|
2 | 2 | title: devspace up |
3 | 3 | --- |
4 | 4 |
|
5 | | -With `devspace up`, you build your image, start your DevSpace and connect to it. |
| 5 | +With `devspace up`, the defined images are build, deployments are deployed and services started. |
6 | 6 |
|
7 | 7 | The command will do the following: |
8 | 8 |
|
9 | | -1. Ensure that a tiller server is available (if not it will automatically deploy one to the specified namespace) |
10 | | -2. Optionally it will deploy a docker registry if this was desired |
11 | | -3. Build the docker image if changed or forced by -b |
12 | | - * Push the built image to the specified registry |
13 | | -5. Redeploy the chart if release was not found, image was rebuilt or -d option was specified |
14 | | -6. Establish port forwarding and sync |
15 | | -7. Execute the specified command in the container (default: open a terminal) |
| 9 | +1. Build the specified images using docker or kaniko |
| 10 | +2. Push the built images to the corresponding registries (either to a local or remote registry) |
| 11 | +3. Deploy the configured deployments via helm or kubectl |
| 12 | +4. Establish port forwarding and sync |
| 13 | +5. Execute the specified command in the selected container (default: open a terminal) |
16 | 14 |
|
17 | | -```bash |
| 15 | +``` |
18 | 16 | Usage: |
19 | 17 | devspace up [flags] |
20 | 18 |
|
21 | 19 | Flags: |
22 | | - -b, --build Force image build |
23 | | - -c, --container string Container name where to open the shell |
24 | | - -d, --deploy Force chart deployment |
25 | | - -h, --help help for up |
26 | | - --init-registries Initialize registries (and install internal one) (default true) |
27 | | - --no-sleep Enable no-sleep (Override the containers.default.command and containers.default.args values with empty strings) |
28 | | - --portforwarding Enable port forwarding (default true) |
29 | | - --sync Enable code synchronization (default true) |
30 | | - --tiller Install/upgrade tiller (default true) |
31 | | - --verbose-sync When enabled the sync will log every file change |
| 20 | + -b, --build Force image build |
| 21 | + -c, --container string Container name where to open the shell |
| 22 | + -d, --deploy Force chart deployment |
| 23 | + -h, --help help for up |
| 24 | + --init-registries Initialize registries (and install internal one) (default true) |
| 25 | + -l, --label-selector string Comma separated key=value selector list (e.g. release=test) |
| 26 | + -n, --namespace string Namespace where to select pods |
| 27 | + --portforwarding Enable port forwarding (default true) |
| 28 | + --switch-context Switch kubectl context to the devspace context |
| 29 | + --sync Enable code synchronization (default true) |
| 30 | + --tiller Install/upgrade tiller (default true) |
| 31 | + --verbose-sync When enabled the sync will log every file change |
32 | 32 |
|
33 | 33 | Examples: |
34 | | -devspace up # Start the devspace |
35 | | -devspace up bash # Execute bash command after deploying |
| 34 | +devspace up # Start the devspace |
| 35 | +devspace up bash # Execute bash command after deploying |
| 36 | +devspace up --switch-context # Change kubectl context to devspace context that is used |
36 | 37 | ``` |
37 | | - |
38 | | -**Note**: Every time you run `devspace up`, your containers will be re-deployed. This way, you will always start with a clean state. |
0 commit comments