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

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

License

Notifications You must be signed in to change notification settings

rmey/openresty-cos

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published