Explorar o código

fix log file on k8s issue

(cherry picked from commit f97db3b729c1b3f3bf4097bcce1c77f64a9a2a79)
Max Ma hai 1 ano
pai
achega
956c99d582
Modificáronse 1 ficheiros con 3 adicións e 4 borrados
  1. 3 4
      k8s/client/netclient.yaml

+ 3 - 4
k8s/client/netclient.yaml

@@ -35,7 +35,7 @@ spec:
         volumeMounts:
         - mountPath: /etc/netclient
           name: etc-netclient
-        - mountPath: /var/log/netclient.log
+        - mountPath: /var/log
           name: log-netclient
         securityContext:
           privileged: true
@@ -44,7 +44,6 @@ spec:
           path: /etc/netclient
           type: DirectoryOrCreate
         name: etc-netclient
-      - hostPath:
-          path: /var/log/netclient.log
-          type: FileOrCreate
+      - emptyDir:
+          medium: Memory
         name: log-netclient