Explorar el Código

add log volume for daemonset

(cherry picked from commit b1e755323056ad1bb3bd789abfdf46ee9f7b2301)
Max Ma hace 1 año
padre
commit
f99886fe67
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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