Cleanup

Now that you’ve completed the locality load balancing tasks, let’s cleanup.

Remove generated files

$ rm -f sample.yaml helloworld-region*.zone*.yaml

Remove the sample namespace

$ for CTX in "$CTX_PRIMARY" "$CTX_R1_Z1" "$CTX_R1_Z2" "$CTX_R2_Z3" "$CTX_R3_Z4"; \
  do \
    kubectl --context="$CTX" delete ns sample --ignore-not-found=true; \
  done

Congratulations! You successfully completed the locality load balancing task!