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;








-2















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










share|improve this question
























  • 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

















-2















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










share|improve this question
























  • 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













-2












-2








-2








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










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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












4 Answers
4






active

oldest

votes


















1














i have lack of hardware. I run this command to solve the issue



sudo -i
swapoff -a
exit
strace -eopenat kubectl version





share|improve this answer
































    0














    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






    share|improve this answer






























      0














      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).






      share|improve this answer























      • 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


















      0














      verify /var/log/messages to get further information about the error



      or



      systemctl status kubelet



      or



      Alternately journalctl will also show the details.






      share|improve this answer























      • 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













      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
      );



      );













      draft saved

      draft discarded


















      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









      1














      i have lack of hardware. I run this command to solve the issue



      sudo -i
      swapoff -a
      exit
      strace -eopenat kubectl version





      share|improve this answer





























        1














        i have lack of hardware. I run this command to solve the issue



        sudo -i
        swapoff -a
        exit
        strace -eopenat kubectl version





        share|improve this answer



























          1












          1








          1







          i have lack of hardware. I run this command to solve the issue



          sudo -i
          swapoff -a
          exit
          strace -eopenat kubectl version





          share|improve this answer















          i have lack of hardware. I run this command to solve the issue



          sudo -i
          swapoff -a
          exit
          strace -eopenat kubectl version






          share|improve this answer














          share|improve this answer



          share|improve this answer








          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























              0














              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






              share|improve this answer



























                0














                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






                share|improve this answer

























                  0












                  0








                  0







                  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






                  share|improve this answer













                  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







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  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





















                      0














                      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).






                      share|improve this answer























                      • 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















                      0














                      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).






                      share|improve this answer























                      • 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













                      0












                      0








                      0







                      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).






                      share|improve this answer













                      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).







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      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

















                      • 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











                      0














                      verify /var/log/messages to get further information about the error



                      or



                      systemctl status kubelet



                      or



                      Alternately journalctl will also show the details.






                      share|improve this answer























                      • 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















                      0














                      verify /var/log/messages to get further information about the error



                      or



                      systemctl status kubelet



                      or



                      Alternately journalctl will also show the details.






                      share|improve this answer























                      • 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













                      0












                      0








                      0







                      verify /var/log/messages to get further information about the error



                      or



                      systemctl status kubelet



                      or



                      Alternately journalctl will also show the details.






                      share|improve this answer













                      verify /var/log/messages to get further information about the error



                      or



                      systemctl status kubelet



                      or



                      Alternately journalctl will also show the details.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      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

















                      • 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

















                      draft saved

                      draft discarded
















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                      Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                      Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript