apiVersion: v1
kind: Service
metadata:
  name: nodeapp
  labels:
    app: nodeapp
spec:
  type: NodePort
  ports:
    - port: 3000
      nodePort: 31000
      protocol: TCP
      targetPort: 3000
  selector:
    app: nodeapp
