apiVersion: v1
kind: Service
metadata:
  name: spring-base-rest-service
spec:
  ports:
  - port: 8080
    targetPort: 8080
    name: http
  - port: 8081
    targetPort: 8081
    name: spring-base-rest
  selector:
    app: spring-base-rest
  type: NodePort