Deploy Nextcloud to Kubernetes
git clone
- alter backend.tf as needed
- add terraform.tfvars.json with kube variables
terraform init
terraform apply
kubectl -n $NAMESPACE exec -it -c nextcloud-database $CONTAINER -- /usr/bin/pg_dumpall -U nextcloud > dumpfile
change: database_image
to be the postgresql version you wish.
# On System
kubectl -n $NAMESPACE exec -it -c nextcloud-database $CONTAINER -- "$(zsh | bash | sh)"
# In Container
createdb -U nextcloud nextcloud
# On System
kubectl -n $NAMESPACE exec -it -c nextcloud-database $CONTAINER -- env PGPASSWORD="$PG_PASSWORD" psql -U nextcloud < dumpfile