apiVersion: v1
kind: Service
metadata:
  name: nginx-service
  labels:
    app: nginx-nodeport
spec:
  type: NodePort
  selector:
    app: nginx-pod
  ports:
  - name: http
    protocol: TCP
    port: 80
    nodePort: 31337
