seaweedfs kubernetes operator
Go to file
2020-10-14 21:29:18 -07:00
api/v1 add changes to MasterSpec and MasterStatus 2020-10-14 20:14:30 -07:00
config make manifests 2020-10-14 20:15:06 -07:00
controllers master controller 2020-10-14 21:29:18 -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
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
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
seaweedfs-operator.iml prepare env 2020-10-14 20:08:09 -07:00

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