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
1. Change your working directory to nginx-app-protect:
340
+
341
+
```shell
342
+
cd nginx-app-protect
343
+
```
344
+
345
+
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:
346
+
347
+
```shell
348
+
mkdir -p /mnt/nap5_bundles_pv_data/
349
+
chown 101:101 /mnt/nap5_bundles_pv_data/
350
+
```
351
+
352
+
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`.
353
+
354
+
Create a YAML file `pv-hostpath.yaml` with the PV file content:
355
+
```yaml
356
+
apiVersion: v1
357
+
kind: PersistentVolume
358
+
metadata:
359
+
name: nginx-app-protect-shared-bundles-pv
360
+
labels:
361
+
type: local
362
+
spec:
363
+
accessModes:
364
+
- ReadWriteMany
365
+
capacity:
366
+
storage: "2Gi"
367
+
hostPath:
368
+
path: "/mnt/nap5_bundles_pv_data"
369
+
persistentVolumeReclaimPolicy: Retain
370
+
storageClassName: manual
371
+
```
372
+
373
+
Apply the `pv-hostpath.yaml` file to create the new PV:
374
+
```shell
375
+
kubectl apply -f pv-hostpath.yaml
376
+
```
377
+
378
+
1. Enable/Disable the Policy Controller pod deployment.
379
+
380
+
The Policy Controller option is enabled by default (`appprotect.policyController.enable: true`). Helm will also install the required custom resource definitions (CRDs) required by the policy controller pod.
381
+
382
+
**Important**: Before applying the Policy Controller, the required Custom Resource Definitions (CRDs) must be installed first. If the CRDs are not installed, the Policy Controller pod will fail to start and show CRD-related errors in the logs.
383
+
384
+
If you do not use the custom resources that require those CRDs (With `appprotect.policyController.enable` set to false), the installation of the CRDs can be skipped by specifying --skip-crds in your helm install command. Please also note that when upgrading helm charts, the current CRDs will need to be deleted and the new ones will be vreated as part of the helm install of the new version.
385
+
386
+
If you wish to pull security updates from the NGINX repository (with APSignatures CRD), you should set the `appprotect.nginxRepo` value in values.yaml file.
0 commit comments