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

[sol1] Migrate sol1 single-cluster to support dev/staging which are, actually, in a single cluster #22

Open
palladius opened this issue Jul 21, 2022 · 4 comments
Assignees

Comments

@palladius
Copy link
Owner

Talking to Daniel I realized that the sol1 has always been Single Cluster, not MC!

No biggie, seems like the best thing to do is to refactor the code into supporting Dev/Staging which are already in a single cluster (DEV).

Also, they are 1 pod each, so demonstratic proper traffic splitting seems less hypocritical (canary/prod have instead a 80/20 as of now).

  • Possible complication: currently DEV/STAG are in two different namespaces. We might have to CHANGE that, if it doesnt work. In this case I need to rename staging to $PODNAME-staging in kustomize, which potentially will break other stuff. SIGH.
@palladius
Copy link
Owner Author

I'm in the middle of it. For ease of troubleshooting, I'm renaming ALL entities from "sol1-" to "sol1d-".
this way sol1 grepping still works, but I know whats new and what old.

@palladius
Copy link
Owner Author

  • fixed script 13.sh to patch DEV cluster.
  • changing file names accfordingly.
    Now getting in content.

Chaning OR pointer (canary or prod) to dev or staging. Luckily i had forecasted this in the past and created a beautiful

@palladius
Copy link
Owner Author

Ok, set up everything.
The Gateway won't come up. Errors are:

  Normal   ADD     9m13s                 sc-gateway-controller  default/sol1d-app01-eu-w1-ext-gw
  Normal   UPDATE  9m13s                 sc-gateway-controller  default/sol1d-app01-eu-w1-ext-gw
  Normal   SYNC    9m5s (x4 over 9m13s)  sc-gateway-controller  default/sol1d-app01-eu-w1-ext-gw
  Warning  SYNC    63s (x3 over 7m35s)   sc-gateway-controller  failed to translate Gateway "default/sol1d-app01-eu-w1-ext-gw": generic::unknown: 6 errors occurred: Error GWCER104: HTTPRoute "default/sol1d-app01-eu-w1" is misconfigured, err: Error GWCER102: services default/sol1d-app01-eu-w1-dev not found..; Error GWCER104: HTTPRoute "default/sol1d-app01-eu-w1" is misconfigured, err: Error GWCER102: services default/sol1d-app01-eu-w1-dev not found..; Error GWCER104: HTTPRoute "default/sol1d-app01-eu-w1" is misconfigured, err: Error GWCER102: services default/sol1d-app01-eu-w1-dev not found..; Error GWCER104: HTTPRoute "default/sol1d-app01-eu-w1" is misconfigured, err: Error GWCER102: services default/sol1d-app01-eu-w1-dev not found..; Error GWCER104: HTTPRoute "default/sol1d-app01-eu-w1" is misconfigured, err: Error GWCER102: services default/sol1d-app01-eu-w1-dev not found..; Error GWCER104: HTTPRoute "default/sol1d-app01-eu-w1" is misconfigured, err: Error GWCER102: services default/sol1d-app01-eu-w1-dev not found..

@palladius
Copy link
Owner Author

Last error:

"default/sol1d-app01-eu-w1-ext-gw": generic::unknown: 6 errors occurred: Error GWCER104: HTTPRoute "default/sol1d-app01-eu-w1" is misconfigured, err: Error GWCER102: services default/sol1d-app01-eu-w1-dev not found..; Error GWCER104: HTTPRoute "default/sol1d-app01-eu-w1" is misconfigured, err: Error GWCER102: services default/sol1d-app01-eu-w1-dev not found..; Error GWCER104: HTTPRoute "default/sol1d-app01-eu-w1" is misconfigured, err: Error GWCER102: services default/sol1d-app01-eu-w1-dev not found..; Error GWCER104: HTTPRoute "default/sol1d-app01-eu-w1" is misconfigured, err: Error GWCER102: services default/sol1d-app01-eu-w1-dev not found..; Error GWCER104: HTTPRoute "default/sol1d-app01-eu-w1" is misconfigured, err: Error GWCER102: services default/sol1d-app01-eu-w1-dev not found..; Error GWCER104: HTTPRoute "default/sol1d-app01-eu-w1" is misconfigured, err: Error GWCER102: services default/sol1d-app01-eu-w1-dev not found..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant