From bc9d0b593230b6a435588a5ad7c843f010da1a47 Mon Sep 17 00:00:00 2001 From: doterme Date: Tue, 19 Nov 2019 15:07:02 +0800 Subject: [PATCH] update glusterfs examples url --- practice/using-glusterfs-for-persistent-storage.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/practice/using-glusterfs-for-persistent-storage.md b/practice/using-glusterfs-for-persistent-storage.md index cf9c1040c..e6f158347 100644 --- a/practice/using-glusterfs-for-persistent-storage.md +++ b/practice/using-glusterfs-for-persistent-storage.md @@ -159,7 +159,7 @@ $ vi /etc/hosts ## 配置 endpoints ```bash -$ curl -O https://raw.githubusercontent.com/kubernetes/examples/master/staging/volumes/glusterfs/glusterfs-endpoints.json +$ curl -O https://raw.githubusercontent.com/kubernetes/examples/master/volumes/glusterfs/glusterfs-endpoints.json # 修改 endpoints.json ,配置 glusters 集群节点ip # 每一个 addresses 为一个 ip 组 @@ -188,7 +188,7 @@ $ kubectl get ep ## 配置 service ```bash -$ curl -O https://raw.githubusercontent.com/kubernetes/examples/master/staging/volumes/glusterfs/glusterfs-service.json +$ curl -O https://raw.githubusercontent.com/kubernetes/examples/master/volumes/glusterfs/glusterfs-service.json # service.json 里面查找的是 enpointes 的名称与端口,端口默认配置为 1,我改成了1990 @@ -202,7 +202,7 @@ $ kubectl get svc ## 创建测试 pod ```bash -$ curl -O https://raw.githubusercontent.com/kubernetes/examples/master/staging/volumes/glusterfs/glusterfs-pod.json +$ curl -O https://raw.githubusercontent.com/kubernetes/examples/master/volumes/glusterfs/glusterfs-pod.json # 编辑 glusterfs-pod.json # 修改 volumes 下的 path 为上面创建的 volume 名称