Procházet zdrojové kódy

Update k8s_infiniband.yml

Signed-off-by: Shubhangi-dell <shubhangi_srivastava@dell.com>
Shubhangi-dell před 3 roky
rodič
revize
23e47ec41c

+ 17 - 1
control_plane/roles/control_plane_ib/files/k8s_infiniband.yml

@@ -23,14 +23,30 @@ spec:
           hostPath:
             path: /root/omnia
             type: Directory
+        - name: opensm-cache
+          hostPath:
+            path: /var/cache/opensm
+            type: Directory
+        - name: opensm-logs
+          hostPath:
+            path: /var/log
+            type: Directory
       containers:
         - name: infiniband-container
           image: 'localhost/infiniband-container:latest'
           imagePullPolicy: Never
-          command: ["sh", "-c", "tail -f /dev/null"]
+          command:
+            - /sbin/init
           volumeMounts:
             - name: omnia-storage
               mountPath: /root/omnia
+            - mountPath: /var/cache/opensm
+              name: opensm-cache
+            - mountPath: /var/log
+              name: opensm-logs
+          resources:
+            limits:
+              memory: "10Gi"
           securityContext:
             allowPrivilegeEscalation: true
             capabilities: