-
Notifications
You must be signed in to change notification settings - Fork 27
/
kubernetes-deploy.sh
executable file
·27 lines (19 loc) · 844 Bytes
/
kubernetes-deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/bash
# Set up Corda on Kubernetes; must be run from the root of corda-runtime-os
set -e
# minikube users should do:
# eval $(minikube docker-env)
./gradlew publishOSGiImage
# Currently the init containers are not repeatable, so ensure we start from scratch each time
kubectl delete namespace corda || echo corda namesapce already deleted?
kubectl create namespace corda
# Usual prereqs
helm install prereqs -n corda oci://registry-1.docker.io/corda/corda-dev-prereqs --timeout 10m --wait
# Corda
helm dependency build charts/corda
helm install corda -n corda charts/corda --values ./values-prereqs.yaml --wait
# Port forwarding for convenience
#nc localhost 8888
#nc localhost 5432
#kubectl port-forward -n corda deploy/corda-corda-enterprise-rest-worker 8888 &
#kubectl port-forward -n corda svc/prereqs-postgres 5432:5432 &