question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kubernetes resources(yml/json) not generated

See original GitHub issue

Describe the bug

Our application is using Kubernetes extension to generate all required resources however, when packaging it, no resources are generated.

Expected behavior

When executing:

mvnw clean package -Dresource.provider=kubernetes

resources should be generated (kubernetes.yml and kubernetes.json).

Actual behavior

When executing:

mvnw clean package -Dresource.provider=kubernetes

resources are not generated.

How to Reproduce?

  1. Create a project with 2 level modules

root

runtime

rest (kubernetes extension is here, activated by a profile)

  1. Run mvnw clean package with the profile name to be activated

Output of uname -a or ver

Linux 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

OpenJDK Runtime Environment (build 11.0.10+9-Ubuntu-0ubuntu1.20.04)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.4.1.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)

Additional information

[DEBUG] [io.quarkus.kubernetes.deployment.KubernetesProcessor] Generated the Kubernetes manifests: ‘kubernetes.yml,kubernetes.json’ in ‘/mnt/d/test/runtime/rest/target/rest/kubernetes’

This is an output, however, nothing is written.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
geoandcommented, Dec 4, 2021

Thanks for checking!

1reaction
nragoncommented, Nov 29, 2021

@geoand, can’t share the entire codebase, trying to replicate in a different project with same structure(not lucky so far).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing Resources | Kubernetes
yaml , .yml , or .json . It is a recommended practice to put resources related to the same microservice or application tier...
Read more >
I have one deployment.yaml file if I am trying to deploy it in ...
I have one deployment.yaml file if I am trying to deploy it in kubernetes by the command kubectl apply -f then it is...
Read more >
Introduction to YAML: Creating a Kubernetes deployment
YAML is a superset of JSON, which means that any valid JSON file is also a valid YAML file. So on the one...
Read more >
Templating YAML in Kubernetes with real code - Learnk8s
Templating with Kustomize; Generating resource manifests with code; Why not Helm? Other configuration tools; Summary. Introduction: managing YAML files. When ...
Read more >
Kubernetes extension - Quarkus
By default, the Kubernetes resources do not contain readiness and liveness probes in the generated Deployment . Adding them however is just a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found