This is implementation of Kubernetes Custom Resrouce Definitions.
The Goal is to opearation GCS as a resource of Kubernetes.
Remember that GKE has Servive Broker.
Development using Kubebuilder.
Details of this repository are described at the following site. Sorry, it will be in Japanese. https://qiita.com/h-r-k-matsumoto/items/ab7ead01c89af60119aa
It is still in development.
- install Kubebuilder.
- set
GOOGLE_APPLICATION_CREDENTIALS
environemt.Please see here.
$ make install
$ make run
Please change the following part of the manifest sample.
bucketName: crd-gcs-example
projectID: <<set-your-gcp-projectid>>
$ kubectl apply -f ./config/samples/
bucketName is crd target logical name.
The actual bucket name is generated by the controller.
e.g. logical name is crd-gcs-example2
, actual name is crd-gcs-example2-cabjafbb-pllngz
.
- Please change service account key file in manager.yaml.
Please see here.
$ make deploy
Please change the following part of the manifest sample.
bucketName: crd-gcs-example
projectID: <<set-your-gcp-projectid>>
$ kubectl apply -f ./config/samples/
bucketName is crd target logical name.
The actual bucket name is generated by the controller.
e.g. logical name is crd-gcs-example2
, actual name is crd-gcs-example2-cabjafbb-pllngz
.