2020年10月26日 星期一

Access k8s inside NAT

scp ${SERVERIP}:~/.kube/config ./ciconfig
  • add insecure-skip-tls-verify: true
  • remove certificate-authority-data in cluster
apiVersion: v1
clusters:
- cluster:
insecure-skip-tls-verify: true
server: https://{IP}:6443
name: cluster.local

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",