Update initialDelaySeconds in kube-apiserver.yaml

Running this command in another SSH session as soon as kubeadm creates the kube-apiserver.yaml file will update these values and will likely decrease the failure rates during installation.
This commit is contained in:
Kumar Utsav Anand 2018-12-27 21:35:15 +05:30 committed by GitHub
parent 2afb2c0e47
commit 26a800e1c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,8 @@ Note: This step can take a long time, even up to 15 minutes.
Sometimes this stage can fail, if it does then you should patch the API Server to allow for a higher failure threshold during initialization around the time you see `[controlplane] wrote Static Pod manifest for component kube-apiserver to "/etc/kubernetes/manifests/kube-apiserver.yaml"` Sometimes this stage can fail, if it does then you should patch the API Server to allow for a higher failure threshold during initialization around the time you see `[controlplane] wrote Static Pod manifest for component kube-apiserver to "/etc/kubernetes/manifests/kube-apiserver.yaml"`
``` ```
sudo sed -i 's/failureThreshold: 8/failureThreshold: 20/g' /etc/kubernetes/manifests/kube-apiserver.yaml sudo sed -i 's/failureThreshold: 8/failureThreshold: 20/g' /etc/kubernetes/manifests/kube-apiserver.yaml && \
sed -i 's/initialDelaySeconds: [0-9]\+/initialDelaySeconds: 360/' /etc/kubernetes/manifests/kube-apiserver.yaml
``` ```
After the `init` is complete run the snippet given to you on the command-line: After the `init` is complete run the snippet given to you on the command-line: