Skip to content

Commit

Permalink
Merge pull request #6 from f41gh7/change-topology-zone
Browse files Browse the repository at this point in the history
changed topology zone
  • Loading branch information
f41gh7 authored Jul 9, 2020
2 parents ffd1975 + fe3661b commit baf033f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inspired by https://github.com/flant/yandex-csi-driver
- ensure that kubectl get nodes and vm name at VDC is the same
- label node for each vdc
```bash
kubectl label node nod1 topology.kubernetes.io/vcd=some-vdc
kubectl label node nod1 failure-domain.beta.kubernetes.io/zone=some-vdc
```
- create secret for access cloud - you can find example at deploy/secret.yaml
```yaml
Expand Down Expand Up @@ -58,7 +58,7 @@ volumeBindingMode: WaitForFirstConsumer
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: "topology.kubernetes.io/vcd"
- key: "topology.kubernetes.io/zone"
operator: In
values:
- "some-vdc"
Expand Down
1 change: 1 addition & 0 deletions cmd/provisioner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func main() {

mounter := mount.NewMounter(l)
l.Infof("inited client, lets start driver init")

csiDriver, err := driver.NewCsiDriver(l, c, client, mounter,lock, wg)
if err != nil {
l.WithError(err).Errorf("cannot create driver")
Expand Down
2 changes: 1 addition & 1 deletion deploy/ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: "topology.vcd.csi.fght.net/vcd"
- key: "failure-domain.beta.kubernetes.io/zone"
operator: In
values:
- "some-vdc"
Expand Down
2 changes: 1 addition & 1 deletion internal/driver/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const (
defaultVolumeSizeInBytes int64 = 5 * giB
vcdParam = "vcd"
storageProfileParam = "storageProfile"
topologyKey = "topology.vcd.csi.fght.net/vcd"
topologyKey = "failure-domain.beta.kubernetes.io/zone"

pubContextUnit = "diskUnitNum"
pubContextDiskSize = "diskSizeB"
Expand Down

0 comments on commit baf033f

Please sign in to comment.