Previously we have seen how to to install OpenFaas on microk8s . Now let’s see how to do the same on a windows 10 installation.

I am assuming you followed documentation from openshift on how to install minishift on windows 10; in short: - download minishift.exe and add it somewhere to your %PATH%

  • install Hyper V, from admin powershell by running:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
  • after reboot, add a virtual switch for each network adapter you want to use: if you have a laptop and want to switch from ethernet to wifi, add both.

  • add yourself to the Hyper-V Administrator group by running this command from an admin powershell:

([adsi]"WinNT://./Hyper-V Administrators,group").Add("WinNT://$env:UserDomain/$env:Username,user")
  • logout, login

  • you can now permanently set which virtual switch minishift is using with:

    minishift config set hyperv-virtual-switch “External (Wireless)”
    

  • or set it up on the fly by launching minishift start with some optiions:

    minishift start –hyperv-virtual-switch “External (Wireless)”
    
    The name of the virtual switch is case sensitive.

  • Minishift is now starting, soon you should get some output like this:

    …
    OpenShift server started.
    The server is accessible via web console at:
       https://192.168.99.128:8443
    
    You are logged in as: User: developer Password: developer
    To login as administrator: oc login -u system:admin

  • You can access the web console and verify if the installation is successfull

  • add oc binary to your path by running

    minishift oc-env
    

  • Now it is time to install openfaas

    oc login -u system:admin
    
    oc adm new-project openfaas oc adm new-project openfaas-fn

…to be continued