dltlogging

by assist-iot

Helm chartv0.2.0App 0.2.0

ASSIST-IoT DLT Logging and auditing enabler

About this chart

DLT Logging and Auditing

Assumptions

  • DLT Helm charts have to be deployed on the SAME NODE of the cluster
  • Logging & auditing chaincode will be deployed with the current helm cart.
  • This is a quick README, a more fomal will be created.
  • For more information contact: [email protected]

Installation instructions

Important note

You will have to use the nodeSelector, so in values.yaml file:

# Deploy all the components in the same node
enablerNodeSelector: 
  kubernetes.io/hostname: vm2 

Replace vm2 with your node name.

For quick installation use the name logging (recommended)

cd logging_auditing
helm install logging .

To uninstall:

helm uninstall logging

In case you want to use another name:

cd hlf-helm
./scripts/packageCC.sh

This will ask you for a $releaseName. Use the same $releaseName on you helm install command. Each time you want to use another name, you will have to run the packageCC.sh script and do it while in the logging_auditing folder.

helm install $releaseName .

To uninstall:

helm uninstall $releaseName

Usage

You communicate with http requests at the port 31999.

Test and Deploy

Check the installation

You need to follow the logs of clipeer0org1. Get the pods and copy the name of the pod.

kubectl get po
kubectl logs -f $clipeer0org1_pod_name

When it is over you should be able to see in all chaincodes status 200

INFO [chaincodeCmd] chaincodeInvokeOrQuery -> Chaincode invoke successful. result: status:200 

In case you want to clean the pvc

Important note, you need to deploy the pod inside the same node, so in dltinspectionpod.yaml you need to add the node name:

  nodeSelector:
    kubernetes.io/hostname: name_of_the_node

Inside the hlf-helm fodler:

kubectl apply -f dltinspectionpod.yaml
kubectl exec -it inspect /bin/sh

Inside the container:

rm -r data
exit

It returns resource is busy, but it gets cleaned. Back to the hlf-helm fodler:

kubectl delete pod inspect

Notes

  • It might need some restarts
  • It needs some time for the components to be deployed ~5-6 minutes after the images get cached.

Deploy dltlogging with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dltlogging on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdltlogging is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply