fix: make knative service spec stable
This commit is contained in:
@@ -18,6 +18,8 @@ spec:
|
|||||||
autoscaling.knative.dev/target: "1"
|
autoscaling.knative.dev/target: "1"
|
||||||
spec:
|
spec:
|
||||||
containerConcurrency: 1
|
containerConcurrency: 1
|
||||||
|
enableServiceLinks: false
|
||||||
|
responseStartTimeoutSeconds: 600
|
||||||
timeoutSeconds: 600
|
timeoutSeconds: 600
|
||||||
containers:
|
containers:
|
||||||
- name: agent
|
- name: agent
|
||||||
@@ -48,12 +50,14 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
name: http1
|
name: http1
|
||||||
|
protocol: TCP
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet: {path: /healthz, port: 8000}
|
httpGet: {path: /healthz, port: 8000}
|
||||||
initialDelaySeconds: 2
|
initialDelaySeconds: 2
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
|
successThreshold: 1
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet: {path: /healthz, port: 8000}
|
httpGet: {path: /healthz, port: 8000}
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
@@ -63,6 +67,9 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests: {cpu: "200m", memory: "512Mi"}
|
requests: {cpu: "200m", memory: "512Mi"}
|
||||||
limits: {cpu: "200m", memory: "512Mi"}
|
limits: {cpu: "200m", memory: "512Mi"}
|
||||||
|
traffic:
|
||||||
|
- latestRevision: true
|
||||||
|
percent: 100
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
|
|||||||
Reference in New Issue
Block a user