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
98edbf41
Commit
98edbf41
authored
Feb 25, 2019
by
Michael Taufen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload Windows startup scripts to GCS for CI
parent
1eb2acca
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
75 additions
and
0 deletions
+75
-0
BUILD.root
build/root/BUILD.root
+2
-0
BUILD
cluster/gce/BUILD
+1
-0
BUILD
cluster/gce/windows/BUILD
+35
-0
README-GCE-Windows-kube-up.md
cluster/gce/windows/README-GCE-Windows-kube-up.md
+7
-0
common.psm1
cluster/gce/windows/common.psm1
+6
-0
configure.ps1
cluster/gce/windows/configure.ps1
+6
-0
k8s-node-setup.psm1
cluster/gce/windows/k8s-node-setup.psm1
+6
-0
install-ssh.psm1
cluster/gce/windows/testonly/install-ssh.psm1
+6
-0
user-profile.psm1
cluster/gce/windows/testonly/user-profile.psm1
+6
-0
No files found.
build/root/BUILD.root
View file @
98edbf41
...
...
@@ -38,6 +38,7 @@ gcs_upload(
":_binary-artifacts-and-hashes",
"//build/release-tars:release-tars-and-hashes",
"//cluster/gce/gci:gcs-release-artifacts-and-hashes",
"//cluster/gce/windows:gcs-release-artifacts-and-hashes",
],
tags = ["manual"],
# Use for_platforms to format the upload path based on the configured
...
...
@@ -53,6 +54,7 @@ gcs_upload(
upload_paths = select(for_platforms(for_all = {
"//build/release-tars:release-tars-and-hashes": "",
"//cluster/gce/gci:gcs-release-artifacts-and-hashes": "extra/gce",
"//cluster/gce/windows:gcs-release-artifacts-and-hashes": "extra/gce/windows",
"//:_binary-artifacts-and-hashes": "bin/{OS}/{ARCH}",
})),
)
...
...
cluster/gce/BUILD
View file @
98edbf41
...
...
@@ -17,6 +17,7 @@ filegroup(
"//cluster/gce/addons:all-srcs",
"//cluster/gce/gci:all-srcs",
"//cluster/gce/manifests:all-srcs",
"//cluster/gce/windows:all-srcs",
],
tags = ["automanaged"],
)
cluster/gce/windows/BUILD
0 → 100644
View file @
98edbf41
load("@io_k8s_repo_infra//defs:build.bzl", "release_filegroup")
# Having the Windows code from the GCE cluster deploy hosted with the release is
# useful for GKE. This list should match the list in k8s.io/release/lib/releaselib.sh.
# IMPORTANT PLEASE NOTE:
# Any time the file structure in the `windows` directory changes, `windows/BUILD`
# and `k8s.io/release/lib/releaselib.sh` must be manually updated with the changes.
# We HIGHLY recommend not changing the file structure, because consumers of
# Kubernetes releases depend on the release structure remaining stable.
release_filegroup(
name = "gcs-release-artifacts",
srcs = [
"common.psm1",
"configure.ps1",
"k8s-node-setup.psm1",
"testonly/install-ssh.psm1",
"testonly/user-profile.psm1",
],
visibility = ["//visibility:public"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)
cluster/gce/windows/README-GCE-Windows-kube-up.md
View file @
98edbf41
# Starting a Windows Kubernetes cluster on GCE using kube-up
## IMPORTANT PLEASE NOTE!
Any time the file structure in the
`windows`
directory changes,
`windows/BUILD`
and
`k8s.io/release/lib/releaselib.sh`
must be manually updated with the changes.
We HIGHLY recommend not changing the file structure, because consumers of
Kubernetes releases depend on the release structure remaining stable.
## Bring up the cluster
Prerequisites: a Google Cloud Platform project.
...
...
@@ -185,3 +191,4 @@ These steps are based on
user@kubernetes-minion-windows-group-mk0p:C:\\etc\\kubernetes\\logs \
kubetest-logs/
```
cluster/gce/windows/common.psm1
View file @
98edbf41
...
...
@@ -18,6 +18,12 @@
and scripts for configuring Windows nodes.
#>
# IMPORTANT PLEASE NOTE:
# Any time the file structure in the `windows` directory changes, `windows/BUILD`
# and `k8s.io/release/lib/releaselib.sh` must be manually updated with the changes.
# We HIGHLY recommend not changing the file structure, because consumers of
# Kubernetes releases depend on the release structure remaining stable.
# Disable progress bar to increase download speed.
$ProgressPreference
=
'SilentlyContinue'
...
...
cluster/gce/windows/configure.ps1
View file @
98edbf41
...
...
@@ -17,6 +17,12 @@
Top-level script that runs on Windows nodes to join them to the K8s cluster.
#>
# IMPORTANT PLEASE NOTE:
# Any time the file structure in the `windows` directory changes, `windows/BUILD`
# and `k8s.io/release/lib/releaselib.sh` must be manually updated with the changes.
# We HIGHLY recommend not changing the file structure, because consumers of
# Kubernetes releases depend on the release structure remaining stable.
$ErrorActionPreference
=
'Stop'
# Turn on tracing to debug
...
...
cluster/gce/windows/k8s-node-setup.psm1
View file @
98edbf41
...
...
@@ -36,6 +36,12 @@
# Execute functions manually or run configure.ps1.
#>
# IMPORTANT PLEASE NOTE:
# Any time the file structure in the `windows` directory changes, `windows/BUILD`
# and `k8s.io/release/lib/releaselib.sh` must be manually updated with the changes.
# We HIGHLY recommend not changing the file structure, because consumers of
# Kubernetes releases depend on the release structure remaining stable.
# TODO: update scripts for these style guidelines:
# - Remove {} around variable references unless actually needed for clarity.
# - Always use single-quoted strings unless actually interpolating variables
...
...
cluster/gce/windows/testonly/install-ssh.psm1
View file @
98edbf41
...
...
@@ -22,6 +22,12 @@
clusters. DO NOT USE THIS MODULE FOR PRODUCTION.
#>
# IMPORTANT PLEASE NOTE:
# Any time the file structure in the `windows` directory changes, `windows/BUILD`
# and `k8s.io/release/lib/releaselib.sh` must be manually updated with the changes.
# We HIGHLY recommend not changing the file structure, because consumers of
# Kubernetes releases depend on the release structure remaining stable.
Import-Module -Force C:\common.psm1
$OPENSSH_ROOT
=
'C:\Program Files\OpenSSH'
...
...
cluster/gce/windows/testonly/user-profile.psm1
View file @
98edbf41
...
...
@@ -19,6 +19,12 @@
powershellposse.com
#>
# IMPORTANT PLEASE NOTE:
# Any time the file structure in the `windows` directory changes, `windows/BUILD`
# and `k8s.io/release/lib/releaselib.sh` must be manually updated with the changes.
# We HIGHLY recommend not changing the file structure, because consumers of
# Kubernetes releases depend on the release structure remaining stable.
#Function to create the new local user first
function
New-LocalUser
...
...
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