apiVersion: v1
kind: Service
metadata:
  name: spring-boot-service
spec:
  ports:
    - port: 1042
      targetPort: 1042
      port: 1045
      targetPort: 1045
  selector:
    app: spring-boot-service
  type: NodePort