spring-cloud-dataflow icon indicating copy to clipboard operation
spring-cloud-dataflow copied to clipboard

Kubectl-2.5.0 || Couldn't parse image reference, invalid reference format, InvalidImageName

Open gry77 opened this issue 6 years ago • 2 comments

Description: I'm unable to launch task that using local spring-batch app jar with kubectl k8s. Instruction used here : https://dataflow.spring.io/docs/installation/kubernetes/kubectl

Error in the pods :

Failed to apply default image tag "/opt/middleware/poc/batch-simple-1.0.0.jar": couldn't parse image reference "/opt/middleware/poc/batch-simple-1.0.0.jar": invalid reference format Error: InvalidImageName

Release versions: Version 2.5.0 - about json attached about-json.txt

Custom apps: it's a very simple spring batch app: https://github.com/gry77/app-issue-repo/blob/master/batch-simple-1.0.0.SNAPSHOT.jar

Steps to reproduce:

  1. Register app, choose type : Task
  2. Copy paste the location: "file:///opt/middleware/poc/batch-simple-1.0.0.jar"
  3. create task based on the app
  4. launch task

Screenshots: image

image

Additional context: i'm using docker for mac version : 2.3.0.2 (45183)

gry77 avatar May 13 '20 12:05 gry77

Hi @gry77 ,

Since you are on Kubernetes, you are expected to register the task app as a docker container image not as a JAR.

ilayaperumalg avatar May 13 '20 12:05 ilayaperumalg

hi @ilayaperumalg , ok that's my bad then.. after i dockerize my jar, i'm able to register & run in via SCDF.. thanks a lot

gry77 avatar May 13 '20 13:05 gry77