Corda Kubernetes Deployment Prerequisites

The Corda Kubernetes Deployment has the following prerequisites:

* A cloud environment with Kubernetes Cluster Services that has access to a Docker Container Registry
(Note! The current version of the scripts only supports Azure out of the box by way of Azure Kubernetes Service and Azure Container Registry, future versions of the scripts may add support for other cloud providers)
Docker is a way to generate system images of the state of a computer and can then be started up using Docker. Docker images are the building blocks used in Kubernetes.
Building the images requires a local Docker installation.
kubectl is used to manage Kubernetes clusters Install kubectl
Helm allows us to store the Kubernetes deployment scripts without usecase specific information in Git.
Helm has a values.yaml file that defines all the customizable fields and settings to use when deploying to Kubernetes.
* Corda Enterprise jars downloaded and stored in ‘bin’ folder
Downloading these requires a valid Corda Enterprise License agreement.
If you have the necessary login details you can download them directly from: Corda Artifactory


Setting up the relevant cloud services is currently left to the reader. Please contact Azure support if there are issues in setting up the necessary cloud services. Having said that though, these are the services you will need to have set up in order to execute the deployment scripts correctly.

Azure Kubernetes Service (AKS)

This is the main Kubernetes cluster that we will be using. Setting up the AKS will also set up a NodePool resource group. The NodePool should also have a few public IP addresses configured as Front End IP addresses for the AKS cluster. A good guide to follow for setting up AKS: Quickstart: Deploy an Azure Kubernetes Service cluster using the Azure CLI Worth reading the ACR section at the same time to combine the knowledge and setup process.

Azure Container Registry (ACR)

The ACR provides the Docker images for the AKS to use. Please make sure that the AKS can connect to the ACR using appropriate Service Principals. See: Azure Container Registry authentication with service principals. Guide for setting up ACR: Tutorial: Deploy and use Azure Container Registry Guide for connecting ACR and AKS: Authenticate with Azure Container Registry from Azure Kubernetes Service Worth reading the AKS section at the same time to combine the knowledge and setup process.

Azure Service Principals

Service Principals is Azures way of delegating permissions between different services within Azure. There should be at least one Service Principal for AKS which can access ACR to pull the Docker images from there. Here is a guide to get your started on SPs: Service principals with Azure Kubernetes Service (AKS)

Azure Storage Account

In addition to that there should be a storage account that will host the persistent volumes (File storage). Guide on setting up Storage Accounts: Create an Azure Storage account

Public IP addresses

You should have a few static public IP addresses available for each deployment. One for the Node to accept incoming RPC connections from an UI level and another one if running the Float component within the cluster, this would then be the public IP address that other nodes would see and connect to. A guide on setting up Public IP addresses in Azure: Create, change, or delete a public IP address

Docker image generation

We need to have the relevant Docker images in the Container Registry for Kubernetes to access. This is accomplished by the following two scripts in the folder docker-images:

  • - compiles the Dockerfiles into Docker images and tags them with the appropriate tags (that are customisable).
  • - pushes the Docker images to the assigned Docker Registry.

Both of the above scripts rely on configuration settings in the file The main variables to set in this file are DOCKER_REGISTRY, HEALTH_CHECK_VERSION and VERSION, the rest of the options can use their default values.

Please also note that you will have to have the relevant Corda Enterprise binaries available in the bin sub-folder before running any scripts. The necessary binaries are Corda Enterprise and Corda Firewall binaries. You can download the binaries from the R3 Artifactory if you have a user account (login is required). The scripts have been tested using version 4.0 of both binaries, although with minor tweaks to the scripts higher versions should run as well.

Public Key Infrastructure (PKI) generation

Some parts of the deployment use independent PKI structure. This is true for the Corda Firewall. The two components of the Corda Firewall, the Bridge and the Float communicate with each other using mutually authenticated TLS using a common certificate hierarchy with a shared trust root. One way to generate this certificate hierarchy is by use of the tools located in the folder corda-pki-generator. This is just an example for setting up the necessary PKI structure and does not support storing the keys in HSMs, for that additional work is required and that is expected in an upcoming version of the scripts.