Skip to content

Commit

Permalink
Merge pull request kubernetes#78661 from yujuhong/win-readme
Browse files Browse the repository at this point in the history
Update README for GCE/Windows
  • Loading branch information
k8s-ci-robot authored Jun 4, 2019
2 parents e0ae550 + 4a7be38 commit 5f6cd47
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions cluster/gce/windows/README-GCE-Windows-kube-up.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,18 @@ export CLOUDSDK_CORE_PROJECT=<your_project_name>

### 1. Build Kubernetes

NOTE: this step is only needed if you want to test local changes you made to
the codebase.

The most straightforward approach to build those binaries is to run `make
release`. However, that builds binaries for all supported platforms, and can be
slow. You can speed up the process by following the instructions below to only
build the necessary binaries.

```
# Apply https://github.com/pjh/kubernetes/pull/43 to your tree:
# Apply https://github.com/yujuhong/kubernetes/commit/27e608a050a997be5ab736a7cdeb29aa68f3b7ee to your tree:
curl \
https://patch-diff.githubusercontent.com/raw/pjh/kubernetes/pull/43.patch | \
https://github.com/yujuhong/kubernetes/commit/27e608a050a997be5ab736a7cdeb29aa68f3b7ee.patch | \
git apply
# Build binaries for both Linux and Windows:
Expand All @@ -62,6 +65,7 @@ plane only runs on Linux.
export NUM_NODES=2 # number of Linux nodes
export NUM_WINDOWS_NODES=2
export KUBE_GCE_ENABLE_IP_ALIASES=true
export KUBERNETES_NODE_PLATFORM=windows
export LOGGING_STACKDRIVER_RESOURCE_TYPES=new
```

Expand All @@ -84,10 +88,20 @@ PROJECT=${CLOUDSDK_CORE_PROJECT} KUBERNETES_SKIP_CONFIRM=y ./cluster/kube-down.s

#### 2b. Create a Kubernetes end-to-end (E2E) test cluster

If you have built your own release binaries following step 1, run the following
command:
```
PROJECT=${CLOUDSDK_CORE_PROJECT} go run ./hack/e2e.go -- --up
```

Otherwise, you can specify what branch from which to get the release artifacts:
```
# Get the latest build from the stable1 branch
PROJECT=${CLOUDSDK_CORE_PROJECT} go run ./hack/e2e.go -- --up --extract=ci/k8s-stable1
# Or Get the latest build from master
PROJECT=${CLOUDSDK_CORE_PROJECT} go run ./hack/e2e.go -- --up --extract=ci-cross/latest
```

This command, by default, tears down any existing E2E cluster and creates a new
one. To teardown the cluster run the same command with `--down` instead of
`--up`.
Expand Down

0 comments on commit 5f6cd47

Please sign in to comment.