See extra documentation here
The parts from 7 to 10 can be skipped if you don't want update the container images
- Update the source code
git pull- Make
image-caption-generationthe working namespace
kubectl config get-context --current --namespace=image-caption-generation- Remove any previous deployment
kubectl delete namespace image-caption-generation- Recreate an empty namespace for the new deployment
kubectl create namespace image-caption-generation- Install RabbitMQ. Notice that you need to install the bitnami repository before.
helm install -f rabbitmq.yaml -n image-caption-generation img-rabbitmq bitnami/rabbitmq --version 12.12.0- Install Infinispan. Notice that you need to install openshift repository before.
helm install -f infinispan.yaml -n image-caption-generation infinispan openshift/infinispan-infinispan --version 0.3.2- Optionally Compile the Java/Quarkus
galleryservice:
mvn -f ./gallery/pom.xml clean package- Optionally Compile the Java/Quarkus
userservice:
mvn -f ./users/pom.xml clean package- Optionally Build the Docker images locally:
docker-compose build- Optionally Push the Docker images to the Docker remote repository:
docker-compose push- Deploy the application, Kubernetes will pull the images from the remote repository:
kubectl apply -f kubernetes.yaml- See all the pods starting...
kubectl get pods -w