Single Node OpenShiftを構築したら、ストレージが使えなくて困ったのでその時のYAMLをここに供養しておきます。
apiVersion: hostpathprovisioner.kubevirt.io/v1beta1 kind: HostPathProvisioner metadata: name: hostpath-provisioner spec: imagePullPolicy: IfNotPresent storagePools: - name: local-storage path: "/var/myvolumes" workload: nodeSelector: kubernetes.io/os: linux --- apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: hostpath-storage-class annotations: storageclass.kubernetes.io/is-default-class: "true" provisioner: kubevirt.io.hostpath-provisioner reclaimPolicy: Delete volumeBindingMode: WaitForFirstConsumer parameters: storagePool: local-storage
コードはGitHubで管理してます。
openshift-memo/sno-storage.yaml at main · chiroito/openshift-memo · GitHub