apiVersion: v1 kind: Service metadata: name: nas spec: ports: - name: app port: 80 protocol: TCP targetPort: 5001 clusterIP: None type: ClusterIP --- apiVersion: v1 kind: Endpoints metadata: name: nas subsets: - addresses: - ip: 192.168.2.44 ports: - name: app port: 5001 protocol: TCP