Browse Source

add log volume for daemonset

Max Ma 1 year ago
parent
commit
b1e7553230
1 changed files with 5 additions and 0 deletions
  1. 5 0
      k8s/client/netclient-daemonset.yaml

+ 5 - 0
k8s/client/netclient-daemonset.yaml

@@ -23,6 +23,8 @@ spec:
         volumeMounts:
         - mountPath: /etc/netclient
           name: etc-netclient
+        - mountPath: /var/log
+          name: log-netclient
         securityContext:
           privileged: true
       volumes:
@@ -32,3 +34,6 @@ spec:
           path: /etc/netclient
           type: DirectoryOrCreate
         name: etc-netclient
+      - emptyDir:
+          medium: Memory
+        name: log-netclient