fix api response time

main
cahe 2 years ago
parent 5b9052d017
commit 4e03b23b90

@ -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")

Loading…
Cancel
Save