seaweedfs kubernetes operator
Go to file
Chris Lu 9859b72c74 add changes to MasterSpec and MasterStatus 2020-10-14 20:14:30 -07:00
api/v1 add changes to MasterSpec and MasterStatus 2020-10-14 20:14:30 -07:00
config operator-sdk create api --group seaweed --version v1 --kind Master --resource=true --controller=true 2020-10-14 20:09:08 -07:00
controllers operator-sdk create api --group seaweed --version v1 --kind Master --resource=true --controller=true 2020-10-14 20:09:08 -07:00
hack restart 2020-08-01 23:27:46 -07:00
.gitignore aux files 2020-07-26 14:50:48 -07:00
Dockerfile regenerate with operator-sdk 3-alpha 2020-07-26 14:47:24 -07:00
Makefile prepare env 2020-10-14 20:08:09 -07:00
PROJECT operator-sdk create api --group seaweed --version v1 --kind Master --resource=true --controller=true 2020-10-14 20:09:08 -07:00
README.md operator-sdk create api --group seaweed --version v1 --kind Master --resource=true --controller=true 2020-10-14 20:09:08 -07:00
go.mod operator-sdk create api --group seaweed --version v1 --kind Master --resource=true --controller=true 2020-10-14 20:09:08 -07:00
go.sum restart 2020-08-01 23:27:46 -07:00
main.go operator-sdk create api --group seaweed --version v1 --kind Master --resource=true --controller=true 2020-10-14 20:09:08 -07:00
seaweedfs-operator.iml prepare env 2020-10-14 20:08:09 -07:00

README.md

SeaweedFS Operator

Installation

Development

Follow the instructions in https://sdk.operatorframework.io/docs/building-operators/golang/quickstart/

$ git clone https://github.com/seaweedfs/seaweedfs-operator
$ cd seaweedfs-operator

# register the CRD with the Kubernetes
$ make install

# run the operator locally outside the Kubernetes cluster
$ make run ENABLE_WEBHOOKS=false 

# From another terminal in the same directory
$ kubectl apply -f config/samples/seaweed_v1_seaweed.yaml

Create API and Controller

Here are the commands used to create customer resource definition (CRD)

operator-sdk create api --group seaweed --version v1 --kind Master --resource=true --controller=true