A service that deliver files into Google Cloud Storage.
- I needed to share files between clustered microservices using Google Cloud Storage.
- To share files between pods on multiple nodes on Kubernetes enviromnet on GKE(Google Container Engine).
You don't need to use kubernetes or GKE to use this project though
- Wanted to make sure every service(container) on every pod can deliver same files to users no matter which node user is connecting.
you need to give an info about your google cloud info.
you need to have this info below
- Google Cloud Project ID
- Google Cloud Storage Bucket for the project.
- Google Cloud Service Account for the project.
- Google Cloud Private key file (p12) for service account in the project
- Ask this info to a system manager in your company/team
- Create via google cloud console(cloud.google.com). if you are a system manager or practicing on your own system.
Put this file into project root path example/path/to/gcs-cargoship/.env
format)
GCS_BUCKET_NAME="BUCKET NAME"
GC_SECRET_PATH="PATH/secret.p12"
GC_SECRET_PASSWORD="SECRETCODE-FOR-PRIVATEKEY"
GC_SERVICE_ACCOUNT="service@account.com"
GC_PROJECT_ID="project-id"
ex)
GCS_BUCKET_NAME="fuse-test"
GC_SECRET_PATH="/home/gcs-cargoship/auth/secret.p12"
GC_SECRET_PASSWORD="notasecret"
GC_SERVICE_ACCOUNT="random_id@developer.gserviceaccount.com"
GC_PROJECT_ID="project-id-1234"
run-web.sh
-
docker volume and ip,port.
-
kubenetes volume and localhost port.
put a file into /home/gcs-cargoship/files/