Skip to content

Commit 778d52d

Browse files
authored
Merge pull request #5 from texttechnologylab/develop
Develop
2 parents e463cfe + 5407bad commit 778d52d

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

clusters/homelab/udav-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
namespace: uni
66
data:
77
# Database configuration (non-sensitive)
8-
DB_URL: "jdbc:postgresql://pg-postgresql.dlti.svc.cluster.local:5432/udav"
8+
# DB_URL is intentionally provided by Secret `udav-secrets`
99
DB_SCHEMA: "public"
1010
DB_BATCH_SIZE: "5000"
1111
DB_MAX_IDENT: "255"

clusters/homelab/udav-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ spec:
3131
name: udav-secrets
3232
readinessProbe:
3333
httpGet:
34-
path: /actuator/health
34+
path: /actuator/health/readiness
3535
port: http
3636
initialDelaySeconds: 30
3737
periodSeconds: 10
3838
livenessProbe:
3939
httpGet:
40-
path: /actuator/health
40+
path: /actuator/health/liveness
4141
port: http
4242
initialDelaySeconds: 60
4343
periodSeconds: 20

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858
<groupId>org.springframework.boot</groupId>
5959
<artifactId>spring-boot-starter-data-jpa</artifactId>
6060
</dependency>
61+
<dependency>
62+
<groupId>org.springframework.boot</groupId>
63+
<artifactId>spring-boot-starter-actuator</artifactId>
64+
</dependency>
6165

6266

6367

src/main/resources/application.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,8 @@ logging.level.org.springframework.boot=WARN
5555
logging.level.org.springframework.web=WARN
5656
logging.level.org.texttechnologylab.udav.importer.JooqDatabaseWriter=ERROR
5757
spring.config.import=optional:file:.env[.properties]
58+
59+
# Kubernetes probe endpoints
60+
management.endpoint.health.probes.enabled=true
61+
management.endpoints.web.exposure.include=health,info
62+
management.endpoint.health.show-details=never

0 commit comments

Comments
 (0)