Skip to content

Commit

Permalink
make readiness probe configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
himaster committed Nov 15, 2024
1 parent dbad87e commit 06b33df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ipfs-cluster/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: 1.0.6
description: IPFS Cluster Chart
name: ipfs-cluster
version: 0.0.20
version: 0.0.21
home: https://ipfscluster.io/
keywords:
- ipfs
Expand Down
2 changes: 2 additions & 0 deletions ipfs-cluster/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,15 @@ spec:
- name: metrics
containerPort: 8888
protocol: TCP
{{- if .Values.ipfsClusterReadinessProbe.enabled }}
readinessProbe:
exec:
command:
- sh
- /custom/peers-health-check.sh
initialDelaySeconds: 5
periodSeconds: 10
{{- end }}
livenessProbe:
tcpSocket:
port: cluster-swarm
Expand Down
2 changes: 2 additions & 0 deletions ipfs-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ clusterRestApiPrivateKey: "CAESQEmvGJbMboEibpcWCTKOtDYU2eEyyHLN9gDdJli6Z2tksAkhF
clusterRestApiBasicAuth: "pld:password"
clusterCRDTtrustedPeers: "12D3KooWNYut1XL31b4KUnCZmC8Mu7WqGn6QdwnptGpS5tnhSttR,12D3KooWNYut1XL31b4KUnCZmC8Mu7WqGn6QdwnptGpS5tnhSttR"
##################
ipfsClusterReadinessProbe:
enabled: true
clusterMonitorPingInterval: 2s
clusterReplicationFactorMin: -1
clusterReplicationFactorMax: -1
Expand Down

0 comments on commit 06b33df

Please sign in to comment.