add hostPath for netclient log file in k8s client yaml

(cherry picked from commit 7824451de4)
This commit is contained in:
Max Ma 2024-05-20 11:30:54 +02:00 committed by abhishek9686
parent 2c694cb1a6
commit 872a815e54

View file

@ -35,6 +35,8 @@ spec:
volumeMounts:
- mountPath: /etc/netclient
name: etc-netclient
- mountPath: /var/log/netclient.log
name: log-netclient
securityContext:
privileged: true
volumes:
@ -42,3 +44,7 @@ spec:
path: /etc/netclient
type: DirectoryOrCreate
name: etc-netclient
- hostPath:
path: /var/log/netclient.log
type: FileOrCreate
name: log-netclient