Skip to content

Commit dbc9dc2

Browse files
committed
upgraded to latest hyperkube (#770)
1 parent bd08d31 commit dbc9dc2

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

build/hyperkube.sh

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,14 @@
1717
# Learn more at https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md
1818

1919
# Version of kubernetes to use.
20-
K8S_VERSION="1.1.2"
20+
K8S_VERSION="v1.2.4"
2121
# Version heapster to use.
22-
HEAPSTER_VERSION="0.20.0-alpha9"
22+
HEAPSTER_VERSION="v1.0.2"
2323
# Port of the apiserver to serve on.
2424
PORT=8080
2525
# Port of the heapster to serve on.
2626
HEAPSTER_PORT=8082
2727

28-
docker run --net=host -d gcr.io/google_containers/etcd:2.0.12 \
29-
/usr/local/bin/etcd --addr=127.0.0.1:4001 --bind-addr=0.0.0.0:4001 --data-dir=/var/etcd/data
30-
31-
3228
docker run \
3329
--volume=/:/rootfs:ro \
3430
--volume=/sys:/sys:ro \
@@ -40,14 +36,16 @@ docker run \
4036
--pid=host \
4137
--privileged=true \
4238
-d \
43-
gcr.io/google_containers/hyperkube:v${K8S_VERSION} \
44-
/hyperkube kubelet --containerized --hostname-override="127.0.0.1" \
45-
--address="0.0.0.0" --api-servers=http://localhost:${PORT} \
46-
--config=/etc/kubernetes/manifests
47-
48-
docker run -d --net=host --privileged gcr.io/google_containers/hyperkube:v${K8S_VERSION} \
49-
/hyperkube proxy --master=http://127.0.0.1:${PORT} --v=2
39+
gcr.io/google_containers/hyperkube-amd64:${K8S_VERSION} \
40+
/hyperkube kubelet \
41+
--allow-privileged=true \
42+
--containerized \
43+
--hostname-override="127.0.0.1" \
44+
--address="0.0.0.0" \
45+
--api-servers=http://localhost:${PORT} \
46+
--config=/etc/kubernetes/manifests \
47+
--v=2
5048

5149
# Runs Heapster in standalone mode
52-
docker run --net=host -d gcr.io/google_containers/heapster:v${HEAPSTER_VERSION} -port ${HEAPSTER_PORT} \
50+
docker run --net=host -d gcr.io/google_containers/heapster:${HEAPSTER_VERSION} -port ${HEAPSTER_PORT} \
5351
--source=kubernetes:http://127.0.0.1:${PORT}?inClusterConfig=false&auth=""

0 commit comments

Comments
 (0)