Fix: Change application port from 8086 to 8080 for lionsctl compatibility

lionsctl pipeline generates manifests with port 8080 by default and doesn't
respect custom port configuration in .lionsctl.yaml. Changing the application
to use port 8080 fixes the health check failures.

Changes:
- application-prod.properties: quarkus.http.port=8080
- Dockerfile: EXPOSE 8080, HEALTHCHECK on port 8080
- .lionsctl.yaml: port 8080 in all configurations

This fixes the pod restart loop caused by liveness/readiness probes
checking port 8080 while the app was listening on port 8086.
This commit is contained in:
dahoud
2025-12-12 23:14:28 +00:00
parent 3ffcb2f38a
commit c031464f71
3 changed files with 8 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
deployment: deployment:
replicas: 1 replicas: 1
domain: unionflow.lions.dev domain: unionflow.lions.dev
port: 8086 port: 8080
environment: production environment: production
resources: resources:
@@ -17,8 +17,8 @@ health:
liveness: liveness:
initialDelaySeconds: 120 initialDelaySeconds: 120
periodSeconds: 10 periodSeconds: 10
port: 8086 port: 8080
readiness: readiness:
initialDelaySeconds: 60 initialDelaySeconds: 60
periodSeconds: 5 periodSeconds: 5
port: 8086 port: 8080

View File

@@ -9,7 +9,7 @@ ENV LANGUAGE='en_US:en'
# Configuration Quarkus # Configuration Quarkus
ENV QUARKUS_PROFILE=prod ENV QUARKUS_PROFILE=prod
ENV QUARKUS_HTTP_PORT=8086 ENV QUARKUS_HTTP_PORT=8080
ENV QUARKUS_HTTP_HOST=0.0.0.0 ENV QUARKUS_HTTP_HOST=0.0.0.0
# Configuration Backend UnionFlow # Configuration Backend UnionFlow
@@ -35,8 +35,8 @@ COPY --chown=appuser:appuser target/*-runner.jar /app/app.jar
USER appuser USER appuser
# Exposer le port 8086 # Exposer le port 8080
EXPOSE 8086 EXPOSE 8080
# Variables JVM optimisées # Variables JVM optimisées
ENV JAVA_OPTS="-Xmx1g -Xms512m \ ENV JAVA_OPTS="-Xmx1g -Xms512m \
@@ -56,4 +56,4 @@ ENTRYPOINT ["sh", "-c", "exec java $JAVA_OPTS -jar /app/app.jar"]
# Health check sur le bon port # Health check sur le bon port
HEALTHCHECK --interval=30s --timeout=10s --start-period=120s --retries=3 \ HEALTHCHECK --interval=30s --timeout=10s --start-period=120s --retries=3 \
CMD curl -f http://localhost:8086/q/health/ready || exit 1 CMD curl -f http://localhost:8080/q/health/ready || exit 1

View File

@@ -2,7 +2,7 @@
# Ce fichier est utilisé avec le profil Quarkus "prod" # Ce fichier est utilisé avec le profil Quarkus "prod"
# Configuration HTTP # Configuration HTTP
quarkus.http.port=8086 quarkus.http.port=8080
quarkus.http.host=0.0.0.0 quarkus.http.host=0.0.0.0
quarkus.http.root-path=/ quarkus.http.root-path=/
quarkus.http.so-reuse-port=true quarkus.http.so-reuse-port=true