apiVersion: v1
kind: Service
metadata:
  name: webapp
  namespace: app
spec:
  type: NodePort
  ports:
    - nodePort: 31317
      port: 8080
      protocol: TCP
      targetPort: 8080
  selector:
    app: webapp
