SlideShare a Scribd company logo
Using the Cloud Foundry and Kubernetes Stack as a Part of a Blockchain CI/CD Pipeline
● It’s a time-distributed
database. It consists of
one-at-a-time blocks,
which contain a set of
transactions.
What is blockchain?
● It’s a peer-to-peer
network where each
node is a server and a
client at the same time.
● It’s magic math logic
covered in software.
@altoros
Blockchain client servers
● Different for different type of networks
● For EVMs:
○ CLI: geth, eth, parity, ethereumj, etc.
○ GUI: mist, alethzero, etc.
● For BitCoin:
○ Bitcoin Wallet
○ Bitcoin Core
○ etc.
@altoros
DApps
● Is the same app as usual, but
uses Blockchain methods
under the hood.
● Based on smart contracts, a
software that validates digital
contracts/negotiations
between network participants.
@altoros
DApps authorization
● DApps do not authorize at node
directly.
● User authorizes his/her requests
(if necessary) via a wallet. A
DApp receives a signed
transaction, not a secret key,
preventing hackers from
performing the MitM attack.
@altoros
DApps automation. Step 0
cf push
@altoros
DApps automation. Step 0
@altoros
DApps automation. Step 1
@altoros
DApps automation. Step 1
• Manual management
• Devs need to operate
Kubernetes or request it from
an Ops team
• Flexibility still low
@altoros
Cloud Foundry + Kubernetes
DApp
• Stateless
• Moving fast
• Node.js
• Devs love cf push
Parity (a blockchain client)
• Stateful
• Changes come from the
outside
• Provide service for DApps
@altoros
DApps automation. Step 2
Service
Broker
?
@altoros
Service broker
Is service here?
How many resources I
need?
Who configure
servers?
How to connect to
service?
@altoros
DApps automation. Step 3
Kibosh
• On-demand service broker
• cf cli to create or delete
service cluster in k8s
• A service URL automatically
appears in env vars
@altoros
DApps automation. Step 3
kibosh
helm
@altoros
Kibosh
Helm chart
Kibosh
Is service here?
cf create-service-broker
@altoros
How many resources I need?
Kibosh
Helm chart
Kibosh
• Helm chart has variables
• Helm chart should define
plans
• Plans define variables
@altoros
Who configures the service source?
Kibosh
• Chart can be customized to correspond to
Parity functional
• Chart supports flexible number of Blockchain
nodes
• No dependencies needed
@altoros
How access the service?
Kibosh
VCAP_SERVICES="poanode"[{credentials:...},{services:..}]
config = {‘77’},{NAME:..},{RPC:..},{BRANCH:..}]
@altoros
Kibosh
Helm chart
Kibosh
plans
@altoros
Kibosh
Kibosh
bazaar
Helm chart
Helm chart
Plans
definition
Bazaar CLI
@altoros
Helm chart
pipeline
bosh release
deployment
automation
Application
pipeline
CI/CD
@altoros
What next? Demo.
@altoros
Thank you!
@altoros website blog

More Related Content

Using the Cloud Foundry and Kubernetes Stack as a Part of a Blockchain CI/CD Pipeline