Skip to content

Instantly share code, notes, and snippets.

@cdxker
Created September 9, 2024 20:31
Show Gist options
  • Save cdxker/e98a8f3460b6c2fee37538e7ebf3e1a2 to your computer and use it in GitHub Desktop.
Save cdxker/e98a8f3460b6c2fee37538e7ebf3e1a2 to your computer and use it in GitHub Desktop.
BACKEND=$(kubectl get ing <ingress-name> -o json | jq -j '.metadata.annotations."ingress.kubernetes.io/backends"' | jq -j 'keys[0]')
gcloud compute backend-services update $BACKEND --enable-cdn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment