Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:05
    codecov[bot] commented #1223
  • 10:05
    codecov[bot] commented #1223
  • 10:05
    rohanKanojia review_requested #1223
  • 10:05
    rohanKanojia review_requested #1223
  • 06:37
    manusa commented #1223
  • 06:37
    manusa commented #1223
  • 06:35
    manusa commented #1223
  • 06:31
    manusa commented #1223
  • 06:30
    manusa commented #1223
  • 06:29
    manusa commented #1223
  • 06:28
    manusa commented #1223
  • 06:27
    manusa commented #1223
  • 06:27
    manusa commented #1223
  • 06:26
    manusa commented #1223
  • 06:26
    manusa commented #1223
  • 06:25
    manusa commented #1223
  • 06:25
    manusa commented #1223
  • 06:24
    manusa commented #1223
  • 06:24
    manusa commented #1223
  • 06:24
    manusa commented #1223
Marc Nuri
@manusa
Assemblies can now provide information for multiple layers (<inline> ---> <layers><layer><!-- ... --></layer></layers>). The get Flattened cloned basically combines/merges all of those layers, but shouldn't break anything.
I'll give it a try tomorrow.
Marc Nuri
@manusa
It seems like when we implemented the multi-layer support we didn't account for the OpenShift+Dockerbuild+Dockerfile+AssemblyConfig scenario. I will further investigate and open the corresponding bug.
2 replies
robinroos
@robinroos
I set <maven.compiler.release> to 17 today; jkube seems still to be pushing a Java 11 image (I might have done something wrong on my side). Is the jkube OpenJDK 17 base image available yet?
Rohan Kumar
@rohanKanojia
No, it still needs to be done: eclipse/jkube#1106
If you need it urgently, you can use your own image based on JDK 17 for now. It can easily be configured via jkube.generator.from or via XML configuration
javastl
@javastl
I would like to know how Jkube can be configured to add this statement to the dockerfile "FROM ubuntu:20.04"
Rohan Kumar
@rohanKanojia
It can be done via jkube.generator.from property
Or use your own Dockerfile or XML image configurationhttps://www.eclipse.org/jkube/docs/kubernetes-gradle-plugin#groovy-scenario-image
javastl
@javastl
Right now I am using maven and the from property is used by java with <configuration>
<images>
<image>
<name>${docker.user}/random-generator:${project.version}</name>
<build>
<from>openjdk:11</from>
If I replace with ubuntu:20.04, java is not found
Rohan Kumar
@rohanKanojia
What do you mean by java? Do you mean the java CLI is not found in container?
It could be due to java not being setup on that specific image
javastl
@javastl
This is the current dockerfile that is output that works
This line in the pom assembly has no effect <jkube.generator.from>ubuntu:20.04</jkube.generator.from>
Rohan Kumar
@rohanKanojia
This works if you're using Zero configuration from Jkube
If you're using your own Dockerfile/XML image configuration, you need to specify FROM element in Dockerfile or <from> in <image> > <build> configuration
javastl
@javastl
If I replace <from>openjdk:11</from> with <from>ubuntu:20.04</from> it will replace FROM openjdk:11 with FROM ubuntu:20.04. The pods will not start since the java jre is not present
You are correct that I am using XML in the maven pom.xml for zero configuration. <build>. ....<image>
javastl
@javastl
Can I add the java JRE in another area of the XML assembly rather than in the <FROM></FROM line?
Christian-dev-ops
@Christian-dev-ops
hello guys, how to can use Jkube for maven when i need to add resources limits to jkube-volume-permission? Example:
initContainers:
  - command:
    - chmod
    - "777"
    - XXX
    image: busybox
    imagePullPolicy: IfNotPresent
    name: jkube-volume-permission
    resources:
      limits:
        cpu: 500m
        memory: 2000Mi
      requests:
        cpu: 250m
        memory: 700Mi
Do you think it's a good idea to add additional fieldslike cpuLimit, memoryLimit, cpuRequest, memoryRequest to configuration?
javastl
@javastl
Do you think it's a good idea to add additional fieldslike cpuLimit, memoryLimit, cpuRequest, memoryRequest to configuration? YES. This has be done for the QoS of the pods. Resources are limited and it should be allowed to be configured
Rohan Kumar
@rohanKanojia
okay, Would anyone like to create an issue for this?
Christian-dev-ops
@Christian-dev-ops
okk, I'm going to create an issue. Thanks @rohanKanojia
Another question, is possible to disable jkube-volume-permission enricher?
Rohan Kumar
@rohanKanojia
I think it's possible
In <enricher> there should be <includes> and <excludes> list elements where we can specify which enrichers we want to include/exclude
robinroos
@robinroos
Same question, but other direction. Does jkube have base images for Java 8 ??
Rohan Kumar
@rohanKanojia
Umm, from what I remember when we switched from Fabric8 Images to JKube images, we made JDK11 as base. If you're looking for JDK8, maybe you can try out Fabric8 JDK8 image we used in Fabric8 Maven Plugin: https://hub.docker.com/r/fabric8/java-centos-openjdk8-jdk/ . I think it should work okay
Marc Nuri
@manusa
The JDK11 image should be compatible with your Java 8 binaries? What's your usecase?
As Rohan points out, any of the older images should be good for you.
But as I said, I'm very curious, especially now that we want to bump the base image to JDK 17
robinroos
@robinroos
Two separate projects. The first targets Java 17 very soon. The second is still on Java 8 and faces upgrade challenges. But I will probably force the issue and take it to a more recent Java edition before looking to containerise it.
Marc Nuri
@manusa
What I mean is if there's any trouble running that JDK8 compiled project in the JDK11->17 image?
Jave is meant to be backwards compatible always (though we know that's not always true ;) )
Attyuttam
@Attyuttam
I have a remote session started using "mvn k8s:debug -Pkubernetes". But I am not sure how to enable remote debugging session on VS Code. Is it necessary to use Eclipse or IntelliJ only ? This is in regards to the issue #966
Rohan Kumar
@rohanKanojia
Umm, I haven't used VSCode. I'm not sure how to configure it. Does this help? https://stackoverflow.com/questions/44372595/how-do-attach-to-a-remote-java-debugger-using-visual-studio-code
Attyuttam
@Attyuttam
Thanks @rohanKanojia . Let me try this out
Rohan Kumar
@rohanKanojia
:+1:
Diom
@Diom

Hey, wondering if anyone has any input on this issue? eclipse/jkube#1195

Essentially I am looking for a way to safely skip building and pushing a subset of the images that I have configured in my POM. It skips the build but not the push, causing the build to fail. I can only see the skipPush options which skips all pushes.

Rohan Kumar
@rohanKanojia
Hello