import io.dekorate.kubernetes.annotation.*;
@KubernetesApplication(name = "my-app")
public class MyApp {
@KubernetesDeployment
public static class MyDeployment {
@KubernetesContainer(image = "my-image:1.0.0", resources = @ResourceRequirements(limit = @Limit(cpu = "0.5", memory = "512Mi")))
public static class MyContainer {
// ...
}
@KubernetesService(port = 8080, type = "LoadBalancer")
public static class MyService {
// ...
}
}
}