I have 2 environments : prod and staging. I deploy static website files on cloud storage buckets. Separate resources have been created for each environment on google cloud:
subdomains: sub.example.com and sub-staging.example.com;
load balancers with backend buckets.
All resources are separated, created via terraform.
When I click the “Invalidate” button on the “Caching” tab of the “Load balancer details” page, the cache is invalidated for staging and prod load balancers. BUT when I click “Invalidate” button for prod load balancer, then cache invalidated only for prod load balancer.
Same behavior when I run the command "gcloud compute url-maps invalidate-cdn-cache my-lb-staging --path "/*" --async".
I'm new to devops and google cloud, please help me understand what direction to take to figure out what the problem is.
Hi @ThobbR,
Welcome to Google Cloud Community!
It is possible that you're seeing cache invalidation across your staging and production environments due to a configuration issue at a higher level within your GCP infrastructure.
I would look into the following to see if there are configuration issues causing this behavior:
Hope this helps.