Skip to content

Commit 03d603b

Browse files
authored
Merge pull request #689 from TeweiLuo/repd-zonal-cluster
Add usage of regiona PD in zonal clusters to user guide
2 parents edfaaf4 + 6ed364e commit 03d603b

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

docs/kubernetes/user-guides/basic.md

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Kubernetes Basic User Guide
22
This guide gives a simple example on how to provision zonal and regional PDs in single-zone and regional clusters.
33

4-
**Note:** Regional cluster support only available in beta starting with
5-
Kubernetes 1.14.
4+
**Note:** Regional PD [support](https://kubernetes-csi.github.io/docs/topology.html) is available in beta starting with
5+
Kubernetes 1.14 and GA starting with 1.17.
66

77
## Install Driver
88

@@ -43,21 +43,20 @@ web-server 1/1 Running 0 1m
4343

4444
## Regional PD example
4545

46-
**Note:** Regional cluster support only available in beta starting with
47-
Kubernetes 1.14.
46+
This example provisions a regional PD in either zonal or regional clusters.
4847

49-
This example provisions a regional PD in regional clusters.
48+
1. Create example Regional Storage Class. For zonal clusters, `allowedTopologies` must be specified with two zones where one of the zones must be the cluster's zone. For regional clusters this configuration can also be used to make sure that regional PD is provisioned in those two zones.
5049

51-
1. Create example Regional Storage Class. Choose between:
52-
53-
* Unrestricted zones
50+
* Restricted zones
5451
```
55-
$ kubectl apply -f ./examples/kubernetes/demo-regional-sc.yaml
52+
$ kubectl apply -f ./examples/kubernetes/demo-regional-restricted-sc.yaml
5653
```
5754
58-
* Restricted zones
55+
For regional clusters it is also possible to not specify `allowedTopologies`, in which case two zones will be picked from the available zones in the cluster's region.
56+
57+
* Unrestricted zones
5958
```
60-
$ kubectl apply -f ./examples/kubernetes/demo-regional-restricted-sc.yaml
59+
$ kubectl apply -f ./examples/kubernetes/demo-regional-sc.yaml
6160
```
6261
6362
2. Create example PVC and Pod

0 commit comments

Comments
 (0)