quarkus: Quarkus-openshift fails to properly deploy applications which use management interface
Describe the bug
I have an application, which uses separate management interface[1] and deployed on Openshift via quarkus-openshift extension[2]. Both main and management interfaces are not accessible after deployment.
[1] https://github.com/quarkusio/quarkus/pull/30506 [2] https://quarkus.io/guides/deploying-to-openshift
Expected behavior
Quarkus openshift extension should deploy an application is completely working state.
Actual behavior
see below
How to Reproduce?
- Clone:
git clone git@github.com:fedinskiy/reproducer.git -b openshift-extension-management
- Create new openshift project
oc new-project fvd-test-management
- Deploy the app according to manual:
mvn clean install -Dquarkus.kubernetes.deploy=true -Dquarkus.openshift.route.expose=true -Dquarkus.kubernetes-client.trust-certs=true
Log contains something like[INFO] [io.quarkus.kubernetes.deployment.KubernetesDeployer] The deployed application can be accessed at: http://openshift-quickstart-fvd-test-management.apps.ocp4-12.rest.of.url
- Check the app
[fedinskiy@localhost reproducer]$ curl -v http://openshift-quickstart-fvd-test-management.apps.ocp4-12
<omitted for brevity>
> User-Agent: curl/7.85.0
< HTTP/1.0 503 Service Unavailable
For comparison:
oc new-project fvd-test-old
echo "" > src/main/resources/application.properties
mvn clean install -Dquarkus.kubernetes.deploy=true -Dquarkus.openshift.route.expose=true -Dquarkus.kubernetes-client.trust-certs=true
- The application can be accessed:
curl http://openshift-quickstart-fvd-test-old.apps.ocp4-12<omitted>
Output of uname -a
or ver
6.0.18-300.fc37.x86_64
Output of java -version
17.0.5, vendor: GraalVM Community
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.0.0.Beta1
Build tool (ie. output of mvnw --version
or gradlew --version
)
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Additional information
$ oc version
Client Version: 4.11.0-202208020706.p0.g7075089.assembly.stream-7075089
Kustomize Version: v4.5.4
Kubernetes Version: v1.25.4+18eadca
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 19 (18 by maintainers)
Commits related to this issue
- Fix typo in OpenShift liveness probe Fix https://github.com/quarkusio/quarkus/issues/32135 — committed to Sgitario/quarkus by Sgitario a year ago
- Fix typo in OpenShift liveness probe Fix https://github.com/quarkusio/quarkus/issues/32135 — committed to holly-cummins/quarkus by Sgitario a year ago
- chore(deps): update all non-major dependencies (mulk/quarkus-googlecloud-jsonlogging!15) This MR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [io.quarkus:... — committed to benkard/quarkus-googlecloud-jsonlogging by deleted user a year ago
At the moment, you cannot know at build time if the management interface is going to use http or https. We could move that property at build time if needed (the property is there but runtime).
@iocanel I suppose, these kubernetes.yaml can be of use: https://gist.github.com/fedinskiy/a15a1cb0382d31d9f38bc3c65039016e