fabric-samples/test-network-kind/kube/cc-asset-transfer-basic.yaml
jkneubuh 5860027ac8
kubernetes test network : initial commit (#471)
* 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>
2021-09-09 14:04:07 +01:00

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