17
17
# Learn more at https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md
18
18
19
19
# Version of kubernetes to use.
20
- K8S_VERSION=" 1.1.2 "
20
+ K8S_VERSION=" v1.2.4 "
21
21
# Version heapster to use.
22
- HEAPSTER_VERSION=" 0.20.0-alpha9 "
22
+ HEAPSTER_VERSION=" v1.0.2 "
23
23
# Port of the apiserver to serve on.
24
24
PORT=8080
25
25
# Port of the heapster to serve on.
26
26
HEAPSTER_PORT=8082
27
27
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
-
32
28
docker run \
33
29
--volume=/:/rootfs:ro \
34
30
--volume=/sys:/sys:ro \
@@ -40,14 +36,16 @@ docker run \
40
36
--pid=host \
41
37
--privileged=true \
42
38
-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
50
48
51
49
# 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} \
53
51
--source=kubernetes:http://127.0.0.1:${PORT} ? inClusterConfig=false& auth=" "
0 commit comments