casual integration testing running on k8s
Requires that minikube is installed, along with kubectl
minikube start
minikube tunnel
minikube dashboard
eval $(minikube docker-env)
Now a:
docker image ls
should show you the k8s images
./images/casual/build.sh
./images/casual-java/wildfly/build.sh
In images/casual-java/wildfly/k8s
issue the following command:
kubectl apply -f domain-wildfly-and-casual.yaml
To 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-name
Follow the logging from a container in a POD:
kubectl logs -c container-name pod-name --follow
Same but tracing:
kubectl logs -c container-name pod-name --trace
kubectl exec --stdin --tty pod-name -c container-name -- /bin/sh