Hello
Before the image is pushed to the registry, the deploy finish with exit 1
✓ Image 'registry.cloud.okteto.net/rubengarcia0510/java-maven-backend-reactive:1.2.2-SNAPSHOT' successfully pushed
exit status 1
Repository:
Branch:
feature/okteto-config
Created:
20 hrs ago
Last updated:
20 hrs ago
ramiro
January 12, 2023, 6:19pm
2
I believe that you have a syntax error in deploy section of the okteto.yml
. name
and command
should be on the same list item.
build:
backend:
image: okteto.dev/java-maven-backend-reactive:1.2.2-SNAPSHOT
context: .
deploy:
- name: Deploy backend
command: kubectl apply -f k8s.yml
dev:
backend:
image: okteto/maven:3
command: bash
sync:
- .:/usr/src/app
forward:
- 5005:5005
volumes:
- /root/.m2
ramiro
January 12, 2023, 6:28pm
3
I ran your sample, and in my case, the build fails even before the deployment phase. Is that what you are seeing? Take a look at the logs, and feel free to share them here if you need help interpreting them.