mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Fixing the PV provisioning
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user