k8s_slurm_telemetry.yml 793 B

123456789101112131415161718192021222324252627282930313233
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: slurm-telemetry
  5. namespace: telemetry-and-visualizations
  6. labels:
  7. app: slurm-telemetry
  8. spec:
  9. selector:
  10. matchLabels:
  11. app: slurm-telemetry
  12. replicas: 1
  13. strategy:
  14. type: RollingUpdate
  15. template:
  16. metadata:
  17. labels:
  18. app: slurm-telemetry
  19. spec:
  20. volumes:
  21. - name: ssh-key
  22. hostPath:
  23. path: /root/.ssh/
  24. type: Directory
  25. containers:
  26. - name: slurm-telemetry
  27. image: 'localhost/slurm_telemetry:latest'
  28. imagePullPolicy: Never
  29. command: ["/bin/sh","-c"]
  30. args: ["./init_k8s_pod.sh; python3.8 tsdb.py; python3.8 mslurm.py"]
  31. volumeMounts:
  32. - name: ssh-key
  33. mountPath: /root/.ssh/