### Start Minikube Cluster Source: https://github.com/aeron-io/aeron-cookbook-code/blob/main/rfq/kubernetes/readme.md Start a Minikube cluster with specified Kubernetes version, driver, resources, and addons. The `--embed-certs="true"` flag is used for certificate embedding. ```bash minikube start --kubernetes-version="v1.26.5" --driver="docker" --memory="15G" --cpus="6" --addons="registry" --embed-certs="true" ``` -------------------------------- ### Connect to Admin Container (kubectl) Source: https://github.com/aeron-io/aeron-cookbook-code/blob/main/rfq/kubernetes/readme.md Manually connect to the admin container in Kubernetes using `kubectl exec`. Ensure you replace `` with the actual pod name obtained from `kubectl get pods`. ```bash kubectl exec -it -n aeron-io-sample-admin -- java --add-opens java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/java.util.zip=ALL-UNNAMED -jar admin-uber.jar ``` -------------------------------- ### Start Aeron Cluster with Docker Compose Source: https://github.com/aeron-io/aeron-cookbook-code/blob/main/rfq/docker/readme.md Starts the Aeron cluster and admin containers in detached mode. ```bash docker compose up -d ``` -------------------------------- ### Sample Admin Command Script Source: https://github.com/aeron-io/aeron-cookbook-code/blob/main/rfq/admin/readme.md A sample script demonstrating a happy path for connecting to a cluster, adding an instrument, creating, quoting, and accepting an RFQ, and then exiting. ```bash connect add-instrument cusip=12345 rfq-create cusip=12345 quantity=250 created-by=500 rfq-quote rfq-id=1 price=1000 quoted-by=501 rfq-accept rfq-id=1 accepted-by=500 exit ``` -------------------------------- ### Generate Cluster Protocol Codecs Source: https://github.com/aeron-io/aeron-cookbook-code/blob/main/rfq/cluster-protocol/readme.md Run this command to generate Java sources from SBE definitions. Configuration details can be found in build.gradle.kts. ```bash ./gradlew generateCodecs ``` -------------------------------- ### Run Docker Desktop Kubernetes Deployment Script Source: https://github.com/aeron-io/aeron-cookbook-code/blob/main/rfq/kubernetes/readme.md Execute the provided shell script to build, deploy, and run the Aeron cluster and admin components on a Docker Desktop Kubernetes environment. ```bash ./docker-desktop-k8s-run.sh ``` -------------------------------- ### Run Minikube Deployment Script Source: https://github.com/aeron-io/aeron-cookbook-code/blob/main/rfq/kubernetes/readme.md Execute the provided shell script to build, deploy, and run the Aeron cluster and admin components on a Minikube environment. ```bash ./minikube-run.sh ``` -------------------------------- ### Connect to Aeron Cluster from Admin Tool Source: https://github.com/aeron-io/aeron-cookbook-code/blob/main/rfq/docker/readme.md Command to execute within the Aeron admin tool to connect to the cluster. ```bash connect ``` -------------------------------- ### Build Admin Uber Jar with Gradle Source: https://github.com/aeron-io/aeron-cookbook-code/blob/main/rfq/admin/readme.md Command to build the Admin uber jar using Gradle. This is a prerequisite for running the Admin outside of Kubernetes or Docker. ```bash ./gradlew ``` -------------------------------- ### Build Docker Images for Aeron Cluster Source: https://github.com/aeron-io/aeron-cookbook-code/blob/main/rfq/docker/readme.md Builds the Docker images for the Aeron cluster and admin nodes. Use `--no-cache` to ensure a fresh build. ```bash docker compose build --no-cache ``` -------------------------------- ### Connect to Aeron Admin Container Source: https://github.com/aeron-io/aeron-cookbook-code/blob/main/rfq/docker/readme.md Executes the Aeron admin tool within a running admin container. Ensure the container name and JAR path are correct. ```bash docker exec -it aeron-admin1-1 java --add-opens java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/java.util.zip=ALL-UNNAMED -jar admin-uber.jar ``` -------------------------------- ### Run Admin Uber Jar Source: https://github.com/aeron-io/aeron-cookbook-code/blob/main/rfq/admin/readme.md Command to run the Admin uber jar. Requires specific Java VM options for access to internal modules. Note that this is a terminal application. ```bash java --add-opens java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/java.util.zip=ALL-UNNAMED -jar admin-uber.jar ``` -------------------------------- ### Find Aeron Cluster Leader via Logs Source: https://github.com/aeron-io/aeron-cookbook-code/blob/main/rfq/docker/readme.md Searches the Docker Compose logs for the 'LEADER' keyword to identify the cluster leader. ```bash docker compose logs | grep LEADER ``` -------------------------------- ### Stop and Remove All Aeron Docker Containers Source: https://github.com/aeron-io/aeron-cookbook-code/blob/main/rfq/docker/readme.md Stops all containers defined in the Docker Compose file and removes associated networks. ```bash docker compose down ``` -------------------------------- ### Stop Specific Aeron Docker Container Source: https://github.com/aeron-io/aeron-cookbook-code/blob/main/rfq/docker/readme.md Stops a single specified container managed by Docker Compose. ```bash docker compose stop ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.