seaweedfs-operator/deploy/crds/seaweedfs.com_seaweedfsclusters_crd.yaml
HZ89 f8c94e43bb feat(crds): change api group name
change api group name to seaweedfs.com
2019-11-20 11:33:30 +08:00

121 lines
4.9 KiB
YAML

apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: seaweedfsclusters.seaweedfs.com
spec:
group: seaweedfs.com
names:
kind: SeaweedfsCluster
listKind: SeaweedfsClusterList
plural: seaweedfsclusters
singular: seaweedfscluster
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
description: SeaweedfsCluster is the Schema for the seaweedfsclusters API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: SeaweedfsClusterSpec defines the desired state of SeaweedfsCluster
properties:
filer:
description: FilerSpec defines the desired state of filer server in
cluster
properties:
dirListLimit:
description: DirListLimit limit sub dir listing size, default 100000
format: int32
type: integer
disableDirListing:
description: DisableDirListing turn off directory listing
type: boolean
max_mb:
description: MaxMB split files larger than the limit, default 32
format: int32
type: integer
port:
description: Port filer server http listen port
format: int32
type: integer
replicas:
description: Replicas a size of filer replications
format: int32
type: integer
type: object
master:
description: MasterSpec defines the desired state of master server in
cluster
properties:
default_replication:
description: DefaultReplication set the data replication policy
in volumes. default "000"
type: string
disableHttp:
description: DisableHTTP if disable http proto, only gRPC operations
are allowed. GRPC port is http port + 10000
type: boolean
port:
description: Port set master server http api service port. default
is 9333 Master servers also use it identify each other.
format: int32
type: integer
replicas:
description: Replicas a size of a raft cluster. The master servers
are coordinated by Raft protocol, to elect a leader.
format: int32
type: integer
type: object
version:
type: string
volumes:
items:
description: VolumeSpec defines the desired state of volume servers
in cluster
properties:
compaction_mbps:
description: CompactionMbps limit background compaction or copying
speed in mega bytes per second
format: int32
type: integer
dataCenter:
description: DataCenter current volume server's data center name
type: string
max:
description: Max set the maximum numbers of volumes management
by this server. Each volume is a 30G size file in under layer
filesystem. Default is 7
format: int32
type: integer
port:
description: Port volume server api http listen port
format: int32
type: integer
rack:
description: Rack current volume server's rack name
type: string
type: object
type: array
type: object
status:
description: SeaweedfsClusterStatus defines the observed state of SeaweedfsCluster
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true