Skip to content

Commit

Permalink
feat: startupProbe
Browse files Browse the repository at this point in the history
  • Loading branch information
gasRU76 committed Aug 6, 2024
1 parent 0b58bb7 commit 1847321
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/brokencrystals/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: |
Benchmark application that uses modern technologies and implements a set of
common security vulnerabilities
type: application
version: 0.0.79
version: 0.0.80
keywords:
- brokencrystals
- brkn
25 changes: 16 additions & 9 deletions charts/brokencrystals/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
- name: {{ include "brokencrystals.fullname" . }}-postgres
mountPath: /docker-entrypoint-initdb.d/pg.sql
subPath: pg.sql
readOnly: true
readOnly: true

- name: keycloak-postgres
image: postgres:12.2-alpine
Expand All @@ -72,7 +72,7 @@ spec:
resources:
requests:
cpu: 100m
memory: 50Mi
memory: 50Mi
volumeMounts:
- name: {{ include "brokencrystals.fullname" . }}-kc-db
mountPath: /usr/local/share/postgresql/postgresql.conf.sample
Expand Down Expand Up @@ -152,7 +152,7 @@ spec:
value: "config/keys/jwk.key.pem"
- name: JWK_PUBLIC_KEY_LOCATION
value: "config/keys/jwk.pub.key.pem"
- name: JWK_PUBLIC_JSON
- name: JWK_PUBLIC_JSON
value: "config/keys/jwk.pub.json"
- name: JKU_URL
value: "https://raw.githubusercontent.com/NeuraLegion/brokencrystals/development/config/keys/jku.json"
Expand All @@ -177,6 +177,13 @@ spec:
scheme: HTTP
initialDelaySeconds: 120
periodSeconds: 30
startupProbe:
httpGet:
path: /api/config
port: 3000
scheme: HTTP
failureThreshold: 120
periodSeconds: 10

- name: mailcatcher
image: sj26/mailcatcher
Expand All @@ -188,9 +195,9 @@ spec:
args:
- "--token=$(TOKEN)"
- "--id=$(REPEATER_ID)"
- "--cluster=$(CLUSTER)"
- "--cluster=$(CLUSTER)"
- "--timeout=$(TIMEOUT)"
- "--log-level=verbose"
- "--log-level=verbose"
resources:
requests:
cpu: 200m
Expand All @@ -203,9 +210,9 @@ spec:
- name: CLUSTER
value: "{{ .Values.cluster }}"
- name: TIMEOUT
value: "{{ .Values.timeout | default "30000" }}"
value: "{{ .Values.timeout | default "30000" }}"
{{- end }}

{{- if and .Values.snifferApiKey .Values.snifferProjectID .Values.snifferApiURL }}
- name: sniffer-agent
securityContext:
Expand All @@ -215,8 +222,8 @@ spec:
args:
- "-a=$(API_URL)"
- "-t=$(API_KEY)"
- "-p=$(PROJECT_ID)"
- "-i=$(NETWORK_INTERFACE)"
- "-p=$(PROJECT_ID)"
- "-i=$(NETWORK_INTERFACE)"
resources:
requests:
cpu: 200m
Expand Down

0 comments on commit 1847321

Please sign in to comment.