Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ansible): allow local (host) mounts in kind (#5770)
This allows mounting local directories in a one-node kind cluster. It can be useful (for example) for being able to load local models rather than requiring them to be first copied to MinIO or a cloud bucket. The changes here only add the basic support at the kind-cluster level. A separate PR will update the helm-charts to allow for Server podSpec changes, including adding a volume that points to the local folder now mounted in kind. You can now set the following additional variables (overwriting with -e when calling ansible-playbook preferred): - kind_local_mount (bool, default false): enable kind extraMounts option when creating the cluster - kind_host_path(string, default /tmp/kind-cluster): the local path to mount - kind_container_path(string, default /host-mount): the "containerPath" extraMounts setting - this (somewhat confusingly) defines the value that should be set as the path in `volumes[i].hostPath.path` when adding a volume to the pod spec. Example: ``` kind: Pod ... spec: volumes: - name: host-models hostPath: path: {{ kind_container_path }} ... containers - image: ... volumeMounts: - name: host-models # the actual path inside the container mountPath: /mnt/host-models ```
- Loading branch information