-
Notifications
You must be signed in to change notification settings - Fork 157
/
okteto.yaml
74 lines (71 loc) · 1.75 KB
/
okteto.yaml
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
64
65
66
67
68
69
70
71
72
73
74
icon: https://apps.okteto.com/movies/icon.png
build:
frontend:
context: frontend
catalog:
context: catalog
rent:
context: rent
api:
context: api
worker:
context: worker
deploy:
- name: Deploy PostgreSQL
command: okteto deploy -f postgresql/okteto.yaml
- name: Deploy Kafka
command: okteto deploy -f kafka/okteto.yaml
- name: Deploy MongoDB
command: okteto deploy -f mongodb/okteto.yaml
- name: Deploy Frontend
command: helm upgrade --install frontend frontend/chart --set image=${OKTETO_BUILD_FRONTEND_IMAGE}
- name: Deploy Catalog
command: helm upgrade --install catalog catalog/chart --set image=${OKTETO_BUILD_CATALOG_IMAGE}
- name: Deploy Rent
command: helm upgrade --install rent rent/chart --set image=${OKTETO_BUILD_RENT_IMAGE}
- name: Deploy Worker
command: helm upgrade --install worker worker/chart --set image=${OKTETO_BUILD_WORKER_IMAGE}
- name: Deploy API
command: helm upgrade --install api api/chart --set image=${OKTETO_BUILD_API_IMAGE} --set load=${API_LOAD_DATA:-true}
dev:
frontend:
image: okteto/node:20
command: bash
sync:
- frontend:/usr/src/app
catalog:
command: yarn start
sync:
- catalog:/src
forward:
- 9229:9229
rent:
command: mvn spring-boot:run
sync:
- rent:/app
volumes:
- /root/.m2
forward:
- 5005:5005
api:
image: okteto/golang:1.22
command: bash
securityContext:
capabilities:
add:
- SYS_PTRACE
sync:
- api:/usr/src/app
forward:
- 2346:2345
worker:
image: okteto/golang:1.22
command: bash
securityContext:
capabilities:
add:
- SYS_PTRACE
sync:
- worker:/usr/src/app
forward:
- 2345:2345