Skip to content

Conversation

@bartoszherba
Copy link
Collaborator

@bartoszherba bartoszherba commented Aug 31, 2022

Description

  • add ssrMiddlewareUrl to prevent make a call to unavailable external client

It's SSR <--> API implementation issue when it comes to deployment using a rolling-update strategy. During the deployment, the Kubernetes is probing SSR if it's already up. SSR is trying to call middleware using an external URL (market...storefrontcloud. io) rather than localhost:3000/API, while the middleware isn't available publicly yet, because the SSR didn't respond with 200 in the first place. The workaround works because it allows the project to be deployed and make the API available, and later we fix the SSR to use the remote API address back again

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@bartoszherba bartoszherba requested a review from Frodigo as a code owner August 31, 2022 17:14
@bartoszherba bartoszherba force-pushed the fix/add-ssr-middleware-url branch from 2fd6b81 to c9a2c5d Compare August 31, 2022 17:18
Copy link
Contributor

@Frodigo Frodigo left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

Can you update documentation and explain what ssrMiddlewareUrl variable is?

@bartoszherba bartoszherba force-pushed the fix/add-ssr-middleware-url branch 2 times, most recently from bf9f966 to 79d0e76 Compare September 2, 2022 06:42
@bartoszherba bartoszherba requested a review from Frodigo September 2, 2022 06:43
@bartoszherba bartoszherba force-pushed the fix/add-ssr-middleware-url branch from 79d0e76 to 7e9e6fc Compare September 2, 2022 06:44
- add ssrMiddlewareUrl to prevent make a call to unavailable external client
@bartoszherba bartoszherba force-pushed the fix/add-ssr-middleware-url branch from 7e9e6fc to 0883ddf Compare September 2, 2022 07:26
@Frodigo Frodigo added this to the 1.1.0 milestone Sep 2, 2022
@bartoszherba bartoszherba merged commit 4fc51f3 into develop Sep 2, 2022
@bartoszherba bartoszherba deleted the fix/add-ssr-middleware-url branch September 2, 2022 07:36
@Frodigo Frodigo changed the title fix: m2-1050 pods does not get up after deployment fix: pods does not get up after deployment Sep 5, 2022
@Frodigo Frodigo mentioned this pull request Sep 5, 2022
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.

3 participants