diff --git a/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/cleanup-controller.sh b/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/cleanup-controller.sh index eb24f1a17e..0d3ccd2ee9 100644 --- a/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/cleanup-controller.sh +++ b/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/cleanup-controller.sh @@ -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 diff --git a/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh b/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh index ed50ef26fb..51a9fc05a5 100644 --- a/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh +++ b/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh @@ -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." diff --git a/samples/features/azure-arc/deployment/kubeadm/ubuntu/local-storage-provisioner.yaml b/samples/features/azure-arc/deployment/kubeadm/ubuntu/local-storage-provisioner.yaml index 3cf4983447..cc22b85a74 100644 --- a/samples/features/azure-arc/deployment/kubeadm/ubuntu/local-storage-provisioner.yaml +++ b/samples/features/azure-arc/deployment/kubeadm/ubuntu/local-storage-provisioner.yaml @@ -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