GithubHelp home page GithubHelp logo

rjmorse / kubernetes-windows-vagrant Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 6.0 40 KB

Provide a base for testing Kubernetes on Windows

License: MIT License

PowerShell 11.99% Ruby 37.62% Shell 50.40%

kubernetes-windows-vagrant's People

Contributors

rjmorse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

kubernetes-windows-vagrant's Issues

Windows service manager recommendation

Rather than this:

Start-Job -Name kubelet {c:\k\start-kubelet.ps1 -clusterCIDR $ClusterCIDR *> c:\k\kubelet-logs.txt}
Start-Job -Name kubeproxy {c:\k\start-kubeproxy.ps1 *> c:\k\kubeproxy-logs.txt}

I'd consider trying something like WinSS. It can ensure that the processes run and it can do the log serialization - it even does log rolling to ensure you don't use too much disk space. It does it all via folder/files structure for the directories it is managing services for.

Windows Image is not valid and cannot be downloaded

The path that is in the current Vagrantfile doesn't work:
IMAGE = "WindowsServer1709Docker"

I found this on vagrant cloud and am trying it now: symbols/windows_server_1709_docker

Here's the trail of the error:

    k-w-w1: Downloading: WindowsServer1709Docker
    k-w-w1:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Couldn't open file /C:/dev/kubernetes-windows-vagrant/vagrant-k8s-manual/WindowsServer1709Docker

Setup-Environment.ps1 - Network Switch Check Isn't Valid

This actually is not good for folks with Windows laptops using ics over wifi with hyper-v. I personally have an Internal network rigged up with DHCP that will give outbound Internet Access. It is an "internal network"

if((Get-VMSwitch -SwitchType External).Count -lt 1)

It's easy enough not to use this, but I did spend time trying to get an external network to work until I realized that it wasn't going to.

If nothing else, maybe a comment on the line to explain that this check isn't necessary.

SMB Username Password

You can specify username/password in Vagrantfile with the following syntax:

$smb_username = "smbuser"
$smb_password = "notarealpassword"

    subconfig.vm.synced_folder "../vagrant-synced/", "/vagrant", type: "smb",
        smb_password: $smb_password, smb_username: $smb_username

I tested this with both k-builder and k-m1. The windows host is downloading now, but I expect it to work there too.

Possible implementation:
setup-enviornment.ps1 can validate that you have an smbuser.yml (added to .gitignore) and that the user is a valid admin. Then the Vagrantfile can directly load the yaml in. Technique outlined here. It's not perfect, but it's better than it is now - specifically the prompts for user/password that if you type incorrectly fails the whole thing.

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.