update application properties

This commit is contained in:
2024-08-30 17:10:31 +10:00
parent 33d16e5299
commit b8c1aa15f7
2 changed files with 3 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
if test "${SPRING_PROFILES_ACTIVE}" != '';
then
echo "spring active profile is "$SPRING_PROFILES_ACTIVE
JAVA_OPTIONS="$JAVA_OPTIONS -Dspring.profiles.active=cloud,native,$SPRING_PROFILES_ACTIVE"
JAVA_OPTIONS="$JAVA_OPTIONS -Dspring.profiles.active=native,$SPRING_PROFILES_ACTIVE"
fi
if test "${LOCAL_DOCKER_ENV}" = 'true';

View File

@@ -1,7 +1,9 @@
spring:
cloud:
kubernetes:
enabled: true
discovery:
enabled: true
all-namespaces: false
service-labels:
spring-boot: true