# # Copyright IBM Corp. All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 # --- apiVersion: v1 kind: ConfigMap metadata: name: org0-orderer2-env data: FABRIC_CFG_PATH: /var/hyperledger/fabric/config FABRIC_LOGGING_SPEC: INFO # debug:cauthdsl,policies,msp,common.configtx,common.channelconfig=info ORDERER_GENERAL_LISTENADDRESS: 0.0.0.0 ORDERER_GENERAL_LISTENPORT: "6050" ORDERER_GENERAL_LOCALMSPID: OrdererMSP ORDERER_GENERAL_LOCALMSPDIR: /var/hyperledger/fabric/organizations/ordererOrganizations/org0.example.com/orderers/org0-orderer2.org0.example.com/msp ORDERER_GENERAL_TLS_ENABLED: "true" ORDERER_GENERAL_TLS_CERTIFICATE: /var/hyperledger/fabric/organizations/ordererOrganizations/org0.example.com/orderers/org0-orderer2.org0.example.com/tls/signcerts/cert.pem ORDERER_GENERAL_TLS_ROOTCAS: /var/hyperledger/fabric/organizations/ordererOrganizations/org0.example.com/orderers/org0-orderer2.org0.example.com/tls/cacerts/org0-tls-ca.pem ORDERER_GENERAL_TLS_PRIVATEKEY: /var/hyperledger/fabric/organizations/ordererOrganizations/org0.example.com/orderers/org0-orderer2.org0.example.com/tls/keystore/server.key ORDERER_GENERAL_BOOTSTRAPMETHOD: none ORDERER_FILELEDGER_LOCATION: /var/hyperledger/fabric/data/orderer2 ORDERER_CONSENSUS_WALDIR: /var/hyperledger/fabric/data/orderer2/etcdraft/wal ORDERER_CONSENSUS_SNAPDIR: /var/hyperledger/fabric/data/orderer2/etcdraft/wal ORDERER_OPERATIONS_LISTENADDRESS: 0.0.0.0:8443 ORDERER_ADMIN_LISTENADDRESS: 0.0.0.0:9443 --- apiVersion: apps/v1 kind: Deployment metadata: name: org0-orderer2 spec: replicas: 1 selector: matchLabels: app: org0-orderer2 template: metadata: labels: app: org0-orderer2 spec: containers: - name: main image: {{FABRIC_CONTAINER_REGISTRY}}/fabric-orderer:{{FABRIC_VERSION}} imagePullPolicy: IfNotPresent envFrom: - configMapRef: name: org0-orderer2-env ports: - containerPort: 6050 - containerPort: 8443 - containerPort: 9443 volumeMounts: - name: fabric-volume mountPath: /var/hyperledger - name: fabric-config mountPath: /var/hyperledger/fabric/config volumes: - name: fabric-volume persistentVolumeClaim: claimName: fabric-org0 - name: fabric-config configMap: name: org0-config --- apiVersion: v1 kind: Service metadata: name: org0-orderer2 spec: ports: - name: general port: 6050 protocol: TCP - name: operations port: 8443 protocol: TCP - name: admin port: 9443 protocol: TCP selector: app: org0-orderer2