From c3467dc0c91bada2bf088f86957381d60edb758a Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Thu, 23 Aug 2018 14:39:37 -0700 Subject: [PATCH] Update README.md Change a few kubectl command from `apply` to `create`. The user should aware that storage class, pod or minio exists or not. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7b08d7c..9b08cf2 100644 --- a/README.md +++ b/README.md @@ -177,12 +177,12 @@ Longhorn provides the persistent volume directly to Kubernetes through one of th Use following command to create a default Longhorn StorageClass named `longhorn`. ``` -kubectl apply -f https://raw.githubusercontent.com/rancher/longhorn/master/examples/storageclass.yaml +kubectl create -f https://raw.githubusercontent.com/rancher/longhorn/master/examples/storageclass.yaml ``` Now you can create a pod using Longhorn like this: ``` -kubectl apply -f https://raw.githubusercontent.com/rancher/longhorn/master/examples/pvc.yaml +kubectl create -f https://raw.githubusercontent.com/rancher/longhorn/master/examples/pvc.yaml ``` The yaml contains two parts: @@ -255,7 +255,7 @@ We provides two testing purpose backupstore based on NFS server and Minio S3 ser Use following command to setup a Minio S3 server for BackupStore after `longhorn-system` was created. ``` -kubectl apply -f https://raw.githubusercontent.com/rancher/longhorn/master/deploy/backupstores/minio-backupstore.yaml +kubectl create -f https://raw.githubusercontent.com/rancher/longhorn/master/deploy/backupstores/minio-backupstore.yaml ``` Now set `Settings/General/BackupTarget` to