Skip to content

Commit

Permalink
added nginx ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
macel94 committed Mar 24, 2024
1 parent f1dc8e9 commit b497c59
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions deploy/charts/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: webapp-ingress
annotations:
nginx.ingress.kubernetes.io/enable-http2: "true"
nginx.ingress.kubernetes.io/enable-websocket: "true"
spec:
ingressClassName: nginx
rules:
- http:
paths:
- path: / # Assuming the app serves from the root
pathType: Prefix
backend:
service:
name: webapp
port:
number: 6350
- path: /metrics
pathType: Prefix
backend:
service:
name: webapp
port:
number: 6401

0 comments on commit b497c59

Please sign in to comment.