"microk8s install" fails on Windows 10 version 2004
See original GitHub issue“microk8s install” fails on Windows 10 with the following message:
An error occurred when trying to execute 'sudo ping -c 1 snapcraft.io' with 'multipass': returned exit code 1.
But, can install microk8s within microk8s-vm manually.
C:\>ver
Microsoft Windows [Version 10.0.19041.329]
C:\>multipass --version
multipass 1.3.0+win
multipassd 1.3.0+win
C:\>multipass list
No instances found.
C:\>microk8s install
One quick question before we launch … Would you like to help
the Multipass developers, by sending anonymous usage data?
This includes your operating system, which images you use,
the number of instances, their properties and how long you use them.
We’d also like to measure Multipass’s speed.
Launched: microk8s-vm
An error occurred when trying to execute 'sudo ping -c 1 snapcraft.io' with 'multipass': returned exit code 1.
C:\>multipass shell microk8s-vm
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-109-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Thu Jul 2 22:45:31 JST 2020
System load: 0.23 Processes: 107
Usage of /: 2.0% of 48.29GB Users logged in: 0
Memory usage: 83% IP address for eth0: 172.18.244.15
Swap usage: 0%
0 packages can be updated.
0 updates are security updates.
ubuntu@microk8s-vm:~$ sudo ping -c 1 snapcraft.io
PING snapcraft.io (91.189.91.44) 56(84) bytes of data.
--- snapcraft.io ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
ubuntu@microk8s-vm:~$ snap list
No snaps are installed yet. Try 'snap install hello-world'.
ubuntu@microk8s-vm:~$ sudo snap install microk8s --classic --channel=1.18/stable
2020-07-02T22:49:39+09:00 INFO Waiting for restart...
microk8s (1.18/stable) v1.18.4 from Canonical✓ installed
I did microk8s inspect
, but I couldn’t found the tarball.
PS D:\Temp> microk8s inspect
Inspecting Certificates
Inspecting services
Service snap.microk8s.daemon-cluster-agent is running
Service snap.microk8s.daemon-flanneld is running
Service snap.microk8s.daemon-containerd is running
Service snap.microk8s.daemon-apiserver is running
Service snap.microk8s.daemon-apiserver-kicker is running
Service snap.microk8s.daemon-proxy is running
Service snap.microk8s.daemon-kubelet is running
Service snap.microk8s.daemon-scheduler is running
Service snap.microk8s.daemon-controller-manager is running
Service snap.microk8s.daemon-etcd is running
Copy service arguments to the final report tarball
Inspecting AppArmor configuration
Gathering system information
Copy processes list to the final report tarball
Copy snap list to the final report tarball
Copy VM name (or none) to the final report tarball
Copy disk usage information to the final report tarball
Copy memory usage information to the final report tarball
Copy server uptime to the final report tarball
Copy current linux distribution to the final report tarball
Copy openSSL information to the final report tarball
Copy network configuration to the final report tarball
Inspecting kubernetes cluster
Inspect kubernetes cluster
Building the report tarball
Report tarball is at /var/snap/microk8s/1496/inspection-report-20200702_230747.tar.gz
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
"microk8s install" fails on Windows 10 version 2004 #1379
"microk8s install" fails on Windows 10 with the following message: An error occurred when trying to execute 'sudo ping -c 1 snapcraft.io' with...
Read more >Installing MicroK8s on Windows 10/11
Download the MicroK8s Installer Download the latest installer here · Run the installer installer image · Configure MicroK8s configure image · Open a...
Read more >Install a local Kubernetes with MicroK8s - Ubuntu
Install a local Kubernetes with MicroK8s · Overview · Deploying MicroK8s · Enable addons · Accessing the Kubernetes dashboard · Host your first...
Read more >Install Kubernetes, kubectl on your development computer
OS: Windows 10 version 2004, Build 19041; WSL2 enabled. In order to install the distros as WSL2 by default, once WSL2 installed, ...
Read more >Bug #1881769 “Snap installation of microk8s fails when juju ...
I am trying to install microk8s after having installed juju latest/candidate. The installation fails with this error message: $ sudo snap ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try disabling Realtime protection on Windows Defender (in Windows 10 Options search for “Virus & Threat Protection” - under “Virus & Threat Protection Settings” click “Manage Settings”. Turn off Realtime Protection.).
Unless you run a Registry change the Realtime Protection setting is re-enabled when Windows is restarted. You should be able to install Microk8s successfully - Windows Defender does not appear to affect it once it is installed. For performance reasons I would not use the Microk8s embedded Kubectl - you are better off installing the native version (use Chocolatey Package Manager to install it if you need it: choco install kubernetes-cli ).
@mattscottuk Thank you for your suggestion. I’m going to try your solution when I get this issue again. Because I upgraded my machine to Windows 10 version 20H2 and not using the microk8s currently. So I will close this issue.