forked from replicatedhq/kots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
okteto-v2.yml
61 lines (59 loc) · 1.49 KB
/
okteto-v2.yml
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
build:
kotsadm:
context: .
dockerfile: deploy/okteto/okteto-v2.Dockerfile
kotsadm-migrations:
context: migrations
dockerfile: migrations/okteto.Dockerfile
kotsadm-web-dev:
context: web
dockerfile: web/okteto.Dockerfile
target: dev
kotsadm-web:
context: web
dockerfile: web/okteto.Dockerfile
args:
- OKTETO_NAMESPACE=${OKTETO_NAMESPACE}
deploy:
- |
cd kustomize/overlays/okteto
kustomize edit set image kotsadm=${OKTETO_BUILD_KOTSADM_IMAGE}
kustomize edit set image kotsadm-web=${OKTETO_BUILD_KOTSADM_WEB_IMAGE}
kustomize edit set image migrations=${OKTETO_BUILD_KOTSADM_MIGRATIONS_IMAGE}
# kustomize edit set image kurl_proxy=${OKTETO_BUILD_KOTSADM_IMAGE}
- kubectl apply -k kustomize/overlays/okteto
dev:
kotsadm:
command: make okteto-dev && bash
workdir: /go/src/github.com/replicatedhq/kots
sync:
- .:/go/src/github.com/replicatedhq/kots
resources:
limits:
cpu: "2"
memory: 4Gi
forward:
- 2353:2345
persistentVolume:
enabled: true
size: 10Gi
volumes:
- /.cache/gocache
- /.cache/gomodcache
kotsadm-web:
command: make serve
sync:
- web:/src
image: ${OKTETO_BUILD_KOTSADM_WEB_DEV_IMAGE}
resources:
limits:
cpu: "2"
memory: 4Gi
kotsadm-migrations:
command: bash
sync:
- migrations/tables:/go/src/github.com/replicatedhq/kots/tables
resources:
limits:
cpu: "1"
memory: 1Gi