Upgrade from v2.1
Upgrade Neo4j from 4.4 to 5.x
Please choose upgrade steps by console deployment type (docker or kubernetes)
Prerequisite
- Download pre-upgrade-to-v5.sh script to current directory
- Make
pre-upgrade-to-v5.sh
executablechmod +x pre-upgrade-to-v5.sh
Docker
- Execute below command before upgrading to new release
docker cp pre-upgrade-to-v5.sh deepfence-neo4j:/startup
docker exec deepfence-neo4j /startup/pre-upgrade-to-v5.sh - Upgrade to new release, wait for scheduler to complete initial neo4j setup, then execute below command
docker exec deepfence-neo4j /startup/post-upgrade-to-v5.sh
Kubernetes
- Set variable the below variables
export NAMESPACE=deepfence-console
export PODNAME=`kubectl get pods -n $NAMESPACE --no-headers -o custom-columns=":metadata.name" | grep neo4j` - Execute below command before upgrading to new release
kubectl cp -n $NAMESPACE pre-upgrade-to-v5.sh $PODNAME:/startup
kubectl exec -it -n $NAMESPACE $PODNAME -- /startup/pre-upgrade-to-v5.sh - Upgrade to new release, wait for scheduler to complete initial neo4j setup, then execute below command
kubectl exec -it -n $NAMESPACE $PODNAME -- /startup/post-upgrade-to-v5.sh