Open klebermagno opened 6 years ago
It should be possible. I see a couple of issues with your serverless.yaml.
First you need to setup the version of java: runtime: java1.8
.
Then you need to set the filename and the class name as the handler. For example for the file Foo.java
with this content:
▶ cat Foo.java
package io.kubeless;
import io.kubeless.Event;
import io.kubeless.Context;
public class Foo {
public String bar(io.kubeless.Event event, io.kubeless.Context context) {
return "Hello world!";
}
}
You will need to set the handler handler: Foo.bar
.
Kubeless work with java. I create a project with Serverless-kubeless with java
this error message:
Is possible use serverless-kubeless with java ?