-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevspace.yaml
More file actions
executable file
·63 lines (57 loc) · 2.32 KB
/
devspace.yaml
File metadata and controls
executable file
·63 lines (57 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: v2beta1
name: homepage
# `vars` specifies variables which may be used as ${VAR_NAME} in devspace.yaml
vars:
IMAGE: ghcr.io/devxp-tech/homepage
# IMAGE: diegoluisi/homepage
REGISTRY_PASSWORD:
password: true
pipelines:
# Override the default pipeline for 'devspace dev'
dev:
run: |-
run_dependencies --all # 1. Deploy any projects this project needs (see "dependencies")
create_deployments --all # 2. Deploy Helm charts and manifests specfied as "deployments"
start_dev --all # 3. Start dev mode "app" (see "dev" section
# This is a list of `images` that DevSpace can build for this project
# We recommend to skip image building during development (devspace dev) as much as possible
images:
app:
image: ${IMAGE}
dockerfile: ./Dockerfile
# `deployments` tells DevSpace how to deploy this project
deployments:
homepage:
# This deployment uses `kubectl` but you can also define `helm` deployments
helm:
chart:
name: devxp-dev
version: 0.0.3
repo: https://devxp-tech.github.io/helm-charts
values:
name: homepage
# `dev` only applies when you run `devspace dev`
dev:
# `dev.ports` specifies all ports that should be forwarded while `devspace dev` is running
# Port-forwarding lets you access your application via localhost on your local machine
homepage:
imageSelector: ${IMAGE}
ports:
- port: 8080:80
# `dev.open` tells DevSpace to open certain URLs as soon as they return HTTP status 200
# Since we configured port-forwarding, we can use a localhost address here to access our application
open:
- url: http://localhost:8080
- url: http://localhost:8090
sync:
- path: ./app/:/usr/share/nginx/html
excludePaths:
- .git/
# `dev.terminal` tells DevSpace to open a terminal as a last step during `devspace dev`
terminal:
imageSelector: ${IMAGE} # Select the Pod that runs our `${IMAGE}`
# With this optional `command` we can tell DevSpace to run a script when opening the terminal
# This is often useful to display help info for new users or perform initial tasks (e.g. installing dependencies)
# DevSpace has generated an example ./devspace_start.sh file in your local project - Feel free to customize it!
# command:
# - ./devspace_start.sh