-
Notifications
You must be signed in to change notification settings - Fork 10
Author script to enable powershell remote for Windows Node #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Author script to enable powershell remote for Windows Node #4
Conversation
|
Thanks for the contributions @bobsira. Let me know when this PR is ready for review. |
…ne is not available fix
add auto-unattend iso file
…github.com/bobsira/MinikubeWindowsContainers into user/bosira/remote-powershell-script
automation/Remote.psm1
Outdated
| param ( | ||
| [String] | ||
| [ValidateNotNullOrEmpty()] | ||
| $SwitchName = 'External VM Switch' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why external switch? Are there any issues with using internal switch?
b188f74 to
8398aef
Compare
|
@bobsira @vrapolinario Any plans to merge this? |
We've implemented this work in minikube and just waiting for our work to be merged and released -> bobsira/minikube#4 |
This pull request introduces several significant changes aimed at enhancing automation scripts for setting up and managing Minikube clusters with Windows nodes. Key updates include the addition of new PowerShell modules for managing tools like
Containerd,NSSM, and Minikube, as well as improvements to the setup and run scripts for better orchestration of virtual machines and Kubernetes components.Enhancements to Automation Scripts:
New PowerShell Modules:
automation/ContainerdTools.psm1: Introduced functions to manageContainerd, including installation, initialization, service management, and uninstallation. These functions streamline the setup ofContainerdfor Kubernetes clusters.automation/NSSMTools.psm1: Added a function to installNSSM(Non-Sucking Service Manager), ensuring it is available for managing services on Windows nodes.automation/MinikubeTools.psm1: Added functions to handle Minikube-specific tasks, such as generating Kubernetes join commands, managing folder errors, and updating the hosts file.Setup and Configuration Improvements:
automation/SetUp.ps1: Enhanced the setup script to automate the creation and configuration of a virtual machine, including starting the VM, waiting for readiness, and verifying the installation of Windows. It also integrates theRun.ps1script for further configuration.automation/Run.ps1: Added a comprehensive orchestration script to set up a Minikube cluster, configure Flannel CNI, prepare Linux and Windows nodes, and join the Windows node to the Kubernetes cluster. It also applies necessary configurations for Flannel and kube-proxy on the Windows node.Documentation Update:
README.md: Updated the instructions for retrieving the Minikube master node IP address, replacingminikube node listwithminikube ipfor accuracy.This pull request introduces significant enhancements to the automation scripts for setting up and managing a Kubernetes cluster with Minikube on Windows. The changes include new PowerShell modules for managingcontainerd,NSSM, and Minikube, as well as updates to the setup and execution scripts to streamline the cluster creation and configuration process. Additionally, the documentation has been updated to correct a command.Documentation Update:
README.mdto replace the outdatedminikube node listcommand with the correctminikube ipcommand for retrieving the master node's IP address.New PowerShell Modules:
automation/ContainerdTools.psm1):containerd, including installation, service initialization, configuration, and uninstallation.automation/MinikubeTools.psm1):automation/NSSMTools.psm1):Automation Enhancements:
automation/Run.ps1):containerd, configuring Flannel CNI, and joining Windows nodes to the cluster.automation/SetUp.ps1):Run.ps1script to configure the Kubernetes cluster.To test this PR you require a windows VM running Windows Server 2022. I've shared a quick guide to setup such a VM at the last bit.Here's how you test this work:
Replace
'YourISOFilePath', with the actual values.There is an optional parameter, $KubernetesVersion which you can pass or the latest Kubernetes version will be used for your configuration
You should expect the following output
Clean Up Steps