-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathorg1-fpcclient-deployment.yaml
More file actions
84 lines (82 loc) · 3.04 KB
/
org1-fpcclient-deployment.yaml
File metadata and controls
84 lines (82 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: fpcclient-org1
name: fpcclient-org1
namespace: hyperledger
spec:
selector:
matchLabels:
app: fpcclient-org1
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: fpcclient-org1
spec:
containers:
- env:
- name: SGX_MODE
value: SIM
- name: CC_ID
value: fpccc
- name: CHANNEL_NAME
value: mychannel
- name: GATEWAY_CONFIG
value: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1/connection.yaml
- name: ORG
value: org1
- name: FABRIC_LOGGING_SPEC
value: INFO
- name: CORE_PEER_ADDRESS
value: peer0-org1:7051
- name: CORE_PEER_ID
value: peer0-org1
- name: CORE_PEER_LOCALMSPID
value: org1MSP
- name: CORE_PEER_MSPCONFIGPATH
value: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1/users/Admin@org1/msp
- name: CORE_PEER_TLS_CERT_FILE
value: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1/peers/peer0-org1/tls/server.crt
- name: CORE_PEER_TLS_ENABLED
value: "true"
- name: CORE_PEER_TLS_KEY_FILE
value: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1/peers/peer0-org1/tls/server.key
- name: CORE_PEER_TLS_ROOTCERT_FILE
value: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1/peers/peer0-org1/tls/ca.crt
- name: GOPATH
value: /opt/gopath
- name: ORDERER_CA
value: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/consortium/orderers/orderer0/msp/tlscacerts/tlsca.consortium-cert.pem
- name: FPC_PATH
value: /opt/gopath/src/github.com/hyperledger/fabric-private-chaincode/
image: fpc/fpcclient
imagePullPolicy: IfNotPresent
name: fpcclient
tty: true
volumeMounts:
- mountPath: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/
name: fpcclient-claim3
- mountPath: /opt/gopath/src/github.com/hyperledger/fabric-private-chaincode/
name: fpc-claim
workingDir: /opt/gopath/src/github.com/hyperledger/fabric/peer
# nodeSelector:
# kubernetes.io/arch: amd64
# test to see if minikube can start a docker amd64 image even though it is running arm64
restartPolicy: Always
volumes:
- name: fpcclient-claim3
hostPath:
path: /fpc/samples/deployment/k8s/crypto-config
type: Directory
- name: fpc-claim
hostPath:
path: /fpc
type: Directory