Skip to content

Commit 0aad54c

Browse files
committed
chore: update PV creation
1 parent c44c2e7 commit 0aad54c

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

content/nap-waf/v5/admin-guide/deploy-with-helm.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,16 +192,37 @@ cd nginx-app-protect
192192
--docker-password=none
193193
```
194194
195-
1. Create a new folder on the cluster machine. This folder will be used for the PV binding later:
195+
1. Create a new folder on the cluster machine. This folder will include all shared files and resources between pods and containers in the deployment. It will also be used for the PV binding later:
196196
197197
```shell
198198
mkdir -p /mnt/nap5_bundles_pv_data/
199199
chown 101:101 /mnt/nap5_bundles_pv_data/
200200
```
201201
202-
1. Create a PV for your storage. The PV must have the name `<release-name>-bundles-pv`:
202+
1. Create a new Persistent Volume for your storage. The PV will be detached from the helm deployment, and must have the name `<release-name>-shared-bundles-pv`.
203+
204+
Create a YAML file `pv-hostpath.yaml` with the PV file content:
205+
```
206+
apiVersion: v1
207+
kind: PersistentVolume
208+
metadata:
209+
name: nginx-app-protect-shared-bundles-pv
210+
labels:
211+
type: local
212+
spec:
213+
accessModes:
214+
- ReadWriteMany
215+
capacity:
216+
storage: "2Gi"
217+
hostPath:
218+
path: "/mnt/nap5_bundles_pv_data"
219+
persistentVolumeReclaimPolicy: Retain
220+
storageClassName: manual
221+
```
222+
223+
Apply the `pv-hostpath.yaml` file to create the new PV:
203224
```shell
204-
kubectl apply -f <your PV yaml file>
225+
kubectl apply -f pv-hostpath.yaml
205226
```
206227
207228
1. Enable/Disable the Policy Controller pod deployment.

0 commit comments

Comments
 (0)