apiVersion: v1
kind: Service
metadata:
  name: petclinic
spec:
  ports:
    - port: 8080
      name: http
      targetPort: 8080
      nodePort: 31080
  selector:
    app: petclinic
    version: v1.0.0
  type: NodePort