Skip to content

Commit

Permalink
Deployment: setup DEV environment
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-ka committed Feb 14, 2024
1 parent cbc3bdd commit f024ba6
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: tla-sample-backend-env-config
data:
DEBUG_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044"
JAVA_OPTS: "-Xmx1g -Xms1g -Dspring.profiles.active=dev -DSpring.config.additional-location=file:/srv/web/conf/ -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8090 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.io.tmpdir=/srv/web/tmp"
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: tla-sample-backend-ingress
annotations:
kubernetes.io/ingress.global-static-ip-name: tla-sample-backend-ip
spec:
defaultBackend:
service:
name: tla-sample-backend
port:
number: 8080
rules:
- host: tla-sample-app.contextmapper.org
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: tla-sample-backend
port:
number: 8080
4 changes: 4 additions & 0 deletions src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
spring.datasource.url=jdbc:postgresql://tla-sample-db:5432/tla-sample
spring.datasource.username=tla-sample
spring.datasource.driverClassName=org.postgresql.Driver
spring.jpa.hibernate.ddl-auto=validate

0 comments on commit f024ba6

Please sign in to comment.