To deploy Thumbor on GKE, ensure your local environment is authenticated with Google Cloud and has kubectl installed. The provided gke-*.yaml examples are tested with version 1.11.5-gke.5.
1. Environment Setup
Run the following commands to authenticate and install necessary components:
gcloud auth login
gcloud auth configure-docker
gcloud components install kubectl
2. Apply Configuration
Apply the configuration files to your cluster using kubectl:
kubectl apply -f gce-simple-ingress.yaml
3. Configure Cloud Storage Loader
These examples use the thumbor-cloud-storage loader to fetch images. You must configure the following environment variables in your deployment to match your Google Cloud project and bucket settings:
LOADER: Set to thumbor_cloud_storage.loaders.cloud_storage_loaderCLOUD_STORAGE_PROJECT_ID: Your Google Cloud project IDCLOUD_STORAGE_BUCKET_ID: Your GCS bucket ID
- name: LOADER
value: "thumbor_cloud_storage.loaders.cloud_storage_loader"
- name: CLOUD_STORAGE_PROJECT_ID
value: "your-project-id"
- name: CLOUD_STORAGE_BUCKET_ID
value: "your.bucket.id"