DataDog / ecommerce-workshop

Example eCommerce App for workshops and observability
Other
89 stars 112 forks source link

Unable to deploy storedog Application #273

Open aishvaryaps opened 1 year ago

aishvaryaps commented 1 year ago

Hello team,

I have deployed this Storedog app on K8: https://github.com/DataDog/ecommerce-workshop/tree/main/deploy/generic-k8s/ecommerce-app When i trigger the app from browser i see its broken. Can u share a working application yaml files ?

stevedatadog commented 1 year ago

Without seeing a screenshot, I'll guess that you're seeing a rails error page with red stack trace info? If so, you might need to replace one of the docker images with its -fixed counterpart. I think advertisements-fixed or storefront-fixed ... try ddtraining/advertisements-fixed:2.1.4 and/or ddtraining/storefront-fixed:2.1.4

Steve Calnan

Technical Curriculum Developer

@.***

On Sun, Jan 29, 2023 at 7:44 PM aishvaryaps @.***> wrote:

Hello team,

I have deployed this Storedog app on K8:

https://github.com/DataDog/ecommerce-workshop/tree/main/deploy/generic-k8s/ecommerce-app When i trigger the app from browser i see its broken. Can u share a working application yaml files ?

— Reply to this email directly, view it on GitHub https://github.com/DataDog/ecommerce-workshop/issues/273, or unsubscribe https://github.com/notifications/unsubscribe-auth/APLSXFTXMUXWUO3ZYHWMOSDWU42KFANCNFSM6AAAAAAUKU6HWQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

aishvaryaps commented 1 year ago

Yes i can see red stack trace as below

image

I have executed kubectl apply -f deploy/generic-k8s/ecommerce-app. I am running the application on the Kubernetes cluster. after this kubectl apply command I have updated image in frontend deployment as below

image

also updated advertisement deployment as below

image

Still i see red stack trace. I am unable to see the application frontend.

For DB pod deployment i can see error as below. Do we need to update DB image as well

image

DB pod logs

image
aishvaryaps commented 1 year ago

@stevedatadog can you assist please

stevedatadog commented 1 year ago

The postgres container requires an environment variable to set the password for the default user. Did you create that secret? For example:

kubectl create secret generic db-password --from-literal=token=postgres