harbor
harbor copied to clipboard
I use the cephfs as the external persistent volume, but trivy can't running correctly.
1、trivy helm:
2、sc:
3、trivy container logs:
4、I try it like this, but not ok:
(https://github.com/goharbor/harbor/issues/12933#issuecomment-754777914) •
One could use a initContainer that sets the right permissions on the volume:
trivy-sts.yaml
[...] initContainers: - name: set-permissions image: busybox:1.28 command: ['chown', '-R', '10000:10000', '/home/scanner/.cache'] volumeMounts: - name: data mountPath: /home/scanner/.cache subPath: {{ .Values.persistence.persistentVolumeClaim.trivy.subPath }} readOnly: false [...]
@andyzheung did you only specify cephfs for trivy? How about the configuration for persistence.persistentVolumeClaim.registry, persistence.persistentVolumeClaim.database, & persistence.persistentVolumeClaim.redis ?
One could use a initContainer that sets the right permissions on the volume:
other component I also use cephfs, but the pod is ok..
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.
This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.