From ea66c479cb6b65dcc41b3c01219d58d01e5eb48f Mon Sep 17 00:00:00 2001 From: andyjk15 Date: Sun, 1 Mar 2020 19:48:23 +0000 Subject: [PATCH] [1.03.20] Scale pods and increase probes duration --- configuration/kubernetes/deployment.yaml | 6 +++--- src/main/resources/application.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configuration/kubernetes/deployment.yaml b/configuration/kubernetes/deployment.yaml index c7ccdbc..398af72 100644 --- a/configuration/kubernetes/deployment.yaml +++ b/configuration/kubernetes/deployment.yaml @@ -6,7 +6,7 @@ metadata: name: RESOURCE_NAME namespace: production spec: - replicas: 2 + replicas: 0 selector: matchLabels: app: RESOURCE_NAME @@ -59,7 +59,7 @@ spec: path: /actuator/health port: 9090 scheme: HTTP - initialDelaySeconds: 100 + initialDelaySeconds: 120 periodSeconds: 30 timeoutSeconds: 2 successThreshold: 1 @@ -69,7 +69,7 @@ spec: port: 9090 path: /actuator/health scheme: HTTP - initialDelaySeconds: 80 + initialDelaySeconds: 100 periodSeconds: 5 timeoutSeconds: 2 successThreshold: 1 diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 51dbe5d..a9add9a 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -12,7 +12,7 @@ spring: platform: postgres jpa: hibernate: - ddl-auto: create + ddl-auto: validate show-sql: true properties: org.hibernate.envers.revision_field_name: revision_id