Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Nodelet Phases Restart on Master Node Stuck at "Wait for k8s services and network to be up" Stage.
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
The scaling of master node in an existing cluster fails, the subsequent nodelet phases restart stuck at "Wait for k8s services and network to be up" stage.
In the kubelet logs below error observed:
kubelet logs
I0507 19:41:50.579598 28415 kubelet.go:416] "Attempting to sync node with API server"I0507 19:41:50.579604 28415 kubelet.go:278] "Adding static pod path" path="/etc/pf9/kube.d/master.yaml"I0507 19:41:50.579614 28415 file.go:68] "Watching path" path="/etc/pf9/kube.d/master.yaml"I0507 19:41:50.579620 28415 kubelet.go:289] "Adding apiserver pod source"I0507 19:41:50.579626 28415 apiserver.go:42] "Waiting for node sync before watching apiserver pods"E0507 19:41:50.579718 28415 file_linux.go:61] "Unable to read config path" err="path does not exist, ignoring" path="/etc/pf9/kube.d/master.yaml"E0507 19:41:50.579720 28415 file.go:98] "Unable to read config path" err="path does not exist, ignoring" path="/etc/pf9/kube.d/master.yaml"Environment
- Platform9 Managed Kubenetes - v5.6
- Kubernetes - v1.23
Cause
- The static pods(control-plane pods) were pointing towards non-existing file
/etc/pf9/kube.d/master.yaml.
Bash
xxxxxxxxxxcat /etc/pf9/kube.d/master.yamlcat: /etc/pf9/kube.d/master.yaml: No such file or directory- A known bug is causing this issue PMK-5807.
Resolution
- The issue is fixed in Platform9 Managed Kubernetes v5.7. Reference JIRA [PMK-5807].
Additional Information
- In
nodelet.logfile below error observed.
Nodelet Debug Logs
Running command 'cgexec -g cpu:pf9-kube-status sudo /opt/pf9/pf9-kube/setup_env_and_run_script.sh /opt/pf9/pf9-kube/phases/wait_for_k8s_services.sh status' from wd: ''STDOUT:--- /opt/pf9/pf9-kube/phases/wait_for_k8s_services.sh status at 2024-05-07 19:21:37 ---[2024-05-07 19:21:38] + operation=status[2024-05-07 19:21:38] + case $operation in[2024-05-07 19:21:38] + status[2024-05-07 19:21:38] + source network_plugin.sh[2024-05-07 19:21:38] ++ [[ -z calico ]][2024-05-07 19:21:38] ++ source network_plugins/calico/calico.sh[2024-05-07 19:21:38] + network_running[2024-05-07 19:21:38] + '[' master == none ']'[2024-05-07 19:21:38] + return 0[2024-05-07 19:21:38] + '[' master == worker ']'[2024-05-07 19:21:38] + kubernetes_api_available[2024-05-07 19:21:38] + ADMIN_CERTS=/etc/pf9/kube.d/certs/admin[2024-05-07 19:21:38] + '[' master == master ']'[2024-05-07 19:21:38] + api_endpoint=localhost[2024-05-07 19:21:38] + timeout 60 curl --silent https://localhost:443/livez --cacert /etc/pf9/kube.d/certs/admin/ca.crt --key /etc/pf9/kube.d/certs/admin/request.key --cert /etc/pf9/kube.d/certs/admin/request.crt --fail[2024-05-07 19:21:38] + return 1Error: exit status 1Exit Status: 1Running command 'cgexec -g cpu:pf9-kube-status sudo /opt/pf9/pf9-kube/setup_env_and_run_script.sh /opt/pf9/pf9-kube/phases/wait_for_k8s_services.sh status' from wd: ''STDOUT:--- /opt/pf9/pf9-kube/phases/wait_for_k8s_services.sh status at 2024-05-07 19:21:39 ---- As a workaround updated the static pod file path in
master-default-kubelet-configconfigmap.
Bash
xxxxxxxxxx# kubectl edit cm master-default-kubelet-config -n kube-systemconfigmap/master-default-kubelet-config edited -- staticPodPath: "/etc/pf9/kube.d/master.yaml"++ staticPodPath: "/etc/pf9/kube.d/pod-manifests/master.yaml"- Restart the PMK Stack.
Bash
xxxxxxxxxx# systemctl stop pf9-hostagent; systemctl stop pf9-nodeletd# /opt/pf9/nodelet/nodeletd phases stop# systemctl start pf9-hostagentVariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Next to read:
Ability to Define Specific CPUs/Cores for ETCD containerDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message