Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kustomization configuration for a px cli demo #1

Merged
merged 11 commits into from
May 25, 2023

Conversation

ddelnano
Copy link
Member

@ddelnano ddelnano commented May 19, 2023

This adds the kustomization config needed to install a px cli demo for a cassandra application. After this is merged, I will follow up with the pixie repo change which will document how to use the kustomized files from this repo and add in the other dependencies (k8ssandra, etc).

Testing done

  • Verified that cd kubernetes; kompose convert -f ../docker-compose.yml results in a noop (P397)
  • Deployed this to a pixie cluster and verified that the http://petclinic-backend:9966/petclinic/api/pets endpoint and cassandra database receive constant traffic
Screenshot 2023-05-25 at 2 37 58 PM Screenshot 2023-05-25 at 2 38 14 PM

ddelnano added 11 commits May 25, 2023 21:35
… data continuously in demo

Signed-off-by: Dom Del Nano <[email protected]>
…t waits until cassandra is ready

Signed-off-by: Dom Del Nano <[email protected]>
@ddelnano ddelnano force-pushed the ddelnano/updates-for-pixie-demo branch from 8b8fb6f to 2083255 Compare May 25, 2023 21:35
@@ -27,7 +30,8 @@ RUN echo "export const environment = {production: false, REST_API_URL: 'http://
# Use the DIST folder to package an image with NGINX.
####################################################################

FROM nginx:1.19.4 AS runtime
FROM $DOCKER_HUB/library/nginx:$NGINX_VERSION AS runtime

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made this change upstream as well spring-petclinic#15

@@ -25,6 +26,7 @@ services:
- 9966:9966
- 9967:9967
environment:
CASSANDRA_USE_ASTRA: "false"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to keep all of our edits in the kustomization.yaml, however, I found it useful to run the local docker-compose setup. This was the minimum change needed to make docker-compose work without the cloud db they advertise.

"Dog", "Ollie", LocalDate.of(2021, 5, 10)))).subscribe();
for (int i = 0; i < 10; i++)
Mono.from(visitDao.upsert(new VisitEntity(petUuid, UUID.randomUUID(),
"General check up for Ollie", LocalDate.of(2023, 1, 25)))).subscribe();
Copy link
Member Author

@ddelnano ddelnano May 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ensures that the load generator container receives data when it makes requests to http://petclinic-backend:9966/petclinic/api/pets.

@ddelnano
Copy link
Member Author

@aimichelle this is ready for review.

@aimichelle aimichelle merged commit 135625e into pixie-io:master May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants