Contains the deployment for UC4.
{}
is a required parameter.
[]
is an optional parameter.
The current existing clusters are:
- experimental
- development
- production
- In Portainer: Restart necessary containers (mariaDb needs to be on IP **.4)
- Start the internal apache2 server
/etc/init.d/apache2 start
- In Portainer: Update the ui-web image of the vue frontend container
- Redeploy Vue frontend container
The service versions are defined in versions.sh
.
The position of the Hyperledger-Deploy-Script is defined in env.sh
.
./full_start.sh {clusterName} [chaincodeVersion]
With the persistent data:
./delete_cluster.sh {clusterName}
Without the persistent data:
kind delete cluster --name {clusterName}
./start_cluster.sh {clusterName}
kubectl config use-context kind-{clusterName}
This command deploys on the current cluster context with the versions defined for the {clusterName}.
./deploy_on_cluster.sh {clusterName}
kind delete namespace {namespace}
Namespaces are:
- uc4-lagom, every service of Lagom
- uc4-support, supporting container like imaginary
- hlf, everything from Hyperledger
- postgres, everything from postgres
- kafka, everything from kafka
- default, traefik (not deletable)
kubectl rollout restart deployment {serviceName} -n uc4-lagom
kubectl delete deployment {serviceName} -n uc4-lagom
export {serviceName in caps}_VERSION={version}
envsubst < services/{serviceName}.yaml | kubectl apply -f -
The nginx configurations used on our server are shown in the nginx folder.