# NFS client storageclass provisioner

helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/

helm install nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner \
  --set nfs.server=192.168.1.5 --set nfs.path=/fs/1000/nfs/k8s


# badger  batch delete

 cat /Users/junv/code/home-docker/scripts/batch_delete.sql | ssh -p 22422 junv@192.168.1.2 "PGPASSWORD=$PASSWORD psql -h 192.168.1.2 -U postgres -d badges -e"


# make redis and postgres group readable

sudo usermod -aG redis junv
sudo usermod -aG postgres junv

# For Redis
sudo chmod g+rx /mnt/k8s/redis
sudo chmod -R g+r /mnt/k8s/redis

# For Postgres
sudo chmod g+rx /mnt/k8s/postgres
sudo chmod -R g+r /mnt/k8s/postgres
