apiVersion: v1
kind: Service
metadata:
    name: webapp
    labels:
        app: webapp
spec:
    type: NodePort
    ports:
    - port: 80
      targetPort: 80
      nodePort: 31000
    selector:
        app: webapp