File tree Expand file tree Collapse file tree 3 files changed +19
-10
lines changed
resources/charts/bitcoincore/charts Expand file tree Collapse file tree 3 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 41
41
- /bin/sh
42
42
- -c
43
43
- |
44
- lightningd --conf=/root/.lightning/config &
45
- sleep 1
46
- lightning-cli createrune > /working/rune.json
47
- echo "Here is the rune file contents"
48
- cat /working/rune.json
49
- wait
44
+ lightningd --conf=/root/.lightning/config
50
45
livenessProbe :
51
46
{{- toYaml .Values.livenessProbe | nindent 8 }}
52
47
readinessProbe :
Original file line number Diff line number Diff line change @@ -57,10 +57,10 @@ livenessProbe:
57
57
- " -c"
58
58
- " lightning-cli getinfo >/dev/null 2>&1"
59
59
failureThreshold : 3
60
- initialDelaySeconds : 5
60
+ initialDelaySeconds : 10
61
61
periodSeconds : 5
62
62
successThreshold : 1
63
- timeoutSeconds : 1
63
+ timeoutSeconds : 5
64
64
readinessProbe :
65
65
failureThreshold : 10
66
66
periodSeconds : 30
@@ -71,6 +71,20 @@ readinessProbe:
71
71
- " /bin/sh"
72
72
- " -c"
73
73
- " lightning-cli getinfo 2>/dev/null | grep -q 'id' || exit 1"
74
+ startupProbe :
75
+ failureThreshold : 10
76
+ periodSeconds : 30
77
+ successThreshold : 1
78
+ timeoutSeconds : 60
79
+ exec :
80
+ command :
81
+ - /bin/sh
82
+ - -c
83
+ - |
84
+ while [ ! -s /working/rune.json ]; do
85
+ lightning-cli createrune > /working/rune.json 2>/dev/null
86
+ sleep 2
87
+ done
74
88
75
89
# Additional volumes on the output Deployment definition.
76
90
volumes :
Original file line number Diff line number Diff line change @@ -60,10 +60,10 @@ livenessProbe:
60
60
- 21satoshi
61
61
- getinfo
62
62
failureThreshold : 3
63
- initialDelaySeconds : 5
63
+ initialDelaySeconds : 10
64
64
periodSeconds : 5
65
65
successThreshold : 1
66
- timeoutSeconds : 1
66
+ timeoutSeconds : 5
67
67
readinessProbe :
68
68
failureThreshold : 3
69
69
periodSeconds : 5
You can’t perform that action at this time.
0 commit comments