From 9fcc05f883126631b92e898aecc9578b37f2f7c1 Mon Sep 17 00:00:00 2001 From: robert Date: Wed, 27 May 2026 19:08:38 -0300 Subject: [PATCH] fix: make knative service spec stable --- deploy/20-deployment.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deploy/20-deployment.yaml b/deploy/20-deployment.yaml index 680f98b..0dba81b 100644 --- a/deploy/20-deployment.yaml +++ b/deploy/20-deployment.yaml @@ -18,6 +18,8 @@ spec: autoscaling.knative.dev/target: "1" spec: containerConcurrency: 1 + enableServiceLinks: false + responseStartTimeoutSeconds: 600 timeoutSeconds: 600 containers: - name: agent @@ -26,10 +28,14 @@ spec: ports: - containerPort: 8000 name: http1 + protocol: TCP readinessProbe: httpGet: {path: /healthz, port: 8000} initialDelaySeconds: 2 periodSeconds: 5 + failureThreshold: 3 + successThreshold: 1 + timeoutSeconds: 1 livenessProbe: httpGet: {path: /healthz, port: 8000} initialDelaySeconds: 10 @@ -37,6 +43,9 @@ spec: resources: requests: {cpu: 50m, memory: 128Mi} limits: {cpu: 200m, memory: 256Mi} + traffic: + - latestRevision: true + percent: 100 --- apiVersion: networking.k8s.io/v1 kind: Ingress