Replies: 2 comments
-
Hi @pandeyaws, can you confirm you are indeed using the NGINX Ingress Controller in this repo, and if so, can you please let me know the version you were using? I noticed that you were using the annotation |
Beta Was this translation helpful? Give feedback.
-
@pandeyaws is this resolved? can we close this discussion? |
Beta Was this translation helpful? Give feedback.
-
We have deployed nginx-ingress-controller using helm and override the tcp port using config map(overriding port for backend service) but its not able to listen on tcp port.
Ingress controller is able to listen on default port 443 and 80 but unable to listen on TCP port 5050(Custum port).
Following is the defination for configmap(TCP protocol):-->
apiVersion: v1
kind: ConfigMap
metadata:
name: tcp-services
namespace: nginx-ingress
data:
5050: "default/xyz-svc:5050"
Ingress.yaml:
{{- if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Values.deployment.name }}-ing
namespace: {{ .Values.deployment.namespace }}
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
spec:
ingressClassName: nginx
tls:
secretName: {{ .Values.deployment.group }}-tls-secret
rules:
http:
paths:
pathType: Prefix
backend:
service:
name: {{ .Values.ingress.backend.name }}
port:
number: {{ .Values.ingress.backend.port }}
{{- if .Values.ingress.revpxy.enabled }}
http:
paths:
pathType: Prefix
backend:
service:
name: {{ .Values.ingress.backend.name }}
port:
number: {{ .Values.ingress.revpxy.backend.port }}
{{- end }}
{{- end }}
Discription:
Based on ingress rule, we are routing traffic based on ingress host name for example if the hostname = xyz then it should route request to xyz-svc on port 5050 .
And if the hostname = ABC then it should routhe request to ABC-svc on port 5050 .
but we are not able to route request based on host name && getting connection timeout .
We are looking some support/suggestion on how to proceed further.
Beta Was this translation helpful? Give feedback.
All reactions