I have a baremetal kubernetes cluster running on RHEL7 with one master and three worker nodes. I am trying to setup ingress-nginx for the baremetal and everything looks good but for some reason, I still can't access my sample nginx deployment I created.
I followed the following steps:
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: nginx
name: nginx-test-deploy
spec:
replicas: 3
selector:
matchLabels:
run: nginx-test
template:
metadata:
labels:
run: nginx-test
spec:
containers:
- image: nginx
name: nginx
Exposed Service
kubectl expose deploy nginx-test-deploy --port 80
Created Ingress as seen below:
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: ingress-resource-1
spec:
rules:
- host: nginx.example.com
http:
paths:
- backend:
serviceName: nginx-test-deploy
servicePort: 80
Instead of seeing nginx landing page, it just doesn't resolve at all.
Can someone please guide me to figure out what might be going on?
Also I see that on two worker nodes, I see that pods are in "Completed" status and one is running. Is that expected behavior?