From 41cede5e707da5854c7ca05e589b031e88d68bbd Mon Sep 17 00:00:00 2001 From: Shardul Vaidya Date: Mon, 2 Oct 2023 16:43:17 -0400 Subject: [PATCH] Added failing workload --- .../cross-fork-prod/failing-workload.yaml | 31 +++++++++++++++++++ .../Partner/cross-fork-prod/namespace.yaml | 4 +++ 2 files changed, 35 insertions(+) create mode 100644 eks-anywhere-common/Addons/Partner/cross-fork-prod/failing-workload.yaml create mode 100644 eks-anywhere-common/Addons/Partner/cross-fork-prod/namespace.yaml diff --git a/eks-anywhere-common/Addons/Partner/cross-fork-prod/failing-workload.yaml b/eks-anywhere-common/Addons/Partner/cross-fork-prod/failing-workload.yaml new file mode 100644 index 00000000..6a3ec8b5 --- /dev/null +++ b/eks-anywhere-common/Addons/Partner/cross-fork-prod/failing-workload.yaml @@ -0,0 +1,31 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: cross-fork-prod + name: liveliness-check + labels: + app: liveliness-app +spec: + replicas: 3 + selector: + matchLabels: + app: liveliness + template: + metadata: + labels: + app: liveliness + spec: + containers: + - name: liveness + image: registry.k8s.io/busybox + args: + - /bin/sh + - -c + - touch /tmp/healthy; sleep 30; rm -f /tmp/healthy; sleep 600 + livenessProbe: + exec: + command: + - cat + - /tmp/healthy + initialDelaySeconds: 5 + periodSeconds: 5 \ No newline at end of file diff --git a/eks-anywhere-common/Addons/Partner/cross-fork-prod/namespace.yaml b/eks-anywhere-common/Addons/Partner/cross-fork-prod/namespace.yaml new file mode 100644 index 00000000..dcdaf401 --- /dev/null +++ b/eks-anywhere-common/Addons/Partner/cross-fork-prod/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: cross-fork-prod \ No newline at end of file