소스 검색

Update k8s_infiniband.yml

Signed-off-by: Shubhangi-dell <shubhangi_srivastava@dell.com>
Shubhangi-dell 3 년 전
부모
커밋
2c355ab92a
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      control_plane/roles/control_plane_ib/files/k8s_infiniband.yml

+ 6 - 3
control_plane/roles/control_plane_ib/files/k8s_infiniband.yml

@@ -27,10 +27,13 @@ spec:
         - name: infiniband-container
         - name: infiniband-container
           image: 'localhost/infiniband-container:latest'
           image: 'localhost/infiniband-container:latest'
           imagePullPolicy: Never
           imagePullPolicy: Never
-          command:
-            - /sbin/init
+          command: ["sh", "-c", "tail -f /dev/null"]
           volumeMounts:
           volumeMounts:
             - name: omnia-storage
             - name: omnia-storage
               mountPath: /root/omnia
               mountPath: /root/omnia
           securityContext:
           securityContext:
-            privileged: true
+            allowPrivilegeEscalation: true
+            capabilities:
+              add:
+                - NET_RAW
+            privileged: false