apiVersion: apps/v1 kind: Deployment metadata: name: local-path-provisioner namespace: local-path-storage spec: replicas: 1 selector: matchLabels: app: local-path-provisioner template: metadata: labels: app: local-path-provisioner spec: serviceAccountName: local-path-provisioner-service-account co...
// https://github.com/rancher/local-path-provisioner/issues/27 _, err = p.kubeClient.CoreV1().Pods(p.namespace).Create(helperPod) if err != nil && !k8serror.IsAlreadyExists(err) { return err } defer func() { e := p.kubeClient.CoreV1().Pods(p.namespace).Delete(helperPod.Nam...
参考Github:https://github.com/rancher/local-path-provisioner1.部署1.1.创建local-path-provisioner官网默认路径:/opt/local-path-provisionermd-fences md-end-block ty-contain-cm modeLoaded highlighter- Bash # 创建资源 kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/v...
1、地址 GitHub地址 bash gitclonegit@github.com:rancher/local-path-provisioner.git 2、更改 local-path-provisioner 使用的默认存储路径 bash sed -i's|/opt/local-path-provisioner|/mnt/data/local-path-provisioner|'/root/local-path-provisioner/deploy/local-path-storage.yaml 3、创建文件并提权 bash mkd...
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml使用: 创建StorageClass资源:使用kubectl命令行工具创建一个StorageClass资源,用于声明你要使用的存储类型。以下是一个示例StorageClass资源的配置文件:kubectl apply -f https://raw.githubuser...
kubectl delete-fhttps://raw.githubusercontent.com/Azure/AKS-Edge/main/samples/storage/local-path-provisioner/pod.yaml kubectl delete-fhttps://raw.githubusercontent.com/Azure/AKS-Edge/main/samples/storage/local-path-provisioner/pvc.yaml Next steps ...
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml 这个YAML文件包含了local-path-provisioner的Deployment、ServiceAccount、ClusterRole、ClusterRoleBinding等资源定义。 4. 创建一个StorageClass资源,指定local-path-provisioner为存储提供器 接下来...
Kubernetes安装local-path-provisioner基于HostPath使用动态PV(测试用),获取local-path-provisionergitclonehttps://github.com/rancher/local-path-provisioner.git修改local-path-storage.yamlvilocal-path-provisioner/deploy/lo
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/v0.0.26/deploy/local-path-storage.yaml Development kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml ...
Learn more about how customized files appear on GitHub. 2 changes: 1 addition & 1 deletion 2 scripts/airgap/image-list.txt Original file line numberDiff line numberDiff line change @@ -1,6 +1,6 @@ docker.io/rancher/klipper-helm:v0.9.2-build20240828 docker.io/rancher/klipper-lb:v...