Answers: <p>I tried this and worked for me.</p>
  <p>First of all open a new PowerShell.
  We need to have Kubernetes server installed and running. So execute this command:</p>
  <blockquote>
  <p><strong>kubectl version</strong></p>
  </blockquote>
  <p>I faced this line in the bottom of response:</p>
  <blockquote>
  <p><strong>Unable to connect to the server: dial tcp 127.0.0.1:6443: connectex:</strong>
  <strong>No connection could be made because the target machine actively</strong>
  <strong>refused it.</strong></p>
  </blockquote>
  <p>If you got some similar response, it means Windows cannot resolve the internal domain which should be set in the <code>hosts</code> file. So do as the following instructions:</p>
  <ol>
  <li>Open the hidden path</li>
  </ol>
  <blockquote>
  <p><strong>C:\Windows\System32\drivers\etc\hosts</strong></p>
  </blockquote>
  <p><code>hosts</code> file has no extension. Open it with notepad or any text editor. Do it with <strong>Adminisrator</strong> privilege.</p>
  <ol start="2">
  <li>insert this line in the opened hosts file:</li>
  </ol>
  <blockquote>
  <p><strong>127.0.0.1 kubernetes.docker.internal</strong></p>
  </blockquote>
  <ol start="3">
  <li>Save it.</li>
  <li>Run Docker Desktop again.</li>
  </ol>
  <p>And that's it.</p>
  <p><strong>For checking the Kubernetes installation success, follow below instructions:</strong></p>
  <p>Docker Desktop will not show Kubernetes as <strong>installed</strong> until all of the Kubernetes components are running. To see what is happening with its components open a new PowerShell to have the necessary environment variables set and run:</p>
  <p>Open PowerShell and run this command:</p>
  <blockquote>
  <p><strong>kubectl get all -n kube-system</strong></p>
  </blockquote>
  <p>Check if the followings are true:</p>
  <pre><code>1) all of the pods have “Running” status.
  2) deamonset.apps/kube-proxy has “1” in the “Ready” column
  3) deployment.apps/coredns has “2/2” in the “Ready” column
  4) replicaset.apps/coredns-HASH has “2” in the “Ready” column
  </code></pre>
  <p>If any of the above statements are not true, use <code>kubectl describe -n kube-system OBJECTNAME</code> for more details.
  For example:</p>
  <blockquote>
  <p><strong>kubectl describe -n kube-system pod/coredns-558bd4d5db-99qxd</strong></p>
  </blockquote>
  <p>You could be found more in this complete <a href="https://forums.docker.com/t/unable-to-install-kubernetes-stuck-on-starting-state/117048" rel="nofollow noreferrer"><strong>discussion</strong></a>.</p>
  <p>I am still eager for new answer and discussions.</p>
  
Answers: CC BY-SA 4.0
Answers: 2023-08-23T23:28:44.150Z
Answers: 2023-08-23T23:50:21.660Z
Answers: 2023-08-23T23:50:21.660Z
Answers: QMaster
Body: <p>I checked the <code>Enable Kubernetes</code> in windows Docker Desktop and it keeps circling and showing <code>Kubernetes is starting...</code></p>
  <p>I searched and couldn't find any proper answer. Some advises are about deleting Docker Desktop and reinstalling it.</p>
  <p>I want to know any other solution Before pushing kill switch.</p>
  
Tags: <docker><kubernetes><windows>
Title: Windows 10 docker desktop keeps showing Kubernetes is starting
UserDisplayName: QMaster
ThreadText: # Windows 10 docker desktop keeps showing Kubernetes is starting
  
  (Asked by: username_0 on 2023-08-23)
  
  I checked the `Enable Kubernetes` in windows Docker Desktop and it keeps circling and showing `Kubernetes is starting...`
  
  I searched and couldn't find any proper answer. Some advises are about deleting Docker Desktop and reinstalling it.
  
  I want to know any other solution Before pushing kill switch.
  
  **Tags:** docker, kubernetes, windows
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-08-23. Score: 0
  
  I tried this and worked for me.
  
  First of all open a new PowerShell.
  We need to have Kubernetes server installed and running. So execute this command:
  
  > **kubectl version**
  
  I faced this line in the bottom of response:
  
  > **Unable to connect to the server: dial tcp 127.0.0.1:6443: connectex:**
  > **No connection could be made because the target machine actively**
  > **refused it.**
  
  If you got some similar response, it means Windows cannot resolve the internal domain which should be set in the `hosts` file. So do as the following instructions:
  
  1. Open the hidden path
  
  > **C:\Windows\System32\drivers\etc\hosts**
  
  `hosts` file has no extension. Open it with notepad or any text editor. Do it with **Adminisrator** privilege.
  
  2. insert this line in the opened hosts file:
  
  > **127.0.0.1 kubernetes.docker.internal**
  
  3. Save it.
  4. Run Docker Desktop again.
  
  And that's it.
  
  **For checking the Kubernetes installation success, follow below instructions:**
  
  Docker Desktop will not show Kubernetes as **installed** until all of the Kubernetes components are running. To see what is happening with its components open a new PowerShell to have the necessary environment variables set and run:
  
  Open PowerShell and run this command:
  
  > **kubectl get all -n kube-system**
  
  Check if the followings are true:
  
  ```
  1) all of the pods have “Running” status.
  2) deamonset.apps/kube-proxy has “1” in the “Ready” column
  3) deployment.apps/coredns has “2/2” in the “Ready” column
  4) replicaset.apps/coredns-HASH has “2” in the “Ready” column
  
  ```
  
  If any of the above statements are not true, use `kubectl describe -n kube-system OBJECTNAME` for more details.
  For example:
  
  > **kubectl describe -n kube-system pod/coredns-558bd4d5db-99qxd**
  
  You could be found more in this complete [**discussion**](https://forums.docker.com/t/unable-to-install-kubernetes-stuck-on-starting-state/117048).
  
  I am still eager for new answer and discussions.
  
  
  ---
  
  