Skip to content
This repository has been archived by the owner on Aug 27, 2020. It is now read-only.

Latest commit

 

History

History
23 lines (19 loc) · 1.14 KB

README.md

File metadata and controls

23 lines (19 loc) · 1.14 KB

openresty-cos

Example OpenResty Docker/Kubernetes example to access and cache private elements in IBM Cloud Object Storage with AWS Signature Version 4 support

Prerequisites:

  1. copy env.local.sample to env.local
  2. adjust settings in env.local to match your COS and Kubernetes Settings
  3. execute 01_s3sync this will copy the wwwroot example page to your bucket
  4. execute 02_buildimages.sh this will build the Docker image and push to IBM Cloud Container Registry Service
  5. execute 03_deploy.sh this will generate a deploy2kube.yaml
  6. kubect create -f deploy2kube.yaml
  7. curl -I http://YOURWORKERNODEIP:31200/index.html output will contain X-Cache: MISS
  8. run again curl -I http://YOURWORKERNODEIP:31200/index.html output will contain X-Cache: HIT

TODO:

  1. Build Helmchart
  2. Document example