I want to run the Tenable Nessus on kube. My client's requirement is that it can only run on k8s. I have never touched it before. Now, I have been trying for a long weekend to save the data while Nessus is performing services like creating tasks or scanning. However, when I restart the Minikube, the data will be lost.
I am running on Ubuntu-Minikube.here is my yaml file
apiVersion: v1kind: PersistentVolumemetadata: name: nessus-pvspec: capacity: storage: 20Gi accessModes: - ReadWriteOnce hostPath: path: "/mnt/data/nessus"---apiVersion: v1kind: PersistentVolumeClaimmetadata: name: nessus-pvcspec: accessModes: - ReadWriteOnce resources: requests: storage: 20Gi---apiVersion: apps/v1kind: Deploymentmetadata: name: nessus-deploymentspec: replicas: 1 selector: matchLabels: app: nessus template: metadata: labels: app: nessus spec: containers: - name: nessus image: tenable/nessus:latest-ubuntu ports: - containerPort: 8834 volumeMounts: - name: nessus-data mountPath: /mnt/data/nessus resources: requests: cpu: "4" memory: "6Gi" volumes: - name: nessus-data persistentVolumeClaim: claimName: nessus-pvc---apiVersion: v1kind: Servicemetadata: name: nessus-01 namespace: defaultspec: selector: app: nessus ports: - protocol: TCP port: 8834 targetPort: 8834
saved data to the kube or something save the progress.