From 4e03b23b9017be1def704a9ecb4b29a3f50d28f5 Mon Sep 17 00:00:00 2001 From: cahe Date: Thu, 14 Mar 2024 16:53:01 -0300 Subject: [PATCH] fix api response time --- kustomize/mycrd.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/kustomize/mycrd.yaml b/kustomize/mycrd.yaml index 3c2998e..7d576e2 100644 --- a/kustomize/mycrd.yaml +++ b/kustomize/mycrd.yaml @@ -54,15 +54,17 @@ spec: - '/app/app.py' readinessProbe: initialDelaySeconds: 10 - timeoutSeconds: 11 + timeoutSeconds: 15 failureThreshold: 10 + successThreshold: 10 httpGet: path: / port: 8000 livenessProbe: initialDelaySeconds: 10 - timeoutSeconds: 11 + timeoutSeconds: 15 failureThreshold: 10 + successThreshold: 10 httpGet: path: / port: 8000 @@ -76,12 +78,12 @@ spec: volumes: - name: app-script-volume configMap: - name: app-script-config-4 + name: app-script-config-5 --- apiVersion: v1 kind: ConfigMap metadata: - name: app-script-config-4 + name: app-script-config-5 data: app.py: | #! /bin/python3 @@ -90,7 +92,7 @@ data: class GetHandler(BaseHTTPRequestHandler): def do_GET(self): - sleep(1) + sleep(10) x = self.wfile.write self.send_response(200) self.send_header("Content-type", "text/html")