I'm trying to load a yaml file and this exception occurs :
10:01:56,848 ERROR [stderr] (Thread-100) java.io.IOException: Unknown apiVersionKind: v1/Pod known kinds are: {}
10:01:56,848 ERROR [stderr] (Thread-100) at io.kubernetes.client.util.Yaml.modelMapper(Yaml.java:491)
10:01:56,849 ERROR [stderr] (Thread-100) at io.kubernetes.client.util.Yaml.load(Yaml.java:185)
10:01:56,850 ERROR [stderr] (Thread-100) at io.kubernetes.client.util.Yaml.load(Yaml.java:173)
I've tried my other kinds and got the same problem.
I'm using version 6.0.1. The app is deployed using WildFly 12. this is the line of code to load the file
Object config = Yaml.load(new File(yamlFile));
Any help would be really appreciated.