-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Unable to run simple hello world application on OpenShift with quarkus.kubernetes.deployment-target=knative #11442
Comments
Seems like s2i is being used which probably should not be the case when using cc @iocanel |
I don't know anything about Knative, sorry. |
/cc @geoand |
This is probably just a matter of disabliing s2i deployment when knative is used |
How can it be done? Can you fork and adjust https://github.com/rsvoboda/openshift-quickstart? |
I'm still on PTO. It should just be a matter of not including the Openshift extension - but regardless, we need to make it work even if the Openshift extension is present. |
Well, OpenShift extension should handle OpenShift Serverless - Knative Serving scenario. |
@geoand enjoy the rest of your vacation, response to GH issues can wait till you are officially back ;) |
Thanks 👍 I'll take a look as soon as I get back |
I've investigated this a bit and there seems to be an issue with the By the way, the generated namespace also is wrong and defaults to my username. |
I got finally back to this and I tried to to explicitly specify the registry
I created In OpenShift Activity view for events I saw message about created After calling So in the end I made my sample app work on OpenShift Serverless but I had to use adjust the yaml and use oc tool and it wasn't too great experience as I had to try few times. |
Actually this is consistent with how the extension behaves for regular Kubernetes deployments. The username is used as the default when |
I just tried this and it workd flawlessly when two small configuration settings are applied (no other changes needed):
From my PoV, what is missing is some documentation, which I will add now. |
This totally sounds like something users shouldn't have to do themselves, in case of OpenShift. We probably could distinguish regular Knative and OpenShift Serverless (either via an extension, e.g. |
@Ladicek yeah, that is definitely an option. I am kind of on the fence however since I am a little worried it will make things more confusing. |
Provide OpenShift Serverless documentation section
Reopening this as we might want a zero-config solution |
Closing, for now |
I have simple https://github.com/rsvoboda/openshift-quickstart project for Knative Serving experiment. I have OpenShift 4.5 with OpenShift Serverless - Knative Serving installed.
I'm unable to run simple hello world application on OpenShift with quarkus.kubernetes.deployment-target=knative
Steps to reproduce
See README.md in https://github.com/rsvoboda/openshift-quickstart
Some details:
The application uses
quarkus-openshift
extension and setsquarkus.kubernetes.deployment-target=knative
in https://github.com/rsvoboda/openshift-quickstart/blob/master/src/main/resources/application.properties#L3mvn clean package -Dquarkus.kubernetes.deploy=true
succeeds, but the service on the cluster can't start.Service gets available when I change quarkus.kubernetes.deployment-target to openshift :/.
https://quarkus.io/guides/kubernetes#knative doesn't mention any additional changes.
More details:
https://console-openshift-console.apps.ocprs.dynamic.quarkus/k8s/ns/rsvoboda/serving.knative.dev~v1~Service/openshift-quickstart says:
Revision "openshift-quickstart-b5zmr" failed with message: Unable to fetch image "rsvoboda/openshift-quickstart:1.0-SNAPSHOT": failed to resolve image to digest: failed to fetch image information: GET https://index.docker.io/v2/rsvoboda/openshift-quickstart/manifests/1.0-SNAPSHOT: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:rsvoboda/openshift-quickstart Type:repository]].
Log from terminal shows, that the image push was successful:
@geoand or @Ladicek can you take a look?
The text was updated successfully, but these errors were encountered: