annotate service to create ingress
Signed-off-by: Ramiro Berrelleza <rberrelleza@gmail.com>
This commit is contained in:
parent
9aeb362daa
commit
0426953475
2 changed files with 2 additions and 14 deletions
|
@ -1,3 +1,4 @@
|
||||||
icon: https://raw.githubusercontent.com/rberrelleza/microservices-demo/master/src/frontend/static/icons/Hipster_HeroLogoCyan.svg
|
icon: https://raw.githubusercontent.com/rberrelleza/microservices-demo/master/src/frontend/static/icons/Hipster_HeroLogoCyan.svg
|
||||||
deploy:
|
deploy:
|
||||||
- kubectl apply -f release/kubernetes-manifests.yaml
|
- kubectl apply -f release/kubernetes-manifests.yaml
|
||||||
|
- kubectl annotate service frontend dev.okteto.com/auto-ingress=true
|
|
@ -280,19 +280,6 @@ spec:
|
||||||
port: 80
|
port: 80
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: frontend-external
|
|
||||||
spec:
|
|
||||||
type: LoadBalancer
|
|
||||||
selector:
|
|
||||||
app: frontend
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
targetPort: 8080
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
|
Loading…
Add table
Reference in a new issue