Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
74e66269
Commit
74e66269
authored
Jul 22, 2016
by
Hongchao Deng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update etcd deprecated flag
- "-addr" => "--advertise-client-urls" - "-bind-addr" => "--listen-client-urls"
parent
e9e774cf
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
14 deletions
+14
-14
etcd-events.yaml
cluster/gce/coreos/kube-manifests/etcd-events.yaml
+2
-2
etcd.yaml
cluster/gce/coreos/kube-manifests/etcd.yaml
+2
-2
etcd.manifest
cluster/saltbase/salt/etcd/etcd.manifest
+1
-1
flannel-server.manifest
cluster/saltbase/salt/flannel-server/flannel-server.manifest
+1
-1
etcd.sh
hack/lib/etcd.sh
+2
-2
start-kubemark-master.sh
test/kubemark/start-kubemark-master.sh
+4
-4
start-kubemark.sh
test/kubemark/start-kubemark.sh
+2
-2
No files found.
cluster/gce/coreos/kube-manifests/etcd-events.yaml
View file @
74e66269
...
@@ -10,8 +10,8 @@ spec:
...
@@ -10,8 +10,8 @@ spec:
-
-c
-
-c
-
/usr/local/bin/etcd
-
/usr/local/bin/etcd
--listen-peer-urls=http://127.0.0.1:2381
--listen-peer-urls=http://127.0.0.1:2381
--ad
dr=
127.0.0.1:4002
--ad
vertise-client-urls=http://
127.0.0.1:4002
--
bind-addr=
127.0.0.1:4002
--
listen-client-urls=http://
127.0.0.1:4002
--data-dir=/var/etcd/data-events
--data-dir=/var/etcd/data-events
1>>/var/log/etcd-events.log 2>&1
1>>/var/log/etcd-events.log 2>&1
image
:
gcr.io/google_containers/etcd:2.2.1
image
:
gcr.io/google_containers/etcd:2.2.1
...
...
cluster/gce/coreos/kube-manifests/etcd.yaml
View file @
74e66269
...
@@ -10,8 +10,8 @@ spec:
...
@@ -10,8 +10,8 @@ spec:
-
-c
-
-c
-
/usr/local/bin/etcd
-
/usr/local/bin/etcd
--listen-peer-urls=http://127.0.0.1:2380
--listen-peer-urls=http://127.0.0.1:2380
--ad
dr=
127.0.0.1:4001
--ad
vertise-client-urls=http://
127.0.0.1:4001
--
bind-addr=
127.0.0.1:4001
--
listen-client-urls=http://
127.0.0.1:4001
--data-dir=/var/etcd/data
--data-dir=/var/etcd/data
1>>/var/log/etcd.log 2>&1
1>>/var/log/etcd.log 2>&1
image
:
gcr.io/google_containers/etcd:2.2.1
image
:
gcr.io/google_containers/etcd:2.2.1
...
...
cluster/saltbase/salt/etcd/etcd.manifest
View file @
74e66269
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"command": [
"command": [
"/bin/sh",
"/bin/sh",
"-c",
"-c",
"/usr/local/bin/etcd --listen-peer-urls http://127.0.0.1:{{ server_port }} --ad
dr 127.0.0.1:{{ port }} --bind-addr
127.0.0.1:{{ port }} --data-dir /var/etcd/data{{ suffix }} 1>>/var/log/etcd{{ suffix }}.log 2>&1"
"/usr/local/bin/etcd --listen-peer-urls http://127.0.0.1:{{ server_port }} --ad
vertise-client-urls http://127.0.0.1:{{ port }} --listen-client-urls http://
127.0.0.1:{{ port }} --data-dir /var/etcd/data{{ suffix }} 1>>/var/log/etcd{{ suffix }}.log 2>&1"
],
],
"livenessProbe": {
"livenessProbe": {
"httpGet": {
"httpGet": {
...
...
cluster/saltbase/salt/flannel-server/flannel-server.manifest
View file @
74e66269
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
"command": [
"command": [
"/bin/sh",
"/bin/sh",
"-c",
"-c",
"/usr/local/bin/etcd --listen-peer-urls http://127.0.0.1:{{ etcd_peer_port }} --ad
dr 127.0.0.1:{{ etcd_port }} --bind-addr
127.0.0.1:{{ etcd_port }} --data-dir /var/etcd-flannel/data 1>>/var/log/etcd_flannel.log 2>&1"
"/usr/local/bin/etcd --listen-peer-urls http://127.0.0.1:{{ etcd_peer_port }} --ad
vertise-client-urls http://127.0.0.1:{{ etcd_port }} --listen-client-urls http://
127.0.0.1:{{ etcd_port }} --data-dir /var/etcd-flannel/data 1>>/var/log/etcd_flannel.log 2>&1"
],
],
"livenessProbe": {
"livenessProbe": {
"httpGet": {
"httpGet": {
...
...
hack/lib/etcd.sh
View file @
74e66269
...
@@ -46,8 +46,8 @@ kube::etcd::start() {
...
@@ -46,8 +46,8 @@ kube::etcd::start() {
else
else
ETCD_LOGFILE
=
/dev/null
ETCD_LOGFILE
=
/dev/null
fi
fi
kube::log::info
"etcd -
addr
${
ETCD_HOST
}
:
${
ETCD_PORT
}
-data-dir
${
ETCD_DIR
}
--bind-addr
${
ETCD_HOST
}
:
${
ETCD_PORT
}
--debug >
\"
${
ETCD_LOGFILE
}
\"
2>/dev/null"
kube::log::info
"etcd -
-advertise-client-urls http://
${
ETCD_HOST
}
:
${
ETCD_PORT
}
--data-dir
${
ETCD_DIR
}
--listen-client-urls http://
${
ETCD_HOST
}
:
${
ETCD_PORT
}
--debug >
\"
${
ETCD_LOGFILE
}
\"
2>/dev/null"
etcd
-
addr
${
ETCD_HOST
}
:
${
ETCD_PORT
}
-data-dir
${
ETCD_DIR
}
--bind-addr
${
ETCD_HOST
}
:
${
ETCD_PORT
}
--debug
2>
"
${
ETCD_LOGFILE
}
"
>
/dev/null &
etcd
-
-advertise-client-urls
http://
${
ETCD_HOST
}
:
${
ETCD_PORT
}
--data-dir
${
ETCD_DIR
}
--listen-client-urls
http://
${
ETCD_HOST
}
:
${
ETCD_PORT
}
--debug
2>
"
${
ETCD_LOGFILE
}
"
>
/dev/null &
ETCD_PID
=
$!
ETCD_PID
=
$!
echo
"Waiting for etcd to come up."
echo
"Waiting for etcd to come up."
...
...
test/kubemark/start-kubemark-master.sh
View file @
74e66269
...
@@ -21,15 +21,15 @@ EVENT_STORE_URL="http://${EVENT_STORE_IP}:4002"
...
@@ -21,15 +21,15 @@ EVENT_STORE_URL="http://${EVENT_STORE_IP}:4002"
if
[
"
${
EVENT_STORE_IP
}
"
==
"127.0.0.1"
]
;
then
if
[
"
${
EVENT_STORE_IP
}
"
==
"127.0.0.1"
]
;
then
sudo
docker run
--net
=
host
-d
gcr.io/google_containers/etcd:2.2.1 /usr/local/bin/etcd
\
sudo
docker run
--net
=
host
-d
gcr.io/google_containers/etcd:2.2.1 /usr/local/bin/etcd
\
--listen-peer-urls
http://127.0.0.1:2381
\
--listen-peer-urls
http://127.0.0.1:2381
\
--ad
dr
=
127.0.0.1:4002
\
--ad
vertise-client-urls
=
http://
127.0.0.1:4002
\
--
bind-addr
=
0.0.0.0:4002
\
--
listen-client-urls
=
http://
0.0.0.0:4002
\
--data-dir
=
/var/etcd/data
--data-dir
=
/var/etcd/data
fi
fi
sudo
docker run
--net
=
host
-d
gcr.io/google_containers/etcd:2.2.1 /usr/local/bin/etcd
\
sudo
docker run
--net
=
host
-d
gcr.io/google_containers/etcd:2.2.1 /usr/local/bin/etcd
\
--listen-peer-urls
http://127.0.0.1:2380
\
--listen-peer-urls
http://127.0.0.1:2380
\
--ad
dr
=
127.0.0.1:4001
\
--ad
vertise-client-urls
=
http://
127.0.0.1:4001
\
--
bind-addr
=
0.0.0.0:4001
\
--
listen-client-urls
=
http://
0.0.0.0:4001
\
--data-dir
=
/var/etcd/data
--data-dir
=
/var/etcd/data
# Increase the allowed number of open file descriptors
# Increase the allowed number of open file descriptors
...
...
test/kubemark/start-kubemark.sh
View file @
74e66269
...
@@ -132,8 +132,8 @@ if [ "${SEPARATE_EVENT_MACHINE:-false}" == "true" ]; then
...
@@ -132,8 +132,8 @@ if [ "${SEPARATE_EVENT_MACHINE:-false}" == "true" ]; then
gcloud compute ssh
"
${
EVENT_STORE_NAME
}
"
--zone
=
"
${
ZONE
}
"
--project
=
"
${
PROJECT
}
"
\
gcloud compute ssh
"
${
EVENT_STORE_NAME
}
"
--zone
=
"
${
ZONE
}
"
--project
=
"
${
PROJECT
}
"
\
--command
=
"sudo docker run --net=host -d gcr.io/google_containers/etcd:2.0.12 /usr/local/bin/etcd
\
--command
=
"sudo docker run --net=host -d gcr.io/google_containers/etcd:2.0.12 /usr/local/bin/etcd
\
--listen-peer-urls http://127.0.0.1:2380
\
--listen-peer-urls http://127.0.0.1:2380
\
--ad
dr=
127.0.0.1:4002
\
--ad
vertise-client-urls=http://
127.0.0.1:4002
\
--
bind-addr=
0.0.0.0:4002
\
--
listen-client-urls=http://
0.0.0.0:4002
\
--data-dir=/var/etcd/data"
--data-dir=/var/etcd/data"
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment