AWS
Prerequisites
Set up a Kubernetes cluster
Minimum cluster size:
Catalyst Blockchain Platform (1 instance): 2 core CPU, 4 GB RAM, 10 GB disk space
Each additional node (CA, orderer, or peer):
CA
0.1
128
1
Peer
0.1
128
1
Orderer
0.1
128
1
Install Helm to your workstation
Installation guide: https://helm.sh/docs/intro/install/
Configure ingress and DNS
Ingress Controller
The ingress controller exposes Hyperledger Fabric nodes (peer, orderer, CA) as well as API and UI through port :443.
Ingress resources for Hyperledger Fabric nodes are provisioned automatically — these nodes require TLS passthrough because of mutual TLS.
Ingress resources for API and UI require a trusted TLS certificate.
Two load balancer options:
A single network load balancer (NLB) with TLS passthrough. TLS certificate is provisioned by cert-manager. Traefik handles TLS termination for API and UI.
No additional customization needed.
DNS record:
A *.example.com -> NLB addressTwo load balancers: NLB1 with AWS Certificate Manager (ACM) for TLS termination, and NLB2 with TLS passthrough for Hyperledger Fabric nodes.
Create the ACM-enabled service:
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: <arn:aws:acm:region:account:certificate/id>
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
service.beta.kubernetes.io/aws-load-balancer-type: nlb
name: traefik-with-acm
namespace: <traefik-ingress namespace>
spec:
ports:
- name: web
port: 80
protocol: TCP
targetPort: web
- name: websecure
port: 443
protocol: TCP
targetPort: websecure
selector:
app.kubernetes.io/instance: traefik
app.kubernetes.io/name: traefik
type: LoadBalancerDNS records:
Component endpoints:
UI:
example.com:443API:
example.com:443/apiAny HL Fabric node:
<nodeName>.example.com:443
Create a namespace
kubectl create ns ${ns_name}Get credentials to the Helm repository in JFrog Artifactory from the IntellectEU admin team.
Add the repo to Helm:
helm repo add catbp https://intellecteu.jfrog.io/artifactory/catbp-helm \
--username ${ARTIFACTORY_USERNAME} \
--password ${ARTIFACTORY_PASSWORD}Create an ImagePullSecret
kubectl create secret intellecteu-jfrog-access regcred \
--docker-server=intellecteu-catbp-docker.jfrog.io \
--docker-username=${your-name} \
--docker-password=${your-password} \
--docker-email=${your-email} \
-n ${ns_name}Deploy a message broker
Message broker is needed by the Catalyst Blockchain Platform Hyperledger Fabric service to schedule commands, emit events and control workflows.
The Catalyst Blockchain Platform Hyperledger Fabric service requires a vhost and a user with full access for the vhost. Single queue will be propagated upon the Catalyst Blockchain Platform Hyperledger Fabric service startup.
Deploy a database
We recommend using Amazon RDS managed service.
1GB RAM is recommended as a minimum setup.
No specific configurations are needed.
db.t3.small can be selected as a machine.
A database is required by the Catalyst Blockchain Platform Hyperledger Fabric service to support internal architecture for workflows as well as store users action logs.
The Catalyst Blockchain Platform Hyperledger Fabric service requires a database and a user with full read/write access to the database. Database tables will be provisioned in default schema on application startup.
In this example we will use PostgreSQL. Schema is ‘public’ by default.
Run these commands to provision a database on the recently deployed server:
CREATE DATABASE "catbp-org1";
CREATE USER "catbp" WITH ENCRYPTED PASSWORD 'catbp';
GRANT ALL PRIVILEGES ON DATABASE "catbp-org1" to "catbp";Install the Catalyst Blockchain Platform
Once prerequisites are complete, proceed with the Installation Instructions to configure Helm chart values and deploy the service.
Last updated
Was this helpful?