From c670f0f49ea25a1b994fd5ddac8f297e0d0480c3 Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Thu, 14 Nov 2024 14:37:13 +0000 Subject: [PATCH] add debugging manifest for andor2 --- services/bl99p-ea-ioc-05/debug.yaml | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 services/bl99p-ea-ioc-05/debug.yaml diff --git a/services/bl99p-ea-ioc-05/debug.yaml b/services/bl99p-ea-ioc-05/debug.yaml new file mode 100644 index 0000000..3f7a099 --- /dev/null +++ b/services/bl99p-ea-ioc-05/debug.yaml @@ -0,0 +1,50 @@ +apiVersion: v1 +kind: Pod +metadata: + name: debug-andor2 + labels: + is_ioc: "true" +spec: + serviceAccountName: default-full-access-mounted + containers: + - name: debug-andor2 + image: gcr.io/diamond-privreg/controls/prod/iocs/ioc-adandor-linux-developer:2024.10.2 + command: + - bash + args: + - "-c" + - | + echo "keep running indefinetely" + while true; do sleep 5; done + resources: + limits: + memory: "2Gi" + cpu: "1" + diamond.ac.uk/andor2usb: 1 + requests: + memory: "1Gi" + cpu: "500m" + diamond.ac.uk/andor2usb: 1 + + # securityContext: + # privileged: true + # allowPrivilegeEscalation: true + + volumeMounts: + - mountPath: /dev/bus/usb/ + name: devices + + volumes: + - name: devices + persistentVolumeClaim: + claimName: dev-usb + + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - bl99p-ea-serv-01.diamond.ac.uk