mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
* This is the initial add of a test-network-kind Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Update the test-network-kind README; removes the local docker registry; updated 'clean' instructions Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> Co-authored-by: Matthew B White <mbwhite@users.noreply.github.com>
46 lines
No EOL
978 B
YAML
46 lines
No EOL
978 B
YAML
#
|
|
# Copyright IBM Corp. All Rights Reserved.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: cc-asset-transfer-basic
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: cc-asset-transfer-basic
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: cc-asset-transfer-basic
|
|
spec:
|
|
containers:
|
|
- name: main
|
|
image: hyperledger/asset-transfer-basic
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: CHAINCODE_SERVER_ADDRESS
|
|
value: 0.0.0.0:9999
|
|
|
|
# todo: load with an envFrom and a dynamic config map with the ID.
|
|
- name: CHAINCODE_ID
|
|
value: basic_1.0:d730a5ce916e120f2a2509ee33527a0df68cadac678f5eb196737ad10ba42da9
|
|
ports:
|
|
- containerPort: 9999
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: cc-asset-transfer-basic
|
|
spec:
|
|
ports:
|
|
- name: chaincode
|
|
port: 9999
|
|
protocol: TCP
|
|
selector:
|
|
app: cc-asset-transfer-basic |