I have deployed my K8s cluster in CentOS which consists of 1 Master and 2 Nodes. I am exposing my services to the external world using NodePort. My service is -
---
apiVersion: v1
kind: Service
metadata:
name: atcapi
namespace: default
spec:
selector:
app: atcapi
type: NodePort
ports:
- name: atcapi-http
port: 57124
targetPort: 80
nodePort: 32510
protocol: TCP
...
I am able to connect to the service using my worker node ip and NodePort but not using Master Node IP and NodePort.