Skip to content

Commit

Permalink
Changes for readiness and liveness probe
Browse files Browse the repository at this point in the history
  • Loading branch information
nshweta90 committed Apr 29, 2024
1 parent 3a2ed16 commit 092538c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions k8s/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ spec:
- name: app-properties
secret:
secretName: set-api-properties
- name: log4j-config
configMap:
name: log4j2-properties
8 changes: 7 additions & 1 deletion k8s/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@ labels:
secretGenerator:
- name: set-api-properties
files:
- set.user.properties
- set.user.properties

#generate config mapping for log4j2.xml file
configMapGenerator:
- name: log4j2-properties
files:
- log4j2-spring.xml
1 change: 1 addition & 0 deletions k8s/overlays/cloud/deployment_patch.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
-Delastic.apm.server_urls=${ELASTIC_APM_SERVERS}
-Delastic.apm.service_name=${APP_NAME}
-Delastic.apm.environment=${K8S_NAMESPACE}"
-Dlogging.config=/opt/app/config/log4j2-spring.xml"
resources:
requests:
memory: "${MEMORY_REQUEST}M"
Expand Down

0 comments on commit 092538c

Please sign in to comment.