add okteto.yml for frontend

Signed-off-by: Ramiro Berrelleza <rberrelleza@gmail.com>
This commit is contained in:
Ramiro Berrelleza 2020-08-11 12:15:17 -07:00
parent 0426953475
commit cef5df5ae2
No known key found for this signature in database
GPG key ID: 8F443F5203A4B9A3
3 changed files with 42 additions and 1 deletions

View file

@ -1,4 +1,6 @@
icon: https://raw.githubusercontent.com/rberrelleza/microservices-demo/master/src/frontend/static/icons/Hipster_HeroLogoCyan.svg
deploy:
- kubectl apply -f release/kubernetes-manifests.yaml
- kubectl annotate service frontend dev.okteto.com/auto-ingress=true
- kubectl annotate service frontend dev.okteto.com/auto-ingress=true --overwrite
devs:
- src/frontend/okteto.yml

16
src/frontend/.stignore Normal file
View file

@ -0,0 +1,16 @@
.git
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with go test -c
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# dlv binary
__debug_bin
vendor

23
src/frontend/okteto.yml Normal file
View file

@ -0,0 +1,23 @@
name: frontend
image: ramiro/frontend:okteto
command:
- sh
build:
target: builder
workdir: /go/src/github.com/GoogleCloudPlatform/microservices-demo/src/frontend
forward:
- 2345:2345
- 8080:8080
volumes:
- /go/pkg/
- /root/.cache/go-build/
persistentVolume:
enabled: true
resources:
limits:
cpu: "1"
memory: 2Gi
securityContext:
capabilities:
add:
- SYS_PTRACE