add okteto.yml for frontend
Signed-off-by: Ramiro Berrelleza <rberrelleza@gmail.com>
This commit is contained in:
parent
0426953475
commit
cef5df5ae2
3 changed files with 42 additions and 1 deletions
|
@ -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
16
src/frontend/.stignore
Normal 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
23
src/frontend/okteto.yml
Normal 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
|
Loading…
Add table
Reference in a new issue