palladius / clouddeploy-platinum-path

Cloud Build + Cloud Deploy from the ground up
Apache License 2.0
7 stars 11 forks source link

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

Open palladius opened 2 years ago

palladius commented 2 years ago

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).

palladius commented 2 years ago

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 commented 2 years ago

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

palladius commented 2 years ago

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 commented 2 years ago

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..