github.com/kotalco/kotal@v0.3.0/config/crd/bases/bitcoin.kotal.io_nodes.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: nodes.bitcoin.kotal.io
     9  spec:
    10    group: bitcoin.kotal.io
    11    names:
    12      kind: Node
    13      listKind: NodeList
    14      plural: nodes
    15      singular: node
    16    scope: Namespaced
    17    versions:
    18    - additionalPrinterColumns:
    19      - jsonPath: .spec.network
    20        name: Network
    21        type: string
    22      - jsonPath: .status.client
    23        name: Client
    24        type: string
    25      name: v1alpha1
    26      schema:
    27        openAPIV3Schema:
    28          description: Node is the Schema for the nodes 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: NodeSpec defines the desired state of Node
    44              properties:
    45                blocksOnly:
    46                  description: BlocksOnly rejects transactions from network peers https://bitcointalk.org/index.php?topic=1377345.0
    47                  type: boolean
    48                coinStatsIndex:
    49                  description: CoinStatsIndex maintains coinstats index used by the
    50                    gettxoutsetinfo RPC
    51                  type: boolean
    52                dbCacheSize:
    53                  description: DBCacheSize is database cache size
    54                  maximum: 16384
    55                  minimum: 4
    56                  type: integer
    57                extraArgs:
    58                  additionalProperties:
    59                    type: string
    60                  description: ExtraArgs is extra arguments to pass down to the cli
    61                  type: object
    62                image:
    63                  description: Image is Bitcoin node client image
    64                  type: string
    65                listen:
    66                  description: Listen accepts connections from outside
    67                  type: boolean
    68                maxConnections:
    69                  description: MaxConnections is maximum connections to peers
    70                  type: integer
    71                network:
    72                  description: Network is Bitcoin network to join and sync
    73                  enum:
    74                  - mainnet
    75                  - testnet
    76                  type: string
    77                p2pPort:
    78                  description: P2PPort is p2p communications port
    79                  type: integer
    80                pruning:
    81                  description: Pruning allows pruneblockchain RPC to delete specific
    82                    blocks
    83                  type: boolean
    84                reIndex:
    85                  description: ReIndex rebuild chain state and block index
    86                  type: boolean
    87                replicas:
    88                  description: Replicas is number of replicas
    89                  enum:
    90                  - 0
    91                  - 1
    92                  type: integer
    93                resources:
    94                  description: Resources is node compute and storage resources
    95                  properties:
    96                    cpu:
    97                      description: CPU is cpu cores the node requires
    98                      pattern: ^[1-9][0-9]*m?$
    99                      type: string
   100                    cpuLimit:
   101                      description: CPULimit is cpu cores the node is limited to
   102                      pattern: ^[1-9][0-9]*m?$
   103                      type: string
   104                    memory:
   105                      description: Memory is memmory requirements
   106                      pattern: ^[1-9][0-9]*[KMGTPE]i$
   107                      type: string
   108                    memoryLimit:
   109                      description: MemoryLimit is cpu cores the node is limited to
   110                      pattern: ^[1-9][0-9]*[KMGTPE]i$
   111                      type: string
   112                    storage:
   113                      description: Storage is disk space storage requirements
   114                      pattern: ^[1-9][0-9]*[KMGTPE]i$
   115                      type: string
   116                    storageClass:
   117                      description: StorageClass is the volume storage class
   118                      type: string
   119                  type: object
   120                rpc:
   121                  description: RPC enables JSON-RPC server
   122                  type: boolean
   123                rpcPort:
   124                  description: RPCPort is JSON-RPC server port
   125                  type: integer
   126                rpcUsers:
   127                  description: RPCUsers is JSON-RPC users credentials
   128                  items:
   129                    description: RPCUsers is JSON-RPC users credentials
   130                    properties:
   131                      passwordSecretName:
   132                        description: PasswordSecretName is k8s secret name holding JSON-RPC
   133                          user password
   134                        type: string
   135                      username:
   136                        description: Username is JSON-RPC username
   137                        type: string
   138                    required:
   139                    - passwordSecretName
   140                    - username
   141                    type: object
   142                  type: array
   143                rpcWhitelist:
   144                  description: RPCWhitelist is a list of whitelisted rpc method
   145                  items:
   146                    type: string
   147                  type: array
   148                  x-kubernetes-list-type: set
   149                txIndex:
   150                  description: TransactionIndex maintains a full tx index
   151                  type: boolean
   152                wallet:
   153                  description: Wallet load wallet and enables wallet RPC calls
   154                  type: boolean
   155              required:
   156              - network
   157              type: object
   158            status:
   159              description: NodeStatus defines the observed state of Node
   160              properties:
   161                client:
   162                  type: string
   163              type: object
   164          type: object
   165      served: true
   166      storage: true
   167      subresources:
   168        status: {}
   169  status:
   170    acceptedNames:
   171      kind: ""
   172      plural: ""
   173    conditions: []
   174    storedVersions: []