Skip to content

Instantly share code, notes, and snippets.

View Kamukage3e's full-sized avatar

Numon Kamukage3e

  • Uzbekistan, Tashkent
  • 10:58 (UTC -12:00)
View GitHub Profile
@Kamukage3e
Kamukage3e / gke-cdn-backend-config.sh
Created September 16, 2024 11:51 — forked from mikesparr/gke-cdn-backend-config.sh
Example BackendConfig for Google Kubernetes Engine (GKE) to enable Cloud CDN and cache content
#!/usr/bin/env bash
#####################################################################
# REFERENCES
# - https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-features#cloud_cdn
# - https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-features#expandable-1
#####################################################################
export PROJECT_ID=$(gcloud config get-value project)
export PROJECT_USER=$(gcloud config get-value core/account) # set current user