rke2-nginx-ingress tcp-services-configmap not working #3573
-
I am having the same issue as @Fabyao (#2481). I am running bitbucket in a container and trying to expose TCP port (7999). I followed the instruction provided but I can not connect to the TCP port. Environment: rke2 v1.24.7 on RHEL8.6Service#kubectl -n source-management get svc bitbucket -o yaml
Ingress#kubectl -n source-management get ingress bitbucket -o yaml
HelmChartConfigs#kubectl get helmchartconfigs.helm.cattle.io -n kube-system rke2-ingress-nginx -o yaml
RKE2 nixing ingress controller Daemonsets#kubectl -n kube-system describe daemonsets.apps rke2-ingress-nginx-controller | grep tcp-services-configmap #kubectl -n kube-system describe pod rke2-ingress-nginx-controller-f6tz2 | grep tcp-services-configmap ConfigMap#kubectl -n kube-system get cm rke2-ingress-tcp-service -o yaml
Connection Test#telnet 10.100.x.x 443 <-- Connection to 443 is successful. #telnet 10.100.x.x 7999 <-- Connection to TCP port using Ingress IP is not successful. #telnet 10.43.1x.x 7999 <-- However connection to TCP port using the ClusterIP of the service is successful. Originally posted by @gauravkarki in #2481 (comment) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Converted this to a discussion, since you're asking for help with configuration, not reporting a problem. See the response at #2481 (comment) |
Beta Was this translation helpful? Give feedback.
-
I found a Solution that is working for me rancher/rancher#14744
#telnet 10.100.xx.xx 443
Working Solution for TCPI updated my HelmChartConfigs, ConfigMap, rke2-ingress-controller-admission service, and Network-Ingress-Policy HelmChartConfigs#kubectl get helmchartconfigs.helm.cattle.io -n kube-system rke2-ingress-nginx -o yaml
ConfigMap#kubectl -n kube-system get cm rke2-ingress-tcp-service -o yaml
Edit rke2-ingress-nginx-controller-admission to accept port 7999#kubectl -n kube-system edit service rke2-ingress-nginx-controller-admission
Edit Default network-ingress-policy#kubectl -n kube-system edit NetworkPolicy default-network-ingress-policy
|
Beta Was this translation helpful? Give feedback.
-
I know, old thread .. so on RKE1 you only had to do this: Terraform:
Now you have to do all these steps (HelmChartConfigs, ConfigMap, rke2-ingress-controller-admission service, and Network-Ingress-Policy) to just add a port ? |
Beta Was this translation helpful? Give feedback.
I found a Solution that is working for me rancher/rancher#14744
@brandond With the default rke2 installation which contains pre-configured rke2-ingress-inginx-controller as daemonset, I do not see any process that is listening on port 443 but I can still connect to it. Is there anything that I am missing?
#ss -tupln