Git Product home page Git Product logo

Comments (3)

wuestkamp avatar wuestkamp commented on July 16, 2024

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.

B45man avatar B45man commented on July 16, 2024

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.

garyttt avatar garyttt commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.