Requires Velocity 1.5.2 or later.
docker exec -it velocity_database_1 bash
mongodump
exit
dump
folder out of the containerdocker cp velocity_database_1:/dump <DESTINATION>
helm install --set mongodbRootPassword=<ROOT_PASSWORD> --name velocity-mongo stable/mongodb
kubectl exec -it --namespace default svc/velocity-mongo-mongodb /bin/bash
mongo admin -u root -p <ROOT_PASSWORD>
db.createUser({user: "<NEW_USERNAME>", pwd: "<NEW_PASSWORD>", roles: [{role: "readWriteAnyDatabase", db: "admin"}, {role: "dbAdminAnyDatabase", db: "admin"}, {role: "clusterAdmin", db: "admin"}]})
exit
kubectl get pods
kubectl cp <DUMP_LOCATION> <FULL_POD_NAME>:/tmp/dump
kubectl exec -it --namespace default svc/velocity-mongo-mongodb /bin/bash
cd /tmp/dump
ls
ADMIN
mongorestore --uri="mongodb://<NEW_USERNAME>:<NEW_PASSWORD>@localhost:27017/?authSource=admin" <DB_NAME> -d <DB_NAME>
exit
velocity-secret.yml
with the following contents apiVersion: v1
data:
tls.crt: <BASE64_CERT>
tls.key: <BASE64_KEY>
kind: Secret
metadata:
name: velocitytls
namespace: default
type: Opaque
cat <FILE>.pem | base64
velocity-secret.yml
filekubectl apply -f velocity-secret.yml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.30.0/deploy/static/mandatory.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.30.0/deploy/static/provider/cloud-generic.yaml
Before proceeding, please ensure that the settings.json
file generated the last time you ran the Velocity installer is present in the ~/.ucv directory
settings.json
file, but you can change the install location and hostname if you wish. Select Kubernetes as the platform. This will produce a Helm chart tgz you can use to install Velocity.helm install --set license=accept --set url.domain=<HOSTNAME> --set mongo.url=mongodb://<NEW_USERNAME>:<NEW_PASSWORD>@velocity-mongo-mongodb:27017/?authSource=admin --name velocity <VELOCITY_HELM_CHART>
Velocity should now be running