after some time my kubernetes cluster does not workK8S: Node does not join clusterKubernetes pods (some) die after running for a dayFacing Issues with Kubernetes High Availability cluster setupConfigure Kubernetes for an Azure clusterThe connection to the server localhost:8080 was refusedk8s (single-node) not working after restartRunning a hybrid/heterogeneous Kubernetes cluster with nodes running in different networks using a VPNUnable to kubectl connect my kubernetes clusterKubernetes cluster without kubernetes MasterUsing kubeadm to init kubernetes 1.12.0 falied:node “xxx” not found
Old short story where the future emperor of the galaxy is taken for a tour around Earth
Project Euler, problem # 9, Pythagorean triplet
Number of optically active compounds among the products of ozonolysis
Are L-functions uniquely determined by their values at negative integers?
Is this a plot hole in the Lost Mine of Phandelver adventure?
Why does linear regression use "vertical" distance to the best-fit-line, instead of actual distance?
What are some symbols representing peasants/oppressed persons fighting back?
Align by center of symbol
What is the standard dungeon scale at the table?
How long do Apple retain notifications to be pushed to iOS devices until they expire?
Why is the collector feedback bias popular in electret-mic preamp circuits?
How to make "plastic" sounding distored guitar
Does the Entangle spell require existing vegetation?
Can I activate an iPhone without an Apple ID?
Why does ffmpeg choose 10+20+20ms instead of an even 16ms for 60fps gifs?
How to fit a linear model in the Bayesian way in Mathematica?
Is it okay to retroactively change things when running a published adventure?
Mistakenly modified `/bin/sh'
I have accepted an internship offer. Should I inform companies I have applied to that have not gotten back to me yet?
Asking for higher salary after I increased my initial figure
Filtering fine silt/mud from water (not necessarily bacteria etc.)
Relationship between GCD, LCM and the Riemann Zeta function
Hot object in a vacuum
Are there any double stars that I can actually see orbit each other?
after some time my kubernetes cluster does not work
K8S: Node does not join clusterKubernetes pods (some) die after running for a dayFacing Issues with Kubernetes High Availability cluster setupConfigure Kubernetes for an Azure clusterThe connection to the server localhost:8080 was refusedk8s (single-node) not working after restartRunning a hybrid/heterogeneous Kubernetes cluster with nodes running in different networks using a VPNUnable to kubectl connect my kubernetes clusterKubernetes cluster without kubernetes MasterUsing kubeadm to init kubernetes 1.12.0 falied:node “xxx” not found
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have kubernetes
cluster.every thing work fine. but after 8 days when i run kubectl get pods
it shows:
The connection to the server <host>:6443 was refused - did you specify the right host or port?
I have one master and one worker.
I run them in my lab without any cloud.
systemctl kubelet status
show **node not found**
my /etc/hosts was checked and it is correct
kubernetes
add a comment |
I have kubernetes
cluster.every thing work fine. but after 8 days when i run kubectl get pods
it shows:
The connection to the server <host>:6443 was refused - did you specify the right host or port?
I have one master and one worker.
I run them in my lab without any cloud.
systemctl kubelet status
show **node not found**
my /etc/hosts was checked and it is correct
kubernetes
You need to add a lot more information. How is your Kubernetes provisioned ? Are you using Microsoft Azure or Docker for Windows or what ? Where is your Kubernetes master ?
– rjdkolb
Mar 26 at 6:59
Still very vague, how did you provision your "lab" ?
– rjdkolb
Mar 26 at 8:57
add a comment |
I have kubernetes
cluster.every thing work fine. but after 8 days when i run kubectl get pods
it shows:
The connection to the server <host>:6443 was refused - did you specify the right host or port?
I have one master and one worker.
I run them in my lab without any cloud.
systemctl kubelet status
show **node not found**
my /etc/hosts was checked and it is correct
kubernetes
I have kubernetes
cluster.every thing work fine. but after 8 days when i run kubectl get pods
it shows:
The connection to the server <host>:6443 was refused - did you specify the right host or port?
I have one master and one worker.
I run them in my lab without any cloud.
systemctl kubelet status
show **node not found**
my /etc/hosts was checked and it is correct
kubernetes
kubernetes
edited Mar 26 at 12:14
yasin lachini
asked Mar 26 at 6:52
yasin lachiniyasin lachini
7411 gold badge3 silver badges16 bronze badges
7411 gold badge3 silver badges16 bronze badges
You need to add a lot more information. How is your Kubernetes provisioned ? Are you using Microsoft Azure or Docker for Windows or what ? Where is your Kubernetes master ?
– rjdkolb
Mar 26 at 6:59
Still very vague, how did you provision your "lab" ?
– rjdkolb
Mar 26 at 8:57
add a comment |
You need to add a lot more information. How is your Kubernetes provisioned ? Are you using Microsoft Azure or Docker for Windows or what ? Where is your Kubernetes master ?
– rjdkolb
Mar 26 at 6:59
Still very vague, how did you provision your "lab" ?
– rjdkolb
Mar 26 at 8:57
You need to add a lot more information. How is your Kubernetes provisioned ? Are you using Microsoft Azure or Docker for Windows or what ? Where is your Kubernetes master ?
– rjdkolb
Mar 26 at 6:59
You need to add a lot more information. How is your Kubernetes provisioned ? Are you using Microsoft Azure or Docker for Windows or what ? Where is your Kubernetes master ?
– rjdkolb
Mar 26 at 6:59
Still very vague, how did you provision your "lab" ?
– rjdkolb
Mar 26 at 8:57
Still very vague, how did you provision your "lab" ?
– rjdkolb
Mar 26 at 8:57
add a comment |
4 Answers
4
active
oldest
votes
i have lack of hardware. I run this command to solve the issue
sudo -i
swapoff -a
exit
strace -eopenat kubectl version
add a comment |
most likely that the servers are rebooted. i had similar problem.
check kubelet logs on master server and take action.
if you can share the kubelet logs then we will be able to offer you further help
add a comment |
Reboot itself should not be a problem - but if you did not disabled swap permanently reboot will enable swap again and API server will not launch - it could be first shot.
Second - check free disk space, API server will not respond if disk is full (will raise disk pressure event and will try to evict pods).
If it will not help - please add logs from Kubelet (systemctl and journalctl).
i have lack of free ram
– yasin lachini
Mar 26 at 10:12
can it create problem?
– yasin lachini
Mar 26 at 10:12
To run kubernetes master you need ~3GB of RAM and 2 CPU cores on the machine, so it could be a problem when system or other processes use memory and nothing left for K8s controlplane
– toszo
Mar 26 at 10:59
i have 4 core and 8 Gb ram
– yasin lachini
Mar 26 at 11:35
i ran mongodb redis elasticsearch on it
– yasin lachini
Mar 26 at 11:36
add a comment |
verify /var/log/messages to get further information about the error
or
systemctl status kubelet
or
Alternately journalctl will also show the details.
systemctl status kubelet shows node not found
– yasin lachini
Mar 26 at 12:13
please check the /etc/host entry . and check connecting to node from master manually. Is there a DNS server or manual host entry used
– Anil Jayan Leela
Mar 26 at 12:17
i check it.it is correct
– yasin lachini
Mar 26 at 12:19
if possible share the log messages
– Anil Jayan Leela
Mar 26 at 12:21
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55351325%2fafter-some-time-my-kubernetes-cluster-does-not-work%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
i have lack of hardware. I run this command to solve the issue
sudo -i
swapoff -a
exit
strace -eopenat kubectl version
add a comment |
i have lack of hardware. I run this command to solve the issue
sudo -i
swapoff -a
exit
strace -eopenat kubectl version
add a comment |
i have lack of hardware. I run this command to solve the issue
sudo -i
swapoff -a
exit
strace -eopenat kubectl version
i have lack of hardware. I run this command to solve the issue
sudo -i
swapoff -a
exit
strace -eopenat kubectl version
edited Mar 28 at 7:11
answered Mar 28 at 6:29
yasin lachiniyasin lachini
7411 gold badge3 silver badges16 bronze badges
7411 gold badge3 silver badges16 bronze badges
add a comment |
add a comment |
most likely that the servers are rebooted. i had similar problem.
check kubelet logs on master server and take action.
if you can share the kubelet logs then we will be able to offer you further help
add a comment |
most likely that the servers are rebooted. i had similar problem.
check kubelet logs on master server and take action.
if you can share the kubelet logs then we will be able to offer you further help
add a comment |
most likely that the servers are rebooted. i had similar problem.
check kubelet logs on master server and take action.
if you can share the kubelet logs then we will be able to offer you further help
most likely that the servers are rebooted. i had similar problem.
check kubelet logs on master server and take action.
if you can share the kubelet logs then we will be able to offer you further help
answered Mar 26 at 7:38
P EkambaramP Ekambaram
3,0181 gold badge8 silver badges27 bronze badges
3,0181 gold badge8 silver badges27 bronze badges
add a comment |
add a comment |
Reboot itself should not be a problem - but if you did not disabled swap permanently reboot will enable swap again and API server will not launch - it could be first shot.
Second - check free disk space, API server will not respond if disk is full (will raise disk pressure event and will try to evict pods).
If it will not help - please add logs from Kubelet (systemctl and journalctl).
i have lack of free ram
– yasin lachini
Mar 26 at 10:12
can it create problem?
– yasin lachini
Mar 26 at 10:12
To run kubernetes master you need ~3GB of RAM and 2 CPU cores on the machine, so it could be a problem when system or other processes use memory and nothing left for K8s controlplane
– toszo
Mar 26 at 10:59
i have 4 core and 8 Gb ram
– yasin lachini
Mar 26 at 11:35
i ran mongodb redis elasticsearch on it
– yasin lachini
Mar 26 at 11:36
add a comment |
Reboot itself should not be a problem - but if you did not disabled swap permanently reboot will enable swap again and API server will not launch - it could be first shot.
Second - check free disk space, API server will not respond if disk is full (will raise disk pressure event and will try to evict pods).
If it will not help - please add logs from Kubelet (systemctl and journalctl).
i have lack of free ram
– yasin lachini
Mar 26 at 10:12
can it create problem?
– yasin lachini
Mar 26 at 10:12
To run kubernetes master you need ~3GB of RAM and 2 CPU cores on the machine, so it could be a problem when system or other processes use memory and nothing left for K8s controlplane
– toszo
Mar 26 at 10:59
i have 4 core and 8 Gb ram
– yasin lachini
Mar 26 at 11:35
i ran mongodb redis elasticsearch on it
– yasin lachini
Mar 26 at 11:36
add a comment |
Reboot itself should not be a problem - but if you did not disabled swap permanently reboot will enable swap again and API server will not launch - it could be first shot.
Second - check free disk space, API server will not respond if disk is full (will raise disk pressure event and will try to evict pods).
If it will not help - please add logs from Kubelet (systemctl and journalctl).
Reboot itself should not be a problem - but if you did not disabled swap permanently reboot will enable swap again and API server will not launch - it could be first shot.
Second - check free disk space, API server will not respond if disk is full (will raise disk pressure event and will try to evict pods).
If it will not help - please add logs from Kubelet (systemctl and journalctl).
answered Mar 26 at 9:50
toszotoszo
764 bronze badges
764 bronze badges
i have lack of free ram
– yasin lachini
Mar 26 at 10:12
can it create problem?
– yasin lachini
Mar 26 at 10:12
To run kubernetes master you need ~3GB of RAM and 2 CPU cores on the machine, so it could be a problem when system or other processes use memory and nothing left for K8s controlplane
– toszo
Mar 26 at 10:59
i have 4 core and 8 Gb ram
– yasin lachini
Mar 26 at 11:35
i ran mongodb redis elasticsearch on it
– yasin lachini
Mar 26 at 11:36
add a comment |
i have lack of free ram
– yasin lachini
Mar 26 at 10:12
can it create problem?
– yasin lachini
Mar 26 at 10:12
To run kubernetes master you need ~3GB of RAM and 2 CPU cores on the machine, so it could be a problem when system or other processes use memory and nothing left for K8s controlplane
– toszo
Mar 26 at 10:59
i have 4 core and 8 Gb ram
– yasin lachini
Mar 26 at 11:35
i ran mongodb redis elasticsearch on it
– yasin lachini
Mar 26 at 11:36
i have lack of free ram
– yasin lachini
Mar 26 at 10:12
i have lack of free ram
– yasin lachini
Mar 26 at 10:12
can it create problem?
– yasin lachini
Mar 26 at 10:12
can it create problem?
– yasin lachini
Mar 26 at 10:12
To run kubernetes master you need ~3GB of RAM and 2 CPU cores on the machine, so it could be a problem when system or other processes use memory and nothing left for K8s controlplane
– toszo
Mar 26 at 10:59
To run kubernetes master you need ~3GB of RAM and 2 CPU cores on the machine, so it could be a problem when system or other processes use memory and nothing left for K8s controlplane
– toszo
Mar 26 at 10:59
i have 4 core and 8 Gb ram
– yasin lachini
Mar 26 at 11:35
i have 4 core and 8 Gb ram
– yasin lachini
Mar 26 at 11:35
i ran mongodb redis elasticsearch on it
– yasin lachini
Mar 26 at 11:36
i ran mongodb redis elasticsearch on it
– yasin lachini
Mar 26 at 11:36
add a comment |
verify /var/log/messages to get further information about the error
or
systemctl status kubelet
or
Alternately journalctl will also show the details.
systemctl status kubelet shows node not found
– yasin lachini
Mar 26 at 12:13
please check the /etc/host entry . and check connecting to node from master manually. Is there a DNS server or manual host entry used
– Anil Jayan Leela
Mar 26 at 12:17
i check it.it is correct
– yasin lachini
Mar 26 at 12:19
if possible share the log messages
– Anil Jayan Leela
Mar 26 at 12:21
add a comment |
verify /var/log/messages to get further information about the error
or
systemctl status kubelet
or
Alternately journalctl will also show the details.
systemctl status kubelet shows node not found
– yasin lachini
Mar 26 at 12:13
please check the /etc/host entry . and check connecting to node from master manually. Is there a DNS server or manual host entry used
– Anil Jayan Leela
Mar 26 at 12:17
i check it.it is correct
– yasin lachini
Mar 26 at 12:19
if possible share the log messages
– Anil Jayan Leela
Mar 26 at 12:21
add a comment |
verify /var/log/messages to get further information about the error
or
systemctl status kubelet
or
Alternately journalctl will also show the details.
verify /var/log/messages to get further information about the error
or
systemctl status kubelet
or
Alternately journalctl will also show the details.
answered Mar 26 at 12:11
Anil Jayan LeelaAnil Jayan Leela
474 bronze badges
474 bronze badges
systemctl status kubelet shows node not found
– yasin lachini
Mar 26 at 12:13
please check the /etc/host entry . and check connecting to node from master manually. Is there a DNS server or manual host entry used
– Anil Jayan Leela
Mar 26 at 12:17
i check it.it is correct
– yasin lachini
Mar 26 at 12:19
if possible share the log messages
– Anil Jayan Leela
Mar 26 at 12:21
add a comment |
systemctl status kubelet shows node not found
– yasin lachini
Mar 26 at 12:13
please check the /etc/host entry . and check connecting to node from master manually. Is there a DNS server or manual host entry used
– Anil Jayan Leela
Mar 26 at 12:17
i check it.it is correct
– yasin lachini
Mar 26 at 12:19
if possible share the log messages
– Anil Jayan Leela
Mar 26 at 12:21
systemctl status kubelet shows node not found
– yasin lachini
Mar 26 at 12:13
systemctl status kubelet shows node not found
– yasin lachini
Mar 26 at 12:13
please check the /etc/host entry . and check connecting to node from master manually. Is there a DNS server or manual host entry used
– Anil Jayan Leela
Mar 26 at 12:17
please check the /etc/host entry . and check connecting to node from master manually. Is there a DNS server or manual host entry used
– Anil Jayan Leela
Mar 26 at 12:17
i check it.it is correct
– yasin lachini
Mar 26 at 12:19
i check it.it is correct
– yasin lachini
Mar 26 at 12:19
if possible share the log messages
– Anil Jayan Leela
Mar 26 at 12:21
if possible share the log messages
– Anil Jayan Leela
Mar 26 at 12:21
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55351325%2fafter-some-time-my-kubernetes-cluster-does-not-work%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You need to add a lot more information. How is your Kubernetes provisioned ? Are you using Microsoft Azure or Docker for Windows or what ? Where is your Kubernetes master ?
– rjdkolb
Mar 26 at 6:59
Still very vague, how did you provision your "lab" ?
– rjdkolb
Mar 26 at 8:57