Skip to content

Add kustomization configuration for a px cli demo - #1

Merged
aimichelle merged 11 commits into
pixie-io:masterfrom
ddelnano:ddelnano/updates-for-pixie-demo
May 25, 2023
Merged

Add kustomization configuration for a px cli demo#1
aimichelle merged 11 commits into
pixie-io:masterfrom
ddelnano:ddelnano/updates-for-pixie-demo

Conversation

@ddelnano

@ddelnano ddelnano commented May 19, 2023

Copy link
Copy Markdown
Member

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
…e build

Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
… existing k8s manifests

Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
… data continuously in demo

Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
…t waits until cassandra is ready

Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
…us, zipkin tracing, etc)

Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
@ddelnano
ddelnano force-pushed the ddelnano/updates-for-pixie-demo branch from 8b8fb6f to 2083255 Compare May 25, 2023 21:35
Comment thread Dockerfile-frontend

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

Copy link
Copy Markdown
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

Comment thread docker-compose.yaml
- 9966:9966
- 9967:9967
environment:
CASSANDRA_USE_ASTRA: "false"

Copy link
Copy Markdown
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();

@ddelnano ddelnano May 25, 2023

Copy link
Copy Markdown
Member Author

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
Copy Markdown
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