项目作者: h-r-k-matsumoto

项目描述 :
custom resource definitions for google cloud storage.
高级语言: Go
项目地址: git://github.com/h-r-k-matsumoto/gcs-crd.git
创建时间: 2019-05-04T10:19:47Z
项目社区:https://github.com/h-r-k-matsumoto/gcs-crd

开源协议:Apache License 2.0

下载


GCS CRD

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.

How to use

Local Development

Prepare

  • install Kubebuilder.
  • set GOOGLE_APPLICATION_CREDENTIALS environemt.Please see here.

Running

  1. $ make install
  2. $ make run

Please change the following part of the manifest sample.

  1. bucketName: crd-gcs-example
  2. projectID: <<set-your-gcp-projectid>>
  1. $ 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 .

Deploy to GKE.

Prepare

Running

  1. $ make deploy

Please change the following part of the manifest sample.

  1. bucketName: crd-gcs-example
  2. projectID: <<set-your-gcp-projectid>>
  1. $ 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 .