This section will guide you through testing the snapshotting functionality of Rok, so that you make sure you have installed it properly.
Go to your GitOps repository, inside your
root@rok-tools:/# cd ~/ops/deployments
usercluster admin privileges to snapshot Kubernetes resources with Rok:
root@rok-tools:~/ops/deployments# kubectl apply -f rok/rok-test/rok-user-rbac.yaml
Deploy a PostgreSQL application with two StatefulSets:
root@rok-tools:~/ops/deployments# kubectl apply -f rok/rok-test/psql.yaml
Expose Istio IngressGateway:
root@rok-tools:~/ops/deployments# kubectl port-forward --address 0.0.0.0 -n istio-system service/istio-ingressgateway 8080:80
Forward traffic from your local host to
rok-tools. Choose one of the following options based on how you created your management environment:
Visit the Rok login page at http://127.0.0.1:8080/rok/. You will immediately be redirected to Dex in order to login.
Use dynamic port forwarding along with SOCKS5 protocol in your browser.
firstname.lastname@example.org the password you created when creating the
From the Rok UI, create a bucket, and snapshot the PostgreSQL StatefulSets using the corresponding driver.
Delete or terminate the node that a PostgreSQL pod was running on to trigger an automatic restore.
Clean up the test resources you previously created:
root@rok-tools:~/ops/deployments# kubectl delete -f rok/rok-test/rok-user-rbac.yaml root@rok-tools:~/ops/deployments# kubectl delete -f rok/rok-test/psql.yaml root@rok-tools:~/ops/deployments# kubectl delete pvc -l app=postgresql