From 770fafd1df8bddd28811f63012f741ac6d137da8 Mon Sep 17 00:00:00 2001 From: Jacob Woffenden Date: Tue, 7 Jan 2025 17:20:01 +0000 Subject: [PATCH] Adding smoke test Signed-off-by: GitHub --- .../airflow-kubernetes-smoke-test/pod.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 terraform/environments/analytical-platform-compute/contrib/airflow-kubernetes-smoke-test/pod.yaml diff --git a/terraform/environments/analytical-platform-compute/contrib/airflow-kubernetes-smoke-test/pod.yaml b/terraform/environments/analytical-platform-compute/contrib/airflow-kubernetes-smoke-test/pod.yaml new file mode 100644 index 00000000000..75f4c6900a4 --- /dev/null +++ b/terraform/environments/analytical-platform-compute/contrib/airflow-kubernetes-smoke-test/pod.yaml @@ -0,0 +1,37 @@ +--- +apiVersion: v1 +kind: Pod +metadata: + name: airflow-kubernetes-smoke-test + namespace: airflow +spec: + securityContext: + runAsNonRoot: true + runAsUser: 1000 + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: compute.analytical-platform.service.justice.gov.uk/karpenter-node-pool + operator: In + values: + - general-spot + tolerations: + - key: compute.analytical-platform.service.justice.gov.uk/karpenter-node-pool + operator: Equal + value: general-spot + effect: NoSchedule + restartPolicy: Never + containers: + - name: main + image: ghcr.io/ministryofjustice/analytical-platform-airflow-python-base:1.4.0 + command: ["/bin/sh", "-c", "date && cat /etc/os-release && sleep 120"] + resources: + requests: + memory: 64Mi + cpu: 100m + limits: + memory: 128Mi + cpu: 200m +