Skip to content

Commit d9b06f2

Browse files
committed
liveness and rediness probes threshold configuration values to enable debugging
1 parent 23ee3fe commit d9b06f2

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.run/remote debug kind.run.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<component name="ProjectRunConfigurationManager">
2-
<configuration default="false" name="remote debug kind" type="Remote">
2+
<configuration default="false" name="remote debug kind" type="Remote" show_console_on_std_err="true" show_console_on_std_out="true">
33
<option name="USE_SOCKET_TRANSPORT" value="true" />
44
<option name="SERVER_MODE" value="false" />
55
<option name="SHMEM_ADDRESS" />
66
<option name="HOST" value="localhost" />
7-
<option name="PORT" value="5006" />
7+
<option name="PORT" value="5005" />
88
<option name="AUTO_RESTART" value="false" />
99
<RunnerSettings RunnerId="Debug">
10-
<option name="DEBUG_PORT" value="5006" />
10+
<option name="DEBUG_PORT" value="5005" />
1111
<option name="LOCAL" value="false" />
1212
</RunnerSettings>
1313
<method v="2" />

api/kubernetes/helm-chart/templates/deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,13 @@ spec:
9696
livenessProbe:
9797
timeoutSeconds: 5
9898
periodSeconds: 5
99-
failureThreshold: 2
99+
failureThreshold: {{ .Values.api.probes.liveness.failureThreshold }}
100100
httpGet:
101101
path: /actuator/health/liveness
102102
port: http-management
103103
readinessProbe:
104104
timeoutSeconds: 5
105+
failureThreshold: {{ .Values.api.probes.readiness.failureThreshold }}
105106
httpGet:
106107
path: /actuator/health/readiness
107108
port: http-management

api/kubernetes/helm-chart/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ api:
8484
servletContextPath: /
8585
# Examples: latest, v1, v2
8686
version: latest
87+
# Configure probes failure thresholds to higher values if you are in debug mode to avoid pod restart
88+
probes:
89+
liveness:
90+
failureThreshold: 2
91+
readiness:
92+
failureThreshold: 1
8793
serviceMonitor:
8894
enabled: true
8995
namespace: "phoenix-monitoring"

scripts/kubernetes/create-local-k8s-cluster.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ nodes:
4545
- containerPort: 443
4646
hostPort: 443
4747
protocol: TCP
48-
- containerPort: 5005
49-
hostPort: 5005
50-
protocol: TCP
5148
- role: worker
5249
image: kindest/node:${kindest_node_image_tag}
5350
kubeadmConfigPatches:

0 commit comments

Comments
 (0)