From a09a24dad5e5da4fa303013ef696ebda424a96ad Mon Sep 17 00:00:00 2001 From: Anudeep Reddy Date: Wed, 10 Apr 2024 14:34:44 -0500 Subject: [PATCH] Create serviceaccount.yaml the cron job was getting created but for the rke2 clusters it was looking for an service acocunt to communicate the issue will be fixed when we have an service account for ceonjob FailedCreate Error creating: pods "cleanup-evicted-pods-28516020-" is forbidden: error looking up service account kube-system/rke-job-deployer: serviceaccount "rke-job-deployer" not found --- cleanup-evicted-pods/serviceaccount.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 cleanup-evicted-pods/serviceaccount.yaml diff --git a/cleanup-evicted-pods/serviceaccount.yaml b/cleanup-evicted-pods/serviceaccount.yaml new file mode 100644 index 00000000..81588ba4 --- /dev/null +++ b/cleanup-evicted-pods/serviceaccount.yaml @@ -0,0 +1,5 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: rke-job-deployer + namespace: kube-system