forked from replicatedhq/kots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathokteto-v2.yml
69 lines (66 loc) · 1.71 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
62
63
64
65
66
67
68
69
build:
kotsadm:
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-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
# These shouldn't be needed anymore
# kotsadm:
# command: bash
# securityContext:
# capabilities:
# add:
# - SYS_PTRACE
# sync:
# - .:/go/src/github.com/replicatedhq/kots
# workdir: /go/src/github.com/replicatedhq/kots
# forward:
# - 2353:2345
# resources:
# limits:
# cpu: "2"
# memory: 4Gi
# kotsadm-migrations:
# command: bash
# sync:
# - migrations/tables/:/go/src/github.com/replicatedhq/kots/tables
# workdir: /go/src/github.com/replicatedhq/kots/tables
# resources:
# limits:
# cpu: "1"
# memory: 1Gi