apiVersion: v1
kind: Service
metadata:
name: webui-nodeport
namespace: example
labels:
app: mywebui
name: webui-nodeport
spec:
selector:
app: mywebui
name: webui
ports:
– protocol: TCP
port: 80
targetPort: 80
nodePort: 32069
type: NodePort
This is my nodeport yaml file. I am not able to see my application on browser. The application is deployed in microk8s on ec2 ubuntu instance. I am able to see my content via curl http://ip:nodeport on the instance but not on browser. The nodeport is opened on Security group as well. The content of my application are showing inside the pod. please suggest me something i have done My Rnd but still not able to figure out the reason.
I have also used loadbalancer service type.It stillgives the same issue, by curl it is giving but not on browser
Swarnali Ghosh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.