From 1e3c884bc3249c61a6c4a9c9506bbeade1b5487a Mon Sep 17 00:00:00 2001 From: "landis.wu@dji.com" Date: Sun, 25 Nov 2018 10:58:44 +0800 Subject: [PATCH] modify glusterfs json file's 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 bf4f490b9..afee10689 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/kubernetes/master/examples/volumes/glusterfs/glusterfs-endpoints.json +$ curl -O https://raw.githubusercontent.com/kubernetes/examples/master/staging/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/kubernetes/master/examples/volumes/glusterfs/glusterfs-service.json +$ curl -O https://raw.githubusercontent.com/kubernetes/examples/master/staging/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/kubernetes/master/examples/volumes/glusterfs/glusterfs-pod.json +$ curl -O https://raw.githubusercontent.com/kubernetes/examples/master/staging/volumes/glusterfs/glusterfs-pod.json # 编辑 glusterfs-pod.json # 修改 volumes 下的 path 为上面创建的 volume 名称