Skip to content
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

Quarkus kubernetes sidecars configs do not work #10308

Closed
vishalgoel1988 opened this issue Jun 26, 2020 · 16 comments · Fixed by #10333
Closed

Quarkus kubernetes sidecars configs do not work #10308

vishalgoel1988 opened this issue Jun 26, 2020 · 16 comments · Fixed by #10333
Assignees
Labels
Milestone

Comments

@vishalgoel1988
Copy link

Describe the bug
Hi,

I am trying to generate sidecar configs using quarkus application.properties. I have below in my application.properties.

quarkus.kubernetes.sidecars.abc.image=def/abc
quarkus.kubernetes.sidecars.abc.ports[0].containerPort=3000
quarkus.kubernetes.sidecars.abc.arguments[0]=--config=/etc/abc/abc.conf
quarkus.kubernetes.sidecars.abc.mount[0].path=/etc/abc

It is supposed to configure abc sidecontainer in kubernetes.yml. But it is not. Main app container is correctly there along with other manifests (e.g. Service, ServiceAccount etc.) in the kubernetes.yml
Is there any issue with my properties? or it is not supported in Quarkus.

Reference:
https://quarkus.io/guides/deploying-to-kubernetes

Expected behavior
Sidecar container should be created in kubernetes.yml

Actual behavior
No sidecar container is created in kubernetes.yml

To Reproduce
Steps to reproduce the behavior:

  1. Copy below configs in application.properties of a quarkus kubernetes project

quarkus.kubernetes.sidecars.abc.image=def/abc
quarkus.kubernetes.sidecars.abc.ports[0].containerPort=3000
quarkus.kubernetes.sidecars.abc.arguments[0]=--config=/etc/abc/abc.conf
quarkus.kubernetes.sidecars.abc.mount[0].path=/etc/abc

2.Build the project

Configuration

quarkus.kubernetes.sidecars.abc.image=def/abc
quarkus.kubernetes.sidecars.abc.ports[0].containerPort=3000
quarkus.kubernetes.sidecars.abc.arguments[0]=--config=/etc/abc/abc.conf
quarkus.kubernetes.sidecars.abc.mount[0].path=/etc/abc

Screenshots
(If applicable, add screenshots to help explain your problem.)

Environment (please complete the following information):

  • Output of uname -a or ver:
  • Output of java -version:
  • GraalVM version (if different from Java):
  • Quarkus version or git rev:
  • Build tool (ie. output of mvnw --version or gradlew --version):

Additional context
(Add any other context about the problem here.)

@vishalgoel1988 vishalgoel1988 added the kind/bug Something isn't working label Jun 26, 2020
@geoand
Copy link
Contributor

geoand commented Jun 26, 2020

Hi,

I don't think we support sidecar generation, may I ask what made you think we do?

@geoand geoand added area/kubernetes kind/enhancement New feature or request and removed kind/bug Something isn't working labels Jun 26, 2020
@vishalgoel1988
Copy link
Author

Hi,

Please check reference in my question: https://quarkus.io/guides/deploying-to-kubernetes
This has configs for sidecar deployment:

quarkus.kubernetes.sidecars | Map<String, Container>

@geoand
Copy link
Contributor

geoand commented Jun 26, 2020

That looks like a bug in the documentation then. @iocanel I assume it was added by accident?

@vishalgoel1988
Copy link
Author

Just curious that dekorate provides the sidecar functionality. Should it be not included in quarkus automatically?

@geoand
Copy link
Contributor

geoand commented Jun 26, 2020 via email

@vishalgoel1988
Copy link
Author

Ok.

Is it possible to have it in next release. This is quite helpful.

@geoand
Copy link
Contributor

geoand commented Jun 26, 2020 via email

@vishalgoel1988
Copy link
Author

Ok.
Is there any expected release date for 1.7?

@geoand
Copy link
Contributor

geoand commented Jun 26, 2020 via email

@geoand
Copy link
Contributor

geoand commented Jun 26, 2020

What's more, the properties aren't even using the proper syntax.
@iocanel this should just be a matter of defining the configuration and adding the proper decorators right? If possible, I would like to fix this in time for 1.6 since we already have it in the docs.
I just need your confirmation that there is nothing more to it before starting to look into it.

@vishalgoel1988
Copy link
Author

Hi @geoand
Can you please help in correcting the syntax?

@geoand
Copy link
Contributor

geoand commented Jun 27, 2020

There is no correct syntax yet, because there is no dedicated configuration support for sidecars. But I assume it will be similar to what we have with env vars

@vishalgoel1988
Copy link
Author

vishalgoel1988 commented Jun 27, 2020

Ok. It would be really helpful if we can get sidecars configs in 1.6
Also, type "Mount" (which is required for sidecar "Container" type) has missing "name" property (at least in documentation).

Thanks.

@geoand geoand self-assigned this Jun 29, 2020
geoand added a commit to geoand/quarkus that referenced this issue Jun 29, 2020
@geoand
Copy link
Contributor

geoand commented Jun 29, 2020

geoand added a commit to geoand/quarkus that referenced this issue Jun 29, 2020
geoand added a commit to geoand/quarkus that referenced this issue Jun 29, 2020
@vishalgoel1988
Copy link
Author

Thanks @geoand
One little question. How can we give multiple arguments? by comma separated?

quarkus.kubernetes.sidecars.sc.arguments=-a,-b

@geoand
Copy link
Contributor

geoand commented Jun 29, 2020

quarkus.kubernetes.sidecars.sc.arguments=-a,-b

Exactly

geoand added a commit that referenced this issue Jun 29, 2020
Fix broken sidecar handling
gsmet pushed a commit to gsmet/quarkus that referenced this issue Jun 30, 2020
@gsmet gsmet added this to the 1.6.0.Final milestone Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants