<dependency> <groupId>io.dekorate</groupId> <artifactId>kubernetes-annotations</artifactId> <version>1.9.0</version> </dependency> import io.dekorate.kubernetes.annotation.KubernetesApplication; @KubernetesApplication public class LibraryApplication { public static void main(String[] args) { System.out.println("Hello, Library!"); } } shell $ mvn clean package shell $ oc new-project library $ oc new-app --as-deployment-config --name=library --build-env="OPENSHIFT_ENABLE_BUILD=true" --image-stream=openshift/openjdk-11-rhel7:1.1 --code=https://github.com/example/library.git


上一篇:
下一篇:
切换中文