github.com/kotalco/kotal@v0.3.0/config/crd/bases/ipfs.kotal.io_clusterpeers.yaml (about)

     1  ---
     2  apiVersion: apiextensions.k8s.io/v1
     3  kind: CustomResourceDefinition
     4  metadata:
     5    annotations:
     6      controller-gen.kubebuilder.io/version: v0.8.0
     7    creationTimestamp: null
     8    name: clusterpeers.ipfs.kotal.io
     9  spec:
    10    group: ipfs.kotal.io
    11    names:
    12      kind: ClusterPeer
    13      listKind: ClusterPeerList
    14      plural: clusterpeers
    15      singular: clusterpeer
    16    scope: Namespaced
    17    versions:
    18    - additionalPrinterColumns:
    19      - jsonPath: .status.client
    20        name: Client
    21        type: string
    22      - jsonPath: .spec.consensus
    23        name: Consensus
    24        type: string
    25      name: v1alpha1
    26      schema:
    27        openAPIV3Schema:
    28          description: ClusterPeer is the Schema for the clusterpeers API
    29          properties:
    30            apiVersion:
    31              description: 'APIVersion defines the versioned schema of this representation
    32                of an object. Servers should convert recognized schemas to the latest
    33                internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
    34              type: string
    35            kind:
    36              description: 'Kind is a string value representing the REST resource this
    37                object represents. Servers may infer this from the endpoint the client
    38                submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
    39              type: string
    40            metadata:
    41              type: object
    42            spec:
    43              description: ClusterPeerSpec defines the desired state of ClusterPeer
    44              properties:
    45                bootstrapPeers:
    46                  description: BootstrapPeers are ipfs cluster peers to connect to
    47                  items:
    48                    type: string
    49                  type: array
    50                  x-kubernetes-list-type: set
    51                clusterSecretName:
    52                  description: ClusterSecretName is k8s secret holding cluster secret
    53                  type: string
    54                consensus:
    55                  description: Consensus is ipfs cluster consensus algorithm
    56                  enum:
    57                  - crdt
    58                  - raft
    59                  type: string
    60                extraArgs:
    61                  additionalProperties:
    62                    type: string
    63                  description: ExtraArgs is extra arguments to pass down to the cli
    64                  type: object
    65                id:
    66                  description: ID is the the cluster peer id
    67                  type: string
    68                image:
    69                  description: Image is ipfs cluster peer client image
    70                  type: string
    71                logging:
    72                  description: Logging is logging verboisty level
    73                  enum:
    74                  - error
    75                  - warn
    76                  - info
    77                  - debug
    78                  type: string
    79                peerEndpoint:
    80                  description: PeerEndpoint is ipfs peer http API endpoint
    81                  type: string
    82                privateKeySecretName:
    83                  description: PrivateKeySecretName is k8s secret holding private key
    84                  type: string
    85                replicas:
    86                  description: Replicas is number of replicas
    87                  enum:
    88                  - 0
    89                  - 1
    90                  type: integer
    91                resources:
    92                  description: Resources is node compute and storage resources
    93                  properties:
    94                    cpu:
    95                      description: CPU is cpu cores the node requires
    96                      pattern: ^[1-9][0-9]*m?$
    97                      type: string
    98                    cpuLimit:
    99                      description: CPULimit is cpu cores the node is limited to
   100                      pattern: ^[1-9][0-9]*m?$
   101                      type: string
   102                    memory:
   103                      description: Memory is memmory requirements
   104                      pattern: ^[1-9][0-9]*[KMGTPE]i$
   105                      type: string
   106                    memoryLimit:
   107                      description: MemoryLimit is cpu cores the node is limited to
   108                      pattern: ^[1-9][0-9]*[KMGTPE]i$
   109                      type: string
   110                    storage:
   111                      description: Storage is disk space storage requirements
   112                      pattern: ^[1-9][0-9]*[KMGTPE]i$
   113                      type: string
   114                    storageClass:
   115                      description: StorageClass is the volume storage class
   116                      type: string
   117                  type: object
   118                trustedPeers:
   119                  description: TrustedPeers is CRDT trusted cluster peers who can manage
   120                    the pinset
   121                  items:
   122                    type: string
   123                  type: array
   124                  x-kubernetes-list-type: set
   125              required:
   126              - clusterSecretName
   127              - peerEndpoint
   128              type: object
   129            status:
   130              description: ClusterPeerStatus defines the observed state of ClusterPeer
   131              properties:
   132                client:
   133                  type: string
   134                consensus:
   135                  type: string
   136              required:
   137              - client
   138              - consensus
   139              type: object
   140          type: object
   141      served: true
   142      storage: true
   143      subresources:
   144        status: {}
   145  status:
   146    acceptedNames:
   147      kind: ""
   148      plural: ""
   149    conditions: []
   150    storedVersions: []