Fixing the PV provisioning

This commit is contained in:
Anton Antonov (TONY)
2020-02-14 14:28:34 -08:00
parent d9f6862588
commit e83e337a7a
3 changed files with 8 additions and 8 deletions
@@ -71,9 +71,9 @@ for i in $(seq 1 80); do
vol="vol$i"
sudo umount /mnt/local-storage/$vol
sudo umount /azurearc/local-storage/$vol
sudo rm -rf /mnt/local-storage/$vol
sudo rm -rf /azurearc/local-storage/$vol
done
@@ -208,9 +208,9 @@ for i in $(seq 1 $PV_COUNT); do
vol="vol$i"
sudo mkdir -p /mnt/local-storage/$vol
sudo mkdir -p /azurearc/local-storage/$vol
sudo mount --bind /mnt/local-storage/$vol /mnt/local-storage/$vol
sudo mount --bind /azurearc/local-storage/$vol /azurearc/local-storage/$vol
done
echo "Kubernetes pre-requisites have been completed."
@@ -35,8 +35,8 @@ metadata:
data:
storageClassMap: |
local-storage:
hostDir: /mnt/local-storage
mountDir: /mnt/local-storage
hostDir: /azurearc/local-storage
mountDir: /azurearc/local-storage
blockCleanerCommand:
- "/scripts/shred.sh"
- "2"
@@ -73,7 +73,7 @@ spec:
- mountPath: /etc/provisioner/config
name: provisioner-config
readOnly: true
- mountPath: /mnt/local-storage
- mountPath: /azurearc/local-storage
name: local-storage
mountPropagation: "HostToContainer"
volumes:
@@ -82,7 +82,7 @@ spec:
name: local-provisioner-config
- name: local-storage
hostPath:
path: /mnt/local-storage
path: /azurearc/local-storage
---
apiVersion: v1
kind: ServiceAccount