Comments on: How to Setup NGINX Ingress Controller in Kubernetes https://www.linuxtechi.com/setup-nginx-ingress-controller-in-kubernetes/ Fri, 18 Feb 2022 13:25:35 +0000 hourly 1 By: vishal soni https://www.linuxtechi.com/setup-nginx-ingress-controller-in-kubernetes/#comment-22744 Thu, 28 Jan 2021 08:29:45 +0000 https://www.linuxtechi.com/?p=10819#comment-22744 Hi,
I am performing this on EC2 instance and facing the same connection refused error, Please suggest me anything

]]>
By: Balaji https://www.linuxtechi.com/setup-nginx-ingress-controller-in-kubernetes/#comment-22251 Wed, 04 Nov 2020 17:34:57 +0000 https://www.linuxtechi.com/?p=10819#comment-22251 I believe above won’t work directly unless you assign an external ip to ingress controller service ( external ip can be assigned automatically using MetalLB )
Please refer below,
‘https://kubernetes.github.io/ingress-nginx/deploy/’
‘https://metallb.universe.tf/’

]]>
By: David Lun https://www.linuxtechi.com/setup-nginx-ingress-controller-in-kubernetes/#comment-22236 Tue, 03 Nov 2020 09:35:53 +0000 https://www.linuxtechi.com/?p=10819#comment-22236 In reply to Pradeep Kumar.

Hi Pradeep,

I have downloaded the ingress deploy yaml file and add the following

spec:
hostNetwork: true

but it seems that it failed as well.

Finally it seems it is ok after I added the following in httpd-deployment.yaml and nginx-deployment.yaml.

externalIPs:
– “192.168.30.5”

]]>
By: Pradeep Kumar https://www.linuxtechi.com/setup-nginx-ingress-controller-in-kubernetes/#comment-22232 Tue, 03 Nov 2020 05:37:52 +0000 https://www.linuxtechi.com/?p=10819#comment-22232 In reply to David LUN.

Hi David,

If the above procedure does not work for you then I would suggest download ingress deploy yaml file and then edit it and add following in deployment section

spec:
hostNetwork: true
dnsPolicy: ClusterFirst
containers:

Save and exit the file and try to redeploy the ingress with the updated yaml file.

]]>
By: David LUN https://www.linuxtechi.com/setup-nginx-ingress-controller-in-kubernetes/#comment-22219 Mon, 02 Nov 2020 08:02:28 +0000 https://www.linuxtechi.com/?p=10819#comment-22219 Hello, I have tried the procedures above, but finally failed.
When I enter the command curl httpd.example.com:80 / nginx.example.com:80 in k8s master, it returns curl: (7) Failed to connect to httpd.example.com port 80: Connection refused.

Do you have any idea about the error?

]]>