Comments (3)
As of now Windows isn't supported as the init scripts are all written for bash. If you figure this out and make this work with Windows feel free to create a PR, that would be much appreciated :)
Does this script store state somewhere in a way that can affect subsequent runs?
Vagrant iteself stores state in a local .vagrant
folder. I suggest you delete this one and try again to spin it up
Make sure to wait till all nodes area actually ready before applying the k8s resources from init.yaml
.
from cka-example-environments.
My apologies, I appear to be having issues with Vagrant and VirtualBox on Windows. Your scripts are fine, sorry for implying otherwise.
The scripts I posted above are fine. It's the call to vagrant up --provider virtualbox
that always seems to fail at different steps. Either steps time out, fail to connect through SSH, packages fail to install, or otherwise. And 1 in 5 times the scripts work as intended. I am assuming it's just Vagrants low quality on Windows platforms, as I have yet to have 100% success with any Vagrant file. I'm going to try Vagrant on Ubuntu instead to see if my luck changes.
from cka-example-environments.
The scripts do work on Windows10 home edition 20H2 update with latest version of Vagrant (2.2.14) and VirtualBox (6.1), instead of installing GIT for Windows for running the "./up.sh" script, you may install RedHat CYGWIN64 to run "./up.sh".
Many kubernetes self-learners may be using Docker Desktop with built-in kubernetes engine enabled, i.e. single-node cluster.
For Windows 10 environment, I have found Docker Desktop and Vagrant-VirtualBox created k8s cluster are mutually exclusive.
If Docker Desktop is running, the "./up.sh' will fail at 'SSH auth method: private key' stage with the following message.
cluster1-master1: SSH auth method: private key
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.
The solution is to stop Docker Desktop, in Windows 10 start run Command Prompt as administrator and then reboot PC
bcdedit /set hypervisorlaunchtype off
This will fix the private key setup issue.
On the other hand, if Docker Desktop is to be run:
The solution is to stop VirtualBox VMs, in Windows 10 start run Command Prompt as administrator and then reboot PC
bcdedit /set hypervisorlaunchtype auto
from cka-example-environments.
Related Issues (6)
- "INITIALISING K8S RESOURCES" not working on mac HOT 2
- ubuntu server 20.04 run up.sh to setup k8s cluster lab error: Read-only file system
- Connection refused when using k8s.gcr.io/coredns:1.6.7 image
- linux can not up.sh error see
- [Suggestion] - Provide nginx config to solve question no.5 in multi-container issue exercise
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cka-example-environments.