Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
18a2a98d
Commit
18a2a98d
authored
Feb 28, 2019
by
Peter Hornyack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dump Windows version information during cluster bringup.
parent
43556be5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
configure.ps1
cluster/gce/windows/configure.ps1
+1
-0
k8s-node-setup.psm1
cluster/gce/windows/k8s-node-setup.psm1
+13
-0
No files found.
cluster/gce/windows/configure.ps1
View file @
18a2a98d
...
@@ -91,6 +91,7 @@ try {
...
@@ -91,6 +91,7 @@ try {
# then put these calls into a loop over a list of XYZ-psm1 keys.
# then put these calls into a loop over a list of XYZ-psm1 keys.
FetchAndImport-ModuleFromMetadata
'k8s-node-setup-psm1'
'k8s-node-setup.psm1'
FetchAndImport-ModuleFromMetadata
'k8s-node-setup-psm1'
'k8s-node-setup.psm1'
Dump-DebugInfoToConsole
Set
-PrerequisiteOptions
Set
-PrerequisiteOptions
$kube_env
=
Fetch-KubeEnv
$kube_env
=
Fetch-KubeEnv
Disable-WindowsDefender
Disable-WindowsDefender
...
...
cluster/gce/windows/k8s-node-setup.psm1
View file @
18a2a98d
...
@@ -128,6 +128,19 @@ function Add_GceMetadataServerRoute {
...
@@ -128,6 +128,19 @@ function Add_GceMetadataServerRoute {
}
}
}
}
# Writes debugging information, such as Windows version and patch info, to the
# console.
function
Dump-DebugInfoToConsole
{
Try
{
$version
=
"
$(
[
System.Environment]::OSVersion.Version |
Out-String
)
"
$hotfixes
=
"
$(
Get-Hotfix
|
Out-String
)
"
$image
=
"
$(
Get-InstanceMetadata
'image'
|
Out-String
)
"
Log-Output
"Windows version:
`n
$version
"
Log-Output
"Installed hotfixes:
`n
$hotfixes
"
Log-Output
"GCE Windows image:
`n
$image
"
}
Catch
{
}
}
# Fetches the kube-env from the instance metadata.
# Fetches the kube-env from the instance metadata.
#
#
# Returns: a PowerShell Hashtable object containing the key-value pairs from
# Returns: a PowerShell Hashtable object containing the key-value pairs from
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment