Skip to content

Commit

Permalink
Merge pull request #84 from paritytech/node-resize-docs
Browse files Browse the repository at this point in the history
Add docs on how to resize node persistent volumes
  • Loading branch information
PierreBesson authored Jun 14, 2022
2 parents daf7f0f + 222a54a commit e908d74
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions charts/node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,27 @@ helm install kusama-node parity/node --set node.chainDataSnapshotUrl=https://ksm
```
⚠️ For some chains where the local directory name is different from the chain ID, `node.chainPath` needs to be set to a custom value.

### Resizing the node disk

To resize the node persistent volume, perform the following steps:

1. Patch the PVC storage size, eg. to `1000Gi`:

```console
kubectl patch pvc chain-data-polkadot-node-0 -p '{"spec":{"resources":{"requests":{"storage":"1000Gi"}}}}}'
```

2. Delete the StatefulSet object with `cascade=orphan` (ie. without removing the attached pods):

```console
kubectl delete sts polkadot-node --cascade=orphan
```

3. Update the `node.dataVolumeSize` to the new value (eg. `1000Gi`) and upgrade the helm release.

Note that for a Kubernetes Persistent Volume Claims to be resizable, its StorageClass must have specific characteristics. More information on this topic is available in the [Expanding Persistent Volumes Claims
section of the Kubernetes documentation](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#expanding-persistent-volumes-claims).

### Optional Vault Integration

To integrate this chart with vault:
Expand Down

0 comments on commit e908d74

Please sign in to comment.