Skip to content

Commit

Permalink
feat(Charts): add value to delay the startup of BPDM application cont…
Browse files Browse the repository at this point in the history
…ainers
  • Loading branch information
nicoprow committed Jul 10, 2024
1 parent cff1eb6 commit 95de3fe
Show file tree
Hide file tree
Showing 12 changed files with 85 additions and 26 deletions.
1 change: 1 addition & 0 deletions .github/workflows/app-test-charts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ on:
paths:
- 'pom.xml'
- 'bpdm-**'
- 'charts/**'
push:
branches:
- main
Expand Down
11 changes: 11 additions & 0 deletions charts/bpdm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog (https://keepachangelog.com/en/1.0.0/),

## [5.1.0] - tbd

### Changed

- Increase appversion to 6.1.0
- update BPDM Pool Chart to version 7.1.0
- update BPDM Gate Chart to version 6.1.0
- update BPDM Orchestrator Chart to version 3.1.0
- update BPDM Cleaning Service Dummy Chart to version 3.1.0
- update BPDM Bridge Chart to version 3.1.0

## [5.0.1] - 2024-05-27

### Changed
Expand Down
5 changes: 0 additions & 5 deletions charts/bpdm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,20 @@ dependencies:
version: 6.1.0-SNAPSHOT
alias: bpdm-gate
condition: bpdm-gate.enabled
repository: "file://./charts/bpdm-gate"
- name: bpdm-pool
version: 7.1.0-SNAPSHOT
alias: bpdm-pool
condition: bpdm-pool.enabled
repository: "file://./charts/bpdm-pool"
- name: bpdm-cleaning-service-dummy
version: 3.1.0-SNAPSHOT
alias: bpdm-cleaning-service-dummy
condition: bpdm-cleaning-service-dummy.enabled
repository: "file://./charts/bpdm-cleaning-service-dummy"
- name: bpdm-orchestrator
version: 3.1.0-SNAPSHOT
alias: bpdm-orchestrator
condition: bpdm-orchestrator.enabled
repository: "file://./charts/bpdm-orchestrator"
- name: bpdm-common
version: 1.0.1
repository: "file://./charts/bpdm-common"
- name: postgresql
version: 12.12.10
repository: https://charts.bitnami.com/bitnami
Expand Down
10 changes: 10 additions & 0 deletions charts/bpdm/charts/bpdm-cleaning-service-dummy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog (https://keepachangelog.com/en/1.0.0/),

## [3.1.0] - tbd

### Changed

- Increase appversion to 6.1.0
- Increased range of CPU request and limit
- Reduced initial delay of startup probe
- Value for delaying startup of application container.
This decreases crashes when waiting for Keycloak and Postgres dependencies to be up.

## [3.0.1] - 2024-05-27

### Changed
Expand Down
12 changes: 7 additions & 5 deletions charts/bpdm/charts/bpdm-cleaning-service-dummy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ autoscaling:

resources:
limits:
cpu: 500m
cpu: 1000m
memory: 1Gi
requests:
cpu: 100m
Expand All @@ -80,12 +80,14 @@ affinity:
operator: DoesNotExist
topologyKey: kubernetes.io/hostname

startupDelaySeconds: 90

livenessProbe:
httpGet:
path: "/actuator/health/liveness"
port: 8084
scheme: HTTP
failureThreshold: 3
failureThreshold: 5
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
Expand All @@ -95,7 +97,7 @@ readinessProbe:
path: "/actuator/health/readiness"
port: 8084
scheme: HTTP
failureThreshold: 3
failureThreshold: 5
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
Expand All @@ -105,9 +107,9 @@ startupProbe:
path: "/actuator/health/readiness"
port: 8084
scheme: HTTP
initialDelaySeconds: 60
initialDelaySeconds: 30
failureThreshold: 40
periodSeconds: 30
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1

Expand Down
4 changes: 4 additions & 0 deletions charts/bpdm/charts/bpdm-common/templates/_deployment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ spec:
readOnly: true
- mountPath: /tmp
name: cache
initContainers:
- name: startup-delay
image: busybox:1.28
command: ['sh', '-c', "sleep {{ $.Values.startupDelaySeconds }}"]
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
10 changes: 10 additions & 0 deletions charts/bpdm/charts/bpdm-gate/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog (https://keepachangelog.com/en/1.0.0/),

## [6.1.0] - tbd

### Changed

- Increase appversion to 6.1.0
- Increased range of CPU request and limit
- Reduced initial delay of startup probe
- Value for delaying startup of application container.
This decreases crashes when waiting for Keycloak and Postgres dependencies to be up.

## [6.0.1] - 2024-05-27

### Changed
Expand Down
12 changes: 7 additions & 5 deletions charts/bpdm/charts/bpdm-gate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ resources:
cpu: 1000m
memory: 1Gi
requests:
cpu: 200m
cpu: 100m
memory: 1Gi

nodeSelector: {}
Expand All @@ -84,12 +84,14 @@ affinity:
operator: DoesNotExist
topologyKey: kubernetes.io/hostname

startupDelaySeconds: 90

livenessProbe:
httpGet:
path: "/actuator/health/liveness"
port: 8081
scheme: HTTP
failureThreshold: 3
failureThreshold: 5
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
Expand All @@ -99,7 +101,7 @@ readinessProbe:
path: "/actuator/health/readiness"
port: 8081
scheme: HTTP
failureThreshold: 3
failureThreshold: 5
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
Expand All @@ -109,9 +111,9 @@ startupProbe:
path: "/actuator/health/readiness"
port: 8081
scheme: HTTP
initialDelaySeconds: 60
initialDelaySeconds: 30
failureThreshold: 40
periodSeconds: 30
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1

Expand Down
10 changes: 10 additions & 0 deletions charts/bpdm/charts/bpdm-orchestrator/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog (https://keepachangelog.com/en/1.0.0/),

## [3.1.0] - tbd

### Changed

- Increase appversion to 6.1.0
- Increased range of CPU request and limit
- Reduced initial delay of startup probe
- Value for delaying startup of application container.
This decreases crashes when waiting for Keycloak and Postgres dependencies to be up.

## [3.0.1] - 2024-05-27

### Changed
Expand Down
12 changes: 7 additions & 5 deletions charts/bpdm/charts/bpdm-orchestrator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ ingress:

resources:
limits:
cpu: 500m
cpu: 1000m
memory: 1Gi
requests:
cpu: 100m
Expand All @@ -86,12 +86,14 @@ affinity:
operator: DoesNotExist
topologyKey: kubernetes.io/hostname

startupDelaySeconds: 90

livenessProbe:
httpGet:
path: "/actuator/health/liveness"
port: 8085
scheme: HTTP
failureThreshold: 3
failureThreshold: 5
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
Expand All @@ -101,7 +103,7 @@ readinessProbe:
path: "/actuator/health/readiness"
port: 8085
scheme: HTTP
failureThreshold: 3
failureThreshold: 5
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
Expand All @@ -111,9 +113,9 @@ startupProbe:
path: "/actuator/health/readiness"
port: 8085
scheme: HTTP
initialDelaySeconds: 60
initialDelaySeconds: 30
failureThreshold: 40
periodSeconds: 30
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1

Expand Down
10 changes: 10 additions & 0 deletions charts/bpdm/charts/bpdm-pool/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog (https://keepachangelog.com/en/1.0.0/),

## [7.1.0] - tbd

### Changed

- Increase appversion to 6.1.0
- Increased range of CPU request and limit
- Reduced initial delay of startup probe
- Value for delaying startup of application container.
This decreases crashes when waiting for Keycloak and Postgres dependencies to be up.

## [7.0.1] - 2024-05-27

### Changed
Expand Down
14 changes: 8 additions & 6 deletions charts/bpdm/charts/bpdm-pool/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ resources:
cpu: 1000m
memory: 1Gi
requests:
cpu: 300m
cpu: 100m
memory: 1Gi

nodeSelector: {}
Expand All @@ -84,13 +84,15 @@ affinity:
operator: DoesNotExist
topologyKey: kubernetes.io/hostname

startupDelaySeconds: 90

livenessProbe:
httpGet:
path: "/actuator/health/liveness"
port: 8080
scheme: HTTP
failureThreshold: 5
initialDelaySeconds: 120
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
Expand All @@ -100,9 +102,9 @@ readinessProbe:
path: "/actuator/health/readiness"
port: 8080
scheme: HTTP
failureThreshold: 3
failureThreshold: 5
initialDelaySeconds: 5
periodSeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1

Expand All @@ -111,9 +113,9 @@ startupProbe:
path: "/actuator/health/readiness"
port: 8080
scheme: HTTP
initialDelaySeconds: 60
initialDelaySeconds: 30
failureThreshold: 40
periodSeconds: 30
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1

Expand Down

0 comments on commit 95de3fe

Please sign in to comment.