github.com/IBM-Blockchain/fabric-operator@v1.0.4/sample-network/config/cas/org2-ca.yaml (about)

     1  #
     2  # Copyright contributors to the Hyperledger Fabric Operator project
     3  #
     4  # SPDX-License-Identifier: Apache-2.0
     5  #
     6  # Licensed under the Apache License, Version 2.0 (the "License");
     7  # you may not use this file except in compliance with the License.
     8  # You may obtain a copy of the License at:
     9  #
    10  # 	  http://www.apache.org/licenses/LICENSE-2.0
    11  #
    12  # Unless required by applicable law or agreed to in writing, software
    13  # distributed under the License is distributed on an "AS IS" BASIS,
    14  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    15  # See the License for the specific language governing permissions and
    16  # limitations under the License.
    17  #
    18  ---
    19  apiVersion: ibp.com/v1beta1
    20  kind: IBPCA
    21  metadata:
    22    name: org2-ca
    23  spec:
    24    action:
    25      renew: {}
    26    configoverride:
    27      ca:
    28        affiliations:
    29          org1:
    30            - department1
    31            - department2
    32          org2:
    33            - department1
    34        registry:
    35          identities:
    36            - name: rcaadmin
    37              pass: rcaadminpw
    38              type: client
    39              attrs:
    40                hf.Registrar.Roles: "*"
    41                hf.Registrar.DelegateRoles: "*"
    42                hf.Revoker: true
    43                hf.IntermediateCA: true
    44                hf.GenCRL: true
    45                hf.Registrar.Attributes: "*"
    46                hf.AffiliationMgr: true
    47            - name: peer1
    48              pass: peer1pw
    49              type: peer
    50            - name: peer2
    51              pass: peer2pw
    52              type: peer
    53            - name: org2admin
    54              pass: org2adminpw
    55              type: admin
    56        debug: true
    57        signing:
    58          default:
    59            expiry: 87600h0m0s
    60      tlsca:
    61        affiliations:
    62          org1:
    63            - department1
    64            - department2
    65          org2:
    66            - department1
    67        registry:
    68          identities:
    69            - name: admin
    70              pass: adminpw
    71              type: client # todo: shouldn't this be an admin?
    72              attrs:
    73                hf.Registrar.Roles: "*"
    74                hf.Registrar.DelegateRoles: "*"
    75                hf.Revoker: true
    76                hf.IntermediateCA: true
    77                hf.GenCRL: true
    78                hf.Registrar.Attributes: "*"
    79                hf.AffiliationMgr: true
    80            - name: peer1
    81              pass: peer1pw
    82              type: peer
    83            - name: peer2
    84              pass: peer2pw
    85              type: peer
    86            - name: org2admin
    87              pass: org2adminpw
    88              type: admin
    89        debug: true
    90        signing:
    91          default:
    92            expiry: 87600h0m0s
    93    customNames:
    94      pvc: {}
    95    domain: "${INGRESS_DOMAIN}"
    96    # imagePullSecrets:
    97    # - regcred
    98    images:
    99      caImage: ${CA_IMAGE}
   100      caTag: ${CA_IMAGE_LABEL}
   101      caInitImage: ${INIT_IMAGE}
   102      caInitTag: ${INIT_IMAGE_LABEL}
   103    ingress:
   104      class: ""
   105      tlsSecretName: ""
   106    license:
   107      accept: true
   108    replicas: 1
   109    resources:
   110      ca:
   111        limits:
   112          cpu: 100m
   113          memory: 200M
   114        requests:
   115          cpu: 10m
   116          memory: 10M
   117      init:
   118        limits:
   119          cpu: 100m
   120          memory: 200M
   121        requests:
   122          cpu: 10m
   123          memory: 10M
   124    service:
   125      type: ClusterIP
   126    storage:
   127      ca:
   128        class: "${STORAGE_CLASS}"
   129        size: 100M
   130    version: ${FABRIC_CA_VERSION}