顯示具有 glusterfs 標籤的文章。 顯示所有文章
顯示具有 glusterfs 標籤的文章。 顯示所有文章

2020年10月8日 星期四

kubernetes 1.18 glusterfs Crash loop

glusterfs cannot be launched in time to reach it's readiness
i.e. systemctl status glusterd.service cannot be ready in 3 seconds.

solution: modify the initial delay seconds to much longer value

diff --git a/contrib/network-storage/heketi/roles/provision/templates/glusterfs-daemonset.json.j2 b/contrib/network-storage/heketi/roles/provision/templates/glusterfs-daemonset.json.j2
index 8934fa92..62ae94a4 100644
--- a/contrib/network-storage/heketi/roles/provision/templates/glusterfs-daemonset.json.j2
+++ b/contrib/network-storage/heketi/roles/provision/templates/glusterfs-daemonset.json.j2
@@ -74,7 +74,7 @@
},
"readinessProbe": {
"timeoutSeconds": 3,
- "initialDelaySeconds": 3,
+ "initialDelaySeconds": 600,
"exec": {
"command": [
"/bin/bash",
@@ -85,7 +85,7 @@
},
"livenessProbe": {
"timeoutSeconds": 3,
- "initialDelaySeconds": 10,
+ "initialDelaySeconds": 600,
"exec": {
"command": [
"/bin/bash",