Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
d0d04e24
Commit
d0d04e24
authored
7 months ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
Pre-merge code cleanup
parent
8abb707f
No related branches found
No related tags found
2 merge requests
!294
Release TeraFlowSDN 4.0
,
!259
Resolve "(CTTC) Replace DLT Gateway functionality with an opensource and Hyper Ledger v2.4+ compliant version"
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifests/dltservice.yaml
+101
-106
101 additions, 106 deletions
manifests/dltservice.yaml
with
101 additions
and
106 deletions
manifests/dltservice.yaml
+
101
−
106
View file @
d0d04e24
...
@@ -20,7 +20,7 @@ data:
...
@@ -20,7 +20,7 @@ data:
CHANNEL_NAME
:
"
channel1"
CHANNEL_NAME
:
"
channel1"
CHAINCODE_NAME
:
"
adrenalineDLT"
CHAINCODE_NAME
:
"
adrenalineDLT"
MSP_ID
:
"
Org1MSP"
MSP_ID
:
"
Org1MSP"
PEER_ENDPOINT
:
"
10.1.1.96:7051"
#Change to required peer#
PEER_ENDPOINT
:
"
10.1.1.96:7051"
#Change to required peer#
PEER_HOST_ALIAS
:
"
peer0.org1.adrenaline.com"
PEER_HOST_ALIAS
:
"
peer0.org1.adrenaline.com"
CRYPTO_PATH
:
"
/test-network/organizations/peerOrganizations/org1.adrenaline.com"
CRYPTO_PATH
:
"
/test-network/organizations/peerOrganizations/org1.adrenaline.com"
KEY_DIRECTORY_PATH
:
"
/etc/hyperledger/fabric-keystore/keystore"
KEY_DIRECTORY_PATH
:
"
/etc/hyperledger/fabric-keystore/keystore"
...
@@ -28,7 +28,6 @@ data:
...
@@ -28,7 +28,6 @@ data:
TLS_CERT_PATH
:
"
/etc/hyperledger/fabric-ca-crt/ca.crt"
TLS_CERT_PATH
:
"
/etc/hyperledger/fabric-ca-crt/ca.crt"
---
---
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
Deployment
kind
:
Deployment
metadata
:
metadata
:
...
@@ -44,111 +43,110 @@ spec:
...
@@ -44,111 +43,110 @@ spec:
spec
:
spec
:
terminationGracePeriodSeconds
:
5
terminationGracePeriodSeconds
:
5
containers
:
containers
:
-
name
:
connector
-
name
:
connector
image
:
labs.etsi.org:5050/tfs/controller/dlt-connector:latest
image
:
labs.etsi.org:5050/tfs/controller/dlt-connector:latest
imagePullPolicy
:
Always
imagePullPolicy
:
Always
ports
:
ports
:
-
containerPort
:
8080
-
containerPort
:
8080
-
containerPort
:
9192
-
containerPort
:
9192
env
:
env
:
-
name
:
LOG_LEVEL
-
name
:
LOG_LEVEL
value
:
"
INFO"
value
:
"
INFO"
## for debug purposes
## for debug purposes
#- name: DLT_GATEWAY_HOST
#- name: DLT_GATEWAY_HOST
# value: "mock-blockchain.tfs-bchain.svc.cluster.local"
# value: "mock-blockchain.tfs-bchain.svc.cluster.local"
#- name: DLT_GATEWAY_PORT
#- name: DLT_GATEWAY_PORT
# value: "50051"
# value: "50051"
readinessProbe
:
readinessProbe
:
exec
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:8080"
]
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:8080"
]
livenessProbe
:
livenessProbe
:
exec
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:8080"
]
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:8080"
]
resources
:
resources
:
requests
:
requests
:
cpu
:
50m
cpu
:
50m
memory
:
64Mi
memory
:
64Mi
limits
:
limits
:
cpu
:
500m
cpu
:
500m
memory
:
512Mi
memory
:
512Mi
-
name
:
gateway
-
name
:
gateway
image
:
labs.etsi.org:5050/tfs/controller/dlt-gateway:latest
image
:
labs.etsi.org:5050/tfs/controller/dlt-gateway:latest
imagePullPolicy
:
Always
imagePullPolicy
:
Always
ports
:
ports
:
-
containerPort
:
50051
-
containerPort
:
50051
resources
:
resources
:
requests
:
requests
:
cpu
:
200m
cpu
:
200m
memory
:
512Mi
memory
:
512Mi
limits
:
limits
:
cpu
:
700m
cpu
:
700m
memory
:
1024Mi
memory
:
1024Mi
volumeMounts
:
volumeMounts
:
-
mountPath
:
/test-network
-
mountPath
:
/test-network
name
:
dlt-volume
name
:
dlt-volume
readOnly
:
true
readOnly
:
true
-
name
:
keystore
mountPath
:
/etc/hyperledger/fabric-keystore
readOnly
:
true
-
name
:
signcerts
mountPath
:
/etc/hyperledger/fabric-signcerts
readOnly
:
true
-
name
:
ca-crt
mountPath
:
/etc/hyperledger/fabric-ca-crt
readOnly
:
true
env
:
-
name
:
CHANNEL_NAME
valueFrom
:
configMapKeyRef
:
name
:
dlt-config
key
:
CHANNEL_NAME
-
name
:
CHAINCODE_NAME
valueFrom
:
configMapKeyRef
:
name
:
dlt-config
key
:
CHAINCODE_NAME
-
name
:
MSP_ID
valueFrom
:
configMapKeyRef
:
name
:
dlt-config
key
:
MSP_ID
-
name
:
PEER_ENDPOINT
valueFrom
:
configMapKeyRef
:
name
:
dlt-config
key
:
PEER_ENDPOINT
-
name
:
PEER_HOST_ALIAS
valueFrom
:
configMapKeyRef
:
name
:
dlt-config
key
:
PEER_HOST_ALIAS
-
name
:
CRYPTO_PATH
valueFrom
:
configMapKeyRef
:
name
:
dlt-config
key
:
CRYPTO_PATH
-
name
:
KEY_DIRECTORY_PATH
value
:
"
/etc/hyperledger/fabric-keystore/keystore"
-
name
:
CERT_DIRECTORY_PATH
value
:
"
/etc/hyperledger/fabric-signcerts/signcerts.pem"
-
name
:
TLS_CERT_PATH
value
:
"
/etc/hyperledger/fabric-ca-crt/ca.crt"
volumes
:
-
name
:
dlt-volume
persistentVolumeClaim
:
claimName
:
dlt-pvc
-
name
:
keystore
-
name
:
keystore
mountPath
:
/etc/hyperledger/fabric-keystore
secret
:
readOnly
:
tru
e
secretName
:
dlt-keyston
e
-
name
:
signcerts
-
name
:
signcerts
mountPath
:
/etc/hyperledger/fabric-signcerts
secret
:
readOnly
:
true
secretName
:
dlt-signcerts
-
name
:
ca-crt
-
name
:
ca-crt
mountPath
:
/etc/hyperledger/fabric-ca-crt
secret
:
readOnly
:
true
secretName
:
dlt-ca-crt
env
:
-
name
:
CHANNEL_NAME
valueFrom
:
configMapKeyRef
:
name
:
dlt-config
key
:
CHANNEL_NAME
-
name
:
CHAINCODE_NAME
valueFrom
:
configMapKeyRef
:
name
:
dlt-config
key
:
CHAINCODE_NAME
-
name
:
MSP_ID
valueFrom
:
configMapKeyRef
:
name
:
dlt-config
key
:
MSP_ID
-
name
:
PEER_ENDPOINT
valueFrom
:
configMapKeyRef
:
name
:
dlt-config
key
:
PEER_ENDPOINT
-
name
:
PEER_HOST_ALIAS
valueFrom
:
configMapKeyRef
:
name
:
dlt-config
key
:
PEER_HOST_ALIAS
-
name
:
CRYPTO_PATH
valueFrom
:
configMapKeyRef
:
name
:
dlt-config
key
:
CRYPTO_PATH
-
name
:
KEY_DIRECTORY_PATH
value
:
"
/etc/hyperledger/fabric-keystore/keystore"
-
name
:
CERT_DIRECTORY_PATH
value
:
"
/etc/hyperledger/fabric-signcerts/signcerts.pem"
-
name
:
TLS_CERT_PATH
value
:
"
/etc/hyperledger/fabric-ca-crt/ca.crt"
volumes
:
-
name
:
dlt-volume
persistentVolumeClaim
:
claimName
:
dlt-pvc
-
name
:
keystore
secret
:
secretName
:
dlt-keystone
-
name
:
signcerts
secret
:
secretName
:
dlt-signcerts
-
name
:
ca-crt
secret
:
secretName
:
dlt-ca-crt
---
---
apiVersion
:
v1
apiVersion
:
v1
kind
:
PersistentVolumeClaim
kind
:
PersistentVolumeClaim
metadata
:
metadata
:
...
@@ -161,7 +159,6 @@ spec:
...
@@ -161,7 +159,6 @@ spec:
storage
:
1Gi
storage
:
1Gi
---
---
apiVersion
:
v1
apiVersion
:
v1
kind
:
PersistentVolume
kind
:
PersistentVolume
metadata
:
metadata
:
...
@@ -173,12 +170,11 @@ spec:
...
@@ -173,12 +170,11 @@ spec:
-
ReadOnlyMany
-
ReadOnlyMany
persistentVolumeReclaimPolicy
:
Retain
persistentVolumeReclaimPolicy
:
Retain
hostPath
:
hostPath
:
path
:
"
/home/ubuntu/fabric-samples/test-network"
#Update to correct host paths where the MSP is located.
path
:
"
/home/ubuntu/fabric-samples/test-network"
#Update to correct host paths where the MSP is located.
claimRef
:
claimRef
:
name
:
dlt-pvc
name
:
dlt-pvc
---
---
apiVersion
:
v1
apiVersion
:
v1
kind
:
Service
kind
:
Service
metadata
:
metadata
:
...
@@ -194,7 +190,6 @@ spec:
...
@@ -194,7 +190,6 @@ spec:
type
:
NodePort
type
:
NodePort
---
---
apiVersion
:
v1
apiVersion
:
v1
kind
:
Service
kind
:
Service
metadata
:
metadata
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment