You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/nap-waf/v5/admin-guide/deploy-with-helm.md
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,16 +192,37 @@ cd nginx-app-protect
192
192
--docker-password=none
193
193
```
194
194
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:
196
196
197
197
```shell
198
198
mkdir -p /mnt/nap5_bundles_pv_data/
199
199
chown 101:101 /mnt/nap5_bundles_pv_data/
200
200
```
201
201
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:
203
224
```shell
204
-
kubectl apply -f <your PV yaml file>
225
+
kubectl apply -f pv-hostpath.yaml
205
226
```
206
227
207
228
1. Enable/Disable the Policy Controller pod deployment.
0 commit comments