Skip to content

Commit 359f559

Browse files
authored
Use hostpath instead of rancher (#896)
This pull request removes the local-path provisioner setup from the `local-hostpath` overlay and switches volume provisioning from dynamic PersistentVolumeClaims to a static hostPath mount. The main changes simplify storage configuration by removing Kubernetes resources related to dynamic provisioning and updating the deployment to use a direct hostPath mount. **Storage Provisioning Changes:** * Removed the `PersistentVolumeClaim` definition, eliminating dynamic volume provisioning for the workload. * Updated `volumes.yaml` to mount the `/mnt/nvme-raid` directory directly via a `hostPath` volume, instead of referencing a PVC. **Kubernetes Resource Clean-up:** * Deleted all local-path provisioner resources, including the `ConfigMap`, `Deployment`, RBAC roles/bindings, service account, and namespace, removing support for dynamic local-path volume provisioning. [[1]](diffhunk://#diff-5424325e5f84fd9cb2a8b8273d44ce51c09ed375362715aa66361a157824f890L1-L38) [[2]](diffhunk://#diff-d537f98a51584b285bf30eebad7587f98e191f0c54d425dede6e128379e57be0L1-L117) * Removed the `StorageClass` definition for `local-path`, further disabling dynamic storage provisioning. --------- Co-authored-by: {your_GitHub_username} <{your_GitHub_email}>
1 parent 86ffcd0 commit 359f559

File tree

9 files changed

+6
-184
lines changed

9 files changed

+6
-184
lines changed

modules/kustomize/fio/overlays/local-hostpath/configuration/configmap.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.

modules/kustomize/fio/overlays/local-hostpath/configuration/deployment.yaml

Lines changed: 0 additions & 117 deletions
This file was deleted.

modules/kustomize/fio/overlays/local-hostpath/configuration/ds.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ spec:
4949
fio-dedicated: "true"
5050
initContainers:
5151
- name: nvme-setup
52-
image: bitnami/kubectl:1.33.2
52+
image: telescope.azurecr.io/bitnami/kubectl:v1.33.2
5353
command:
5454
- nsenter
5555
- --target
@@ -160,7 +160,7 @@ spec:
160160
valueFrom:
161161
fieldRef:
162162
fieldPath: spec.nodeName
163-
image: bitnami/kubectl:1.33.2
163+
image: telescope.azurecr.io/bitnami/kubectl:v1.33.2
164164
command:
165165
- bash
166166
- -exc

modules/kustomize/fio/overlays/local-hostpath/configuration/kustomization.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@ kind: Kustomization
33

44
resources:
55
- ds.yaml
6-
- storageclass.yaml
7-
- configmap.yaml
8-
- deployment.yaml

modules/kustomize/fio/overlays/local-hostpath/configuration/storageclass.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

modules/kustomize/fio/overlays/local-hostpath/deployment/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
resources:
5-
- pvc.yaml
65
- ../../../base
76

87
patches:

modules/kustomize/fio/overlays/local-hostpath/deployment/pvc.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

modules/kustomize/fio/overlays/local-hostpath/deployment/volumes.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ spec:
99
- name: fio
1010
volumeMounts:
1111
- name: hostpath-mount
12-
mountPath: /mnt/data
12+
mountPath: /mnt/nvme-raid
1313
volumes:
1414
- name: hostpath-mount
15-
persistentVolumeClaim:
16-
claimName: $name
15+
hostPath:
16+
path: /mnt/nvme-raid
17+
type: Directory

steps/engine/fio/configure-local-hostpath.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ steps:
55
kustomize build configuration | kubectl apply -f -
66
kubectl wait --for=condition=Ready pod -l app=nvme-setup -n kube-system --timeout=600s
77
kubectl get pods -n kube-system -l app=nvme-setup -o wide
8-
kubectl wait --for=condition=Ready pod -l app=local-path-provisioner -n local-path-storage --timeout=600s
9-
kubectl get pods -n local-path-storage -l app=local-path-provisioner -o wide
108
condition: eq(variables.storage_name, 'local-hostpath')
119
workingDirectory: modules/kustomize/fio/overlays/local-hostpath
1210
displayName: "Configure local-hostpath"

0 commit comments

Comments
 (0)