Replies: 2 comments 7 replies
-
/cc @Sgitario (kubernetes), @geoand (kubernetes,openshift), @iocanel (kubernetes,openshift) |
Beta Was this translation helpful? Give feedback.
7 replies
-
FWIW, the example worked fine for me, but I created the secret and configmap by hand (using something like: [1]) @Sgitario should work too. [1]: kubectl create secret generic my-secret --from-literal=db-username=postgres --from-literal=db-password= |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to deploy my quarkus application in Openshift. I am trying to make the connection to the database with some environment variables whose value will be indicated in a configmap file and in a secrets file.
I have a my-configmap.yaml like:
I also have a my-secret.yaml:
My application.properties file:
I have tried in several ways (quarkus.kubernetes.env... instead of quarkus.openshift.env) but I can't get it to work. I have also tried to create a deployment config from openshift in which I indicate the environment variables but nothing.
What am I doing wrong or how can I do it?
Beta Was this translation helpful? Give feedback.
All reactions