-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathokteto.yml
More file actions
59 lines (50 loc) · 1.17 KB
/
okteto.yml
File metadata and controls
59 lines (50 loc) · 1.17 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
icon: https://github.com/okteto/microservices-demo/raw/main/vote-icon.png
build:
result:
context: result
dockerfile: Dockerfile
vote:
context: vote
dockerfile: Dockerfile
worker:
context: worker
dockerfile: Dockerfile
dev:
context: worker
dockerfile: Dockerfile
target: dev
deploy:
- helm upgrade --install infrastructure infrastructure/
- helm upgrade --install vote vote/chart --set image=${OKTETO_BUILD_VOTE_IMAGE}
- helm upgrade --install result result/chart --set image=${OKTETO_BUILD_RESULT_IMAGE}
- helm upgrade --install worker worker/chart --set image=${OKTETO_BUILD_WORKER_IMAGE}
forward:
- 5432:postgresql:5432
dev:
vote:
command: mvn spring-boot:run
sync:
- ./vote:/app
forward:
- 5005:5005
persistentVolume:
enabled: false
result:
command: nodemon server.js
sync:
- ./result:/app
persistentVolume:
enabled: false
worker:
image: ${OKTETO_BUILD_DEV_IMAGE}
command: bash
securityContext:
capabilities:
add:
- SYS_PTRACE
sync:
- ./worker:/app
forward:
- 2345:2345
persistentVolume:
enabled: false