concept deployment in category camel
appears as: deployment, deployment, Deployments

This is an excerpt from Manning's book Camel in Action.
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd"> <engine> <property name="deploymentExportPath">target</property> #1 </engine> <container qualifier="managed" default="true"> #2 <configuration> <property name="jbossHome">${env.JBOSS_HOME}</property> #3 <property name="serverConfig">standalone.xml</property> #4 <property name="allowConnectingToRunningServer">true</property> </configuration> </container> </arquillian> #1 To use the target directory during deployment and testing #2 Uses a managed WildFly container #3 The location of the JBoss WildFly installation #4 To use the standalone.xml configuration with WildFly
kubectl expose deployment my-nginx --type=NodePort --name=my-nginx-service
As you can see, the test has only a few lines of source code. The unit test uses Arquillian with Kubernetes ❶. Notice that you name the class
PodStarterKTwith the suffixKTto denote that this is a Kubernetes Test.KubernetesClientis injected as a resource ❷, which is being used in the test method that’s only one line of code. That single line of code ❸ asserts that the deployment of the pod is ready for a stable period (10 seconds).