Skip to content

Commit b88788b

Browse files
committed
update to use e2e-up.sh instead of kubetest
1 parent b4f5238 commit b88788b

File tree

1 file changed

+6
-29
lines changed

1 file changed

+6
-29
lines changed

cluster/gce/windows/README-GCE-Windows-kube-up.md

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@ make quick-release
5656

5757
### 2. Create a Kubernetes cluster
5858

59-
You can create a regular Kubernetes cluster or an end-to-end test cluster.
60-
End-to-end test clusters support running the Kubernetes e2e tests and enable
61-
some debugging features such as SSH access on the Windows nodes.
59+
You can create a regular Kubernetes cluster or an end-to-end test cluster.<br />
60+
Only end-to-end test clusters support running the Kubernetes e2e tests (as both [e2e cluster creation](https://github.com/kubernetes/kubernetes/blob/b632eaddbaad9dc1430d214d506b72750bbb9f69/hack/e2e-internal/e2e-up.sh#L24) and [e2e test scripts](https://github.com/kubernetes/kubernetes/blob/b632eaddbaad9dc1430d214d506b72750bbb9f69/hack/ginkgo-e2e.sh#L42) are setup based on `cluster/gce/config-test.sh`), also enables some debugging features such as SSH access on the Windows nodes.
6261

6362
Please make sure you set the environment variables properly following the
6463
instructions in the previous section.
@@ -96,38 +95,16 @@ PROJECT=${CLOUDSDK_CORE_PROJECT} KUBERNETES_SKIP_CONFIRM=y ./cluster/kube-down.s
9695
```
9796

9897
#### 2b. Create a Kubernetes end-to-end (E2E) test cluster
99-
100-
Install or update `kubetest` as follows:
101-
```
102-
go get -u k8s.io/test-infra/kubetest
103-
```
104-
* If you see the error below, it's due to `github.com/Azure/go-autorest` dependencies are incompatible between different versions of go modules:
105-
106-
```
107-
build k8s.io/test-infra/kubetest: cannot load github.com/Azure/go-autorest/autorest: ambiguous import: found github.com/Azure/go-autorest/autorest in multiple modules:
108-
github.com/Azure/go-autorest v11.1.2+incompatible (/usr/local/google/home/yluu/go/pkg/mod/github.com/!azure/[email protected]+incompatible/autorest)
109-
github.com/Azure/go-autorest/autorest v0.9.0 (/usr/local/google/home/yluu/go/pkg/mod/github.com/!azure/go-autorest/[email protected])
110-
```
111-
112-
Add `github.com/Azure/go-autorest v12.2.0+incompatible` into require block of `go.mod` and try again.
113-
11498
If you have built your own release binaries following step 1, run the following
11599
command:
116100
```
117-
PROJECT=${CLOUDSDK_CORE_PROJECT} $GOPATH/bin/kubetest --up
101+
PROJECT=${CLOUDSDK_CORE_PROJECT} ./hack/e2e-internal/e2e-up.sh
118102
```
119103

120-
Otherwise, you can specify what branch from which to get the release artifacts:
104+
If any e2e cluster exists already, this command will prompt you whether tears down and creates a new one. To teardown existing e2e cluster only, run the command:
105+
```
106+
PROJECT=${CLOUDSDK_CORE_PROJECT} ./hack/e2e-internal/e2e-down.sh
121107
```
122-
# Get the latest build from the stable1 branch
123-
PROJECT=${CLOUDSDK_CORE_PROJECT} $GOPATH/bin/kubetest --up --extract=ci/k8s-stable1
124-
# Or Get the latest build from master
125-
PROJECT=${CLOUDSDK_CORE_PROJECT} $GOPATH/bin/kubetest --up --extract=ci-cross/latest
126-
```
127-
128-
This command, by default, tears down any existing E2E cluster and creates a new
129-
one. To teardown the cluster run the same command with `--down` instead of
130-
`--up`.
131108

132109
No matter what type of cluster you chose to create, the result should be a
133110
Kubernetes cluster with one Linux master node, `NUM_NODES` Linux worker nodes

0 commit comments

Comments
 (0)