From 1e6b2ae7d2a7cf1e05c36c94467f804a149c9873 Mon Sep 17 00:00:00 2001 From: a3caicedo Date: Wed, 24 Aug 2022 22:16:47 -0300 Subject: [PATCH] presync Resource Hook with curl command --- pre-post-sync/pre-sync-job.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pre-post-sync/pre-sync-job.yaml b/pre-post-sync/pre-sync-job.yaml index 110ddeb..77635a4 100644 --- a/pre-post-sync/pre-sync-job.yaml +++ b/pre-post-sync/pre-sync-job.yaml @@ -9,8 +9,10 @@ spec: template: spec: containers: - - name: sleep - image: alpine:latest - command: ["sleep", "10"] + - name: endpoint-consumer + image: curlimages/curl + command: + - "curl" + - "localhost:34567" restartPolicy: Never - backoffLimit: 0 + backoffLimit: 2