Simple app to be deployed as a Sidecar to Sync PV resources to a GCS Bucket in Google Cloud.
Pre-requesites:
- Create a Service Account with Storage Object Admin Role.
- Create a Key for that service account.
- Create a Secret inside Kubernetes with that Service Account Key.
mv <CREDENTIAL_FILENAME>.json credential.json
kubectl create secret generic <SECRET_NAME> -n <NAMESPACE> --from-file=credential.json
- Build and push the image
docker-credential-gcr configure-docker --registries=<YOUR_REPO>
docker build -t <YOUR_REPO>:<TAG_NAME> --platform amd64 .
docker push <YOUR_REPO>:<TAG_NAME>
- Create a bucket
- Change the helm value files.