Created
August 13, 2017 04:17
-
-
Save davistran86/6208edc3e2f793572d323d9b5b446aa3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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