<dependency>
<groupId>io.dekorate</groupId>
<artifactId>annotation-processor</artifactId>
<version>1.7.0</version>
<scope>provided</scope>
</dependency>
shell
mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4
shell
cd dekorate-example
import io.dekorate.kubernetes.annotation.KubernetesApplication;
@KubernetesApplication
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
shell
mvn compile
shell
kubectl apply -f target/classes/META-INF/dekorate/kubernetes.yml
shell
kubectl get pods