use ingress to save cost
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
This commit is contained in:
parent
729e5913c3
commit
20ee623190
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: front-end-ingress
|
||||
labels:
|
||||
name: front-end
|
||||
annotations:
|
||||
ingress.kubernetes.io/proxy-body-size: 100M
|
||||
ingress.kubernetes.io/app-root: '/'
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: sockshop.apps.argoproj.io
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: ImplementationSpecific
|
||||
backend:
|
||||
service:
|
||||
name: front-end
|
||||
port:
|
||||
number: 80
|
|
@ -6,10 +6,9 @@ metadata:
|
|||
labels:
|
||||
name: front-end
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8079
|
||||
nodePort: 30001
|
||||
- port: 80
|
||||
targetPort: 8079
|
||||
selector:
|
||||
name: front-end
|
||||
|
|
Loading…
Reference in New Issue