Files
ttl.sh/okteto.yml
Salah Al Saleh 7624fbfa13 Add a dev env in Okteto (#128)
* add a dev env
2024-02-05 09:16:45 -08:00

34 lines
766 B
YAML

build:
ttl-hooks:
context: ./hooks
dockerfile: ./hooks/Dockerfile.hooks
ttl-reaper:
context: ./hooks
dockerfile: ./hooks/Dockerfile.reap
deploy:
- cd kustomize/overlays/dev && kustomize edit set image ttl-hooks=${OKTETO_BUILD_TTL_HOOKS_IMAGE}
- cd kustomize/overlays/dev && kustomize edit set image ttl-reaper=${OKTETO_BUILD_TTL_REAPER_IMAGE}
- kubectl apply -k kustomize/overlays/dev
dev:
ttl-hooks:
command: make deps build && bash || bash
workdir: /src
sync:
- ./hooks:/src
resources:
limits:
cpu: "1"
memory: 1Gi
ttl-reaper:
command: make deps build && bash || bash
workdir: /src
sync:
- ./hooks:/src
resources:
limits:
cpu: "1"
memory: 1Gi