casual integration testing running on k8s
Requires that minikube is installed, along with kubectl
minikube start minikube tunnel minikube dashboardeval $(minikube docker-env)Now a:
docker image lsshould show you the k8s images
./images/casual/build.sh./images/casual-java/wildfly/build.shIn images/casual-java/wildfly/k8s issue the following command:
kubectl apply -f domain-wildfly-and-casual.yamlTo replace a running POD:
kubectl replace --force -f ./domain-wildfly-and-casual.yaml kubectl expose deployment deployment-name --type=LoadBalancer --port=port# --target-port=port# --name=your-nameFollow the logging from a container in a POD:
kubectl logs -c container-name pod-name --followSame but tracing:
kubectl logs -c container-name pod-name --tracekubectl exec --stdin --tty pod-name -c container-name -- /bin/shFor wildfly we recommend using VisualVM - be sure to enable the appropriate plugins. You can then add a jmx connection such as service:jmx:remote+http://wildfly-service-ip:9990