-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenShift deployment with kubernetes & container-image-docker extension does not work #10055
Comments
Yeah... The openshift extension is only really meant to be used with S2I, it's not ideal. I would suggest for the time being to use the vanilla kubernetes extension and apply cc @iocanel |
@geoand I do not use the openshift extension. I know this is for S2I only. I already use the vanilla kubernetes extension. And this issue is all about the kubernetes extension with target=openshift. |
OK, sorry I missread it then :) @iocanel I really think the Openshift resources generation needs to be decoupled from S2I |
@iocanel this is it pending a dekorate release IIRC, right? |
@haraldatbmw yeah, there is a new dekorate release in |
@geoand Just tried with the current master branch without success. The generated openshift.yml still contains the whole S2I stuff. |
Thanks @haraldatbmw @iocanel can you shine some light on what the status of this is? |
We have a PR pending. Once the tests pass, we will merge. |
@iocanel can you please link the PR to this issue so it will be closed once the PR is merged? |
@haraldatbmw mind giving this another go? Thanks |
@geoand Now it looks better. Deployment to Openshift works. But two additional findings.
|
Thanks for checking!
That has since been fixed
@iocanel ^ |
@geoand Should I open a new issue for the double-deployment thing? |
Yes please |
Just created #10875 |
Describe the bug
The combination of both extensions quarkus-kubernetes and quarkus-container-image-docker for deployment-target=openshift does not work out of the box.
The generated openshift.yml file contains some not needed resources and wrong settings for S2I build (S2I is not in place in my configuration).
To get the deployment done I have to go the OpenShift WebConsole and manually delete the wrong deployment-trigger on the DeploymentConfig and start the deployment.
The following resources are generated by the quarkus-kubernetes extension:
Expected behavior
The combination of the extensions quarkus-kubernetes and quarkus-container-image-docker for deployment-target=openshift should build a container-image, push it to my docker-registry and then deploy only the needed OpenShift resources with a reference to the container-image in the docker-registry.
Actual behavior
The generated openshift.yml file contains some not needed resources and wrong settings for S2I build (S2I is not in place in my configuration). This prevents the automatic deployment to OpenShift without using S2I.
To Reproduce
oc login https://my-openshift-cluster --token=...
docker login ...
mvn clean package -Dquarkus.kubernetes.deploy=true
Environment
The text was updated successfully, but these errors were encountered: