Skip to content

Commit

Permalink
Merge pull request #954 from kubeshop/improve-startup-time
Browse files Browse the repository at this point in the history
chore: improve startup time
  • Loading branch information
WitoDelnat authored Oct 28, 2024
2 parents d78c0a3 + 2da9f50 commit d387888
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 20 deletions.
14 changes: 11 additions & 3 deletions charts/testkube-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,22 @@ spec:
- name: grpc
containerPort: 8089
protocol: TCP
livenessProbe:
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
startupProbe:
initialDelaySeconds: 3
periodSeconds: 3
timeoutSeconds: 3
failureThreshold: 20
httpGet:
path: /health
port: {{ .Values.service.port }}
scheme: HTTP
readinessProbe:
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
httpGet:
path: /health
port: {{ .Values.service.port }}
scheme: HTTP
livenessProbe:
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
httpGet:
path: /health
port: {{ .Values.service.port }}
Expand Down
4 changes: 0 additions & 4 deletions charts/testkube-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -675,10 +675,6 @@ testConnection:
livenessProbe:
initialDelaySeconds: 30

## Testkube API Readiness probe
readinessProbe:
initialDelaySeconds: 45

## Testkube API HTTP body size limit
## httpBodyLimit: 1073741824

Expand Down
2 changes: 0 additions & 2 deletions charts/testkube/values-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,6 @@ testkube-api:
scheme: HTTP
## Amount of request failures before the container receives a terminate signal
failureThreshold: 3
## Time to wait after the initial deployment before performing first probe
initialDelaySeconds: 60
## How often (in seconds) to perform the probes. This value sends one probe every 30 seconds
periodSeconds: 30
## Minimum consecutive successes for the probe to be considered successful after having failed
Expand Down
4 changes: 1 addition & 3 deletions charts/testkube/values-develop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ testkube-api:
## Amount of request failures before the container receives a terminate signal
failureThreshold: 3
## Time to wait after the initial deployment before performing first probe
initialDelaySeconds: 180
initialDelaySeconds: 60
## How often (in seconds) to perform the probes. This value sends one probe every 30 seconds
periodSeconds: 30
## Minimum consecutive successes for the probe to be considered successful after having failed
Expand All @@ -278,8 +278,6 @@ testkube-api:
scheme: HTTP
## Amount of request failures before the container receives a terminate signal
failureThreshold: 3
## Time to wait after the initial deployment before performing first probe
initialDelaySeconds: 60
## How often (in seconds) to perform the probes. This value sends one probe every 30 seconds
periodSeconds: 30
## Minimum consecutive successes for the probe to be considered successful after having failed
Expand Down
2 changes: 0 additions & 2 deletions charts/testkube/values-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,6 @@ testkube-api:
scheme: HTTP
## Amount of request failures before the container receives a terminate signal
failureThreshold: 3
## Time to wait after the initial deployment before performing first probe
initialDelaySeconds: 60
## How often (in seconds) to perform the probes. This value sends one probe every 30 seconds
periodSeconds: 30
## Minimum consecutive successes for the probe to be considered successful after having failed
Expand Down
7 changes: 1 addition & 6 deletions charts/testkube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,7 @@ testkube-api:
- testkube.example.com
tlsenabled: false
# -- Placing a host in the TLS config will indicate a certificate should be created
tls:
[]
tls: []
# - hosts:
# - testkube.example.com
# secretName: testkube-cert-secret
Expand Down Expand Up @@ -752,10 +751,6 @@ testkube-api:
livenessProbe:
# -- Initial delay for liveness probe
initialDelaySeconds: 15
# -- Testkube API Readiness probe parameters
readinessProbe:
# -- Initial delay for readiness probe
initialDelaySeconds: 30

# -- Enable analytics for Testkube
analyticsEnabled: true
Expand Down

0 comments on commit d387888

Please sign in to comment.