Skip to content

Commit

Permalink
Using the etcd that comes in hyperkube
Browse files Browse the repository at this point in the history
  • Loading branch information
ahakanbaba committed Dec 7, 2016
1 parent c33323d commit f2e249b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
8 changes: 0 additions & 8 deletions kube-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@ else
fi


echo "Starting etcd"
docker run \
--name=etcd \
--net=host \
-d \
gcr.io/google_containers/etcd:2.2.1 \
/usr/local/bin/etcd --listen-client-urls=http://127.0.0.1:4001 --advertise-client-urls=http://127.0.0.1:4001 >/dev/null 2>&1

echo "Starting kubelet"
docker run \
--name=kubelet \
Expand Down
33 changes: 33 additions & 0 deletions manifests-multi/etcd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {"name":"k8s-etcd","namespace":"kube-system"},
"spec": {
"hostNetwork": true,
"containers": [
{
"name": "etcd",
"image": "gcr.io/google_containers/etcd-amd64:2.2.5",
"command": [
"/usr/local/bin/etcd",
"--listen-client-urls=http://127.0.0.1:4001",
"--advertise-client-urls=http://127.0.0.1:4001",
"--data-dir=/var/etcd/data"
],
"volumeMounts": [
{
"name": "varetcd",
"mountPath": "/var/etcd",
"readOnly": false
}
]
}
],
"volumes":[
{
"name": "varetcd",
"emptyDir": {}
}
]
}
}

0 comments on commit f2e249b

Please sign in to comment.