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: v1
kind: PersistentVolume
metadata:
name: nessus-pv
spec:
capacity:
storage: 20Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data/nessus"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nessus-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nessus-deployment
spec:
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: v1
kind: Service
metadata:
name: nessus-01
namespace: default
spec:
selector:
app: nessus
ports:
- protocol: TCP
port: 8834
targetPort: 8834
saved data to the kube or something save the progress.
New contributor
SamuWhale is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.