feat: use use port number instead of name
Based on https://kubernetes.io/docs/concepts/services-networking/ingress/
@karl-johan-grahn are you still using this repo?
Can you please explain why you're proposing this change?
Can you please explain why you're proposing this change?
Sure, i already made a own version which is working with this change:
I need it, for that: (the service port is not http/80 or https/443) if you read the https://kubernetes.io/docs/concepts/services-networking/ingress/ doc, you will find aswell this implementation
service:
enabled: true
additionalLabels:
annotations:
ports:
- port: 30020
name: monitoring-http
protocol: TCP
targetPort: 8000
- port: 30021
name: wsproxy-http
protocol: TCP
targetPort: 8080
- port: 30022
name: wsproxy-https
protocol: TCP
targetPort: 8443
type: ClusterIP
ingress:
enabled: true
ingressClassName: nginx
hosts:
- host: url.website
paths:
- path: /
pathType: ImplementationSpecific
servicePort: 30021
annotations: {}
tls:
- secretName: tls
hosts:
- url.website
Can you please explain why you're proposing this change?
@aslafy-z up up
@aslafy-z @d3adb5 please review it and provide feedback
@thisispr Why don't you use the service port name you're defining at service.ports inside your ingress?
Just set ingress.hosts[0].paths[0].servicePort: wsproxy-http.
I will go ahead and close this PR that adds a breaking change without adding value. Let me know if you need additional guidance.