use ingress to save cost

Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
This commit is contained in:
Alexandre Gaudreault 2024-03-11 15:16:14 -04:00
parent 729e5913c3
commit 20ee623190
No known key found for this signature in database
GPG Key ID: 9444460736DE847A
2 changed files with 26 additions and 4 deletions

View File

@ -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

View File

@ -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