Skip to content

Instantly share code, notes, and snippets.

@davistran86
Created August 13, 2017 04:17
Show Gist options
  • Save davistran86/6208edc3e2f793572d323d9b5b446aa3 to your computer and use it in GitHub Desktop.
Save davistran86/6208edc3e2f793572d323d9b5b446aa3 to your computer and use it in GitHub Desktop.
docker run \
-d \
--rm \
-p 2379:2379 \
-p 2380:2380 \
--name etcd-v3.2 \
--volume=/tmp/etcd-data:/etcd-data \
gcr.io/etcd-development/etcd:latest \
/usr/local/bin/etcd \
--name my-etcd-1 \
--data-dir /etcd-data \
--listen-client-urls http://0.0.0.0:2379 \
--listen-peer-urls http://0.0.0.0:2380 \
--initial-advertise-peer-urls http://k8s-master:2380 \
--initial-cluster my-etcd-1=http://k8s-master:2380 \
--advertise-client-urls http://0.0.0.0:2379 \
--initial-cluster-token my-etcd-token \
--initial-cluster-state new \
--auto-compaction-retention 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment