apiVersion: apps/v1 kind: Deployment metadata: name: slurm-telemetry namespace: telemetry-and-visualizations labels: app: slurm-telemetry spec: selector: matchLabels: app: slurm-telemetry replicas: 1 strategy: type: RollingUpdate template: metadata: labels: app: slurm-telemetry spec: volumes: - name: ssh-key hostPath: path: /root/.ssh/ type: Directory containers: - name: slurm-telemetry image: 'localhost/slurm_telemetry:latest' imagePullPolicy: Never command: ["/bin/sh","-c"] args: ["./init_k8s_pod.sh; python3.8 tsdb.py; python3.8 mslurm.py"] volumeMounts: - name: ssh-key mountPath: /root/.ssh/