|
@@ -0,0 +1,44 @@
|
|
|
+apiVersion: v1
|
|
|
+kind: Pod
|
|
|
+metadata:
|
|
|
+ name: pod-name
|
|
|
+ namespace: default
|
|
|
+ labels:
|
|
|
+ user: CICV
|
|
|
+spec:
|
|
|
+ nodeName: node-name
|
|
|
+ hostAliases:
|
|
|
+ - ip: 172.17.0.184
|
|
|
+ hostnames:
|
|
|
+ - cicvtest002
|
|
|
+ containers:
|
|
|
+ - name: vtd-container
|
|
|
+ image: vtd.run.perception:latest
|
|
|
+ imagePullPolicy: Never
|
|
|
+ command: [ "/Controller/VTDController", "/Controller/config/docker_cloud.ini", "kafkaTopic"]
|
|
|
+ env:
|
|
|
+ - name: PodName
|
|
|
+ valueFrom:
|
|
|
+ fieldRef:
|
|
|
+ fieldPath: metadata.name
|
|
|
+ - name: LM_LICENSE_FILE
|
|
|
+ value: 27500@172.14.1.103
|
|
|
+ volumeMounts:
|
|
|
+ - name: nvidia0
|
|
|
+ mountPath: /dev/nvidia0
|
|
|
+ - name: nvidiactl
|
|
|
+ mountPath: /dev/nvidiactl
|
|
|
+ securityContext:
|
|
|
+ privileged: true
|
|
|
+ - name: algorithm-container
|
|
|
+ image: algorithm-image
|
|
|
+ imagePullPolicy: Never
|
|
|
+ command: [ "/bin/sh", "-c", "/run.sh; touch /tmp/hello.txt;while true;do /bin/echo $(date +%T) >> /tmp/hello.txt; sleep 5; done;" ]
|
|
|
+ restartPolicy: Never
|
|
|
+ volumes:
|
|
|
+ - name: nvidia0
|
|
|
+ hostPath:
|
|
|
+ path: /dev/nvidia0
|
|
|
+ - name: nvidiactl
|
|
|
+ hostPath:
|
|
|
+ path: /dev/nvidiactl
|