Skip to content

Commit e83e337

Browse files
committed
Fixing the PV provisioning
1 parent d9f6862 commit e83e337

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/cleanup-controller.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ for i in $(seq 1 80); do
7171

7272
vol="vol$i"
7373

74-
sudo umount /mnt/local-storage/$vol
74+
sudo umount /azurearc/local-storage/$vol
7575

76-
sudo rm -rf /mnt/local-storage/$vol
76+
sudo rm -rf /azurearc/local-storage/$vol
7777

7878
done
7979

samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ for i in $(seq 1 $PV_COUNT); do
208208

209209
vol="vol$i"
210210

211-
sudo mkdir -p /mnt/local-storage/$vol
211+
sudo mkdir -p /azurearc/local-storage/$vol
212212

213-
sudo mount --bind /mnt/local-storage/$vol /mnt/local-storage/$vol
213+
sudo mount --bind /azurearc/local-storage/$vol /azurearc/local-storage/$vol
214214

215215
done
216216
echo "Kubernetes pre-requisites have been completed."

samples/features/azure-arc/deployment/kubeadm/ubuntu/local-storage-provisioner.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ metadata:
3535
data:
3636
storageClassMap: |
3737
local-storage:
38-
hostDir: /mnt/local-storage
39-
mountDir: /mnt/local-storage
38+
hostDir: /azurearc/local-storage
39+
mountDir: /azurearc/local-storage
4040
blockCleanerCommand:
4141
- "/scripts/shred.sh"
4242
- "2"
@@ -73,7 +73,7 @@ spec:
7373
- mountPath: /etc/provisioner/config
7474
name: provisioner-config
7575
readOnly: true
76-
- mountPath: /mnt/local-storage
76+
- mountPath: /azurearc/local-storage
7777
name: local-storage
7878
mountPropagation: "HostToContainer"
7979
volumes:
@@ -82,7 +82,7 @@ spec:
8282
name: local-provisioner-config
8383
- name: local-storage
8484
hostPath:
85-
path: /mnt/local-storage
85+
path: /azurearc/local-storage
8686
---
8787
apiVersion: v1
8888
kind: ServiceAccount

0 commit comments

Comments
 (0)