Author script to enable powershell remote for Windows Node#4
Open
bobsira wants to merge 55 commits intovrapolinario:mainfrom
Open
Author script to enable powershell remote for Windows Node#4bobsira wants to merge 55 commits intovrapolinario:mainfrom
bobsira wants to merge 55 commits intovrapolinario:mainfrom
Conversation
Owner
|
Thanks for the contributions @bobsira. Let me know when this PR is ready for review. |
…ne is not available fix
iankingori
reviewed
Feb 3, 2024
add auto-unattend iso file
…github.com/bobsira/MinikubeWindowsContainers into user/bosira/remote-powershell-script
mloskot
reviewed
Feb 12, 2024
automation/Remote.psm1
Outdated
| param ( | ||
| [String] | ||
| [ValidateNotNullOrEmpty()] | ||
| $SwitchName = 'External VM Switch' |
There was a problem hiding this comment.
Why external switch? Are there any issues with using internal switch?
mloskot
reviewed
Feb 12, 2024
billywr
approved these changes
Mar 20, 2024
b188f74 to
8398aef
Compare
|
@bobsira @vrapolinario Any plans to merge this? |
Contributor
Author
We've implemented this work in minikube and just waiting for our work to be merged and released -> bobsira/minikube#4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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