Skip to content

Commit 8d34231

Browse files
committedNov 2, 2014
Fix a bunch of places where the -machines flag was still attached to the apiserver.
1 parent bbb66af commit 8d34231

File tree

17 files changed

+36
-27
lines changed

17 files changed

+36
-27
lines changed
 

‎build/run-images/apiserver/run.sh

+1-5
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,4 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
# If the user doesn't specify a minion, assume we are running in a single node
18-
# configuration and that we have a local minion.
19-
KUBE_MINIONS="${KUBE_MINIONS:-$(hostname -f)}"
20-
21-
./apiserver -address=0.0.0.0 -etcd_servers="${ETCD_SERVERS}" --machines="${KUBE_MINIONS}"
17+
./apiserver -address=0.0.0.0 -etcd_servers="${ETCD_SERVERS}"

‎build/run-images/bootstrap/run.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ containers:
3939
hostPort: 8080
4040
containerPort: 8080
4141
protocol: TCP
42-
command: ["/kubernetes/apiserver", "-v=5", "-address=0.0.0.0", "-etcd_servers=http://127.0.0.1:4001", "-machines=${KUBELET_IP}"]
42+
command: ["/kubernetes/apiserver", "-v=5", "-address=0.0.0.0", "-etcd_servers=http://127.0.0.1:4001"]
4343
- name: controller-manager
4444
image: kubernetes
4545
imagePullPolicy: never
46-
command: ["/kubernetes/controller-manager", "-v=5", "-master=127.0.0.1:8080"]
46+
command: ["/kubernetes/controller-manager", "-v=5", "-master=127.0.0.1:8080", "-machines=${KUBELET_IP}"]
4747
- name: proxy
4848
image: kubernetes
4949
imagePullPolicy: never

‎build/run-images/controller-manager/run.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
./controller-manager -master="${API_SERVER}"
17+
# If the user doesn't specify a minion, assume we are running in a single node
18+
# configuration and that we have a local minion.
19+
KUBE_MINIONS="${KUBE_MINIONS:-$(hostname -f)}"
20+
21+
./controller-manager -master="${API_SERVER}" --machines="${KUBE_MINIONS}"

‎cluster/rackspace/cloud-config/master-cloud-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ coreos:
7777
[Service]
7878
EnvironmentFile=-/run/apiserver/minions.env
7979
ExecStartPre=/usr/bin/ln -sf /opt/kubernetes/server/bin/apiserver /opt/bin/apiserver
80-
ExecStart=/opt/bin/apiserver --address=127.0.0.1 --port=8080 --machines=${MINIONS} --etcd_servers=http://127.0.0.1:4001 --portal_net=PORTAL_NET --logtostderr=true
80+
ExecStart=/opt/bin/apiserver --address=127.0.0.1 --port=8080 --etcd_servers=http://127.0.0.1:4001 --portal_net=PORTAL_NET --logtostderr=true
8181
Restart=always
8282
RestartSec=2
8383
- name: master-apiserver-sighup.path
@@ -116,7 +116,7 @@ coreos:
116116
Requires=master-apiserver.service
117117
[Service]
118118
ExecStartPre=/usr/bin/ln -sf /opt/kubernetes/server/bin/controller-manager /opt/bin/controller-manager
119-
ExecStart=/opt/bin/controller-manager --master=127.0.0.1:8080 --logtostderr=true
119+
ExecStart=/opt/bin/controller-manager --master=127.0.0.1:8080 --machines=${MINIONS} --logtostderr=true
120120
Restart=always
121121
RestartSec=2
122122
- name: master-scheduler.service

‎contrib/init/systemd/environ/apiserver

-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ KUBE_API_PORT="--port=8080"
1313
# How the replication controller and scheduler find the apiserver
1414
KUBE_MASTER="--master=127.0.0.1:8080"
1515

16-
# Comma seperated list of minions
17-
KUBELET_ADDRESSES="--machines=127.0.0.1"
18-
1916
# Port minions listen on
2017
KUBELET_PORT="--kubelet_port=10250"
2118

‎contrib/init/systemd/environ/controller-manager

+3
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33

44
# defaults from config and apiserver should be adequate
55

6+
# Comma seperated list of minions
7+
KUBELET_ADDRESSES="--machines=127.0.0.1"
8+
69
# Add you own!
710
KUBE_CONTROLLER_MANAGER_ARGS=""

‎contrib/init/systemd/kube-apiserver.service

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ ExecStart=/usr/bin/kube-apiserver \
1212
${KUBE_ETCD_SERVERS} \
1313
${KUBE_API_ADDRESS} \
1414
${KUBE_API_PORT} \
15-
${KUBELET_ADDRESSES} \
1615
${KUBELET_PORT} \
1716
${KUBE_ALLOW_PRIV} \
1817
${KUBE_SERVICE_ADDRESSES} \

‎contrib/init/systemd/kube-controller-manager.service

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ User=kube
1010
ExecStart=/usr/bin/kube-controller-manager \
1111
${KUBE_LOGTOSTDERR} \
1212
${KUBE_LOG_LEVEL} \
13+
${KUBELET_ADDRESSES} \
1314
${KUBE_MASTER} \
1415
${KUBE_CONTROLLER_MANAGER_ARGS}
1516
Restart=on-failure

‎docs/getting-started-guides/coreos/configs/master.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ coreos:
119119
--address=127.0.0.1 \
120120
--port=8080 \
121121
--etcd_servers=http://127.0.0.1:4001 \
122-
--machines=192.168.12.10,192.168.12.11,192.168.12.12 \
123122
--logtostderr=true
124123
Restart=always
125124
RestartSec=10
@@ -161,6 +160,7 @@ coreos:
161160
[Service]
162161
ExecStart=/opt/bin/controller-manager \
163162
--master=127.0.0.1:8080 \
163+
--machines=192.168.12.10,192.168.12.11,192.168.12.12 \
164164
--logtostderr=true
165165
Restart=always
166166
RestartSec=10

‎docs/getting-started-guides/coreos/configs/standalone.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ coreos:
4848
--address=127.0.0.1 \
4949
--port=8080 \
5050
--etcd_servers=http://127.0.0.1:4001 \
51-
--machines=127.0.0.1 \
5251
--logtostderr=true
5352
Restart=on-failure
5453
RestartSec=1
@@ -86,6 +85,7 @@ coreos:
8685
[Service]
8786
ExecStart=/opt/bin/controller-manager \
8887
--master=127.0.0.1:8080 \
88+
--machines=127.0.0.1 \
8989
--logtostderr=true
9090
Restart=on-failure
9191
RestartSec=1

‎docs/getting-started-guides/coreos/units/apiserver.service

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ ExecStart=/opt/bin/apiserver \
88
--address=127.0.0.1 \
99
--port=8080 \
1010
--etcd_servers=http://127.0.0.1:4001 \
11-
--machines=127.0.0.1 \
1211
--portal_net=10.0.0.0/24 \
1312
--logtostderr=true
1413
Restart=on-failure

‎docs/getting-started-guides/coreos/units/controller-manager.service

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Documentation=https://github.com/GoogleCloudPlatform/kubernetes
66
[Service]
77
ExecStart=/opt/bin/controller-manager \
88
--master=127.0.0.1:8080 \
9+
--machines=127.0.0.1 \
910
--etcd_servers=http://127.0.0.1:4001 \
1011
--logtostderr=true
1112
Restart=on-failure

‎docs/getting-started-guides/fedora/fedora_manual_config.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ KUBE_API_PORT="--port=8080"
102102
# How the replication controller and scheduler find the apiserver
103103
KUBE_MASTER="--master=fed-master:8080"
104104
105-
# Comma seperated list of minions
106-
KUBELET_ADDRESSES="--machines=fed-minion"
107-
108105
# Port minions listen on
109106
KUBELET_PORT="--kubelet_port=10250"
110107
@@ -115,6 +112,18 @@ KUBE_SERVICE_ADDRESSES="--portal_net=10.254.0.0/16"
115112
KUBE_API_ARGS=""
116113
```
117114

115+
* Edit /etc/kubernetes/controller-manager to appear as such:
116+
```
117+
###
118+
# kubernetes system config
119+
#
120+
# The following values are used to configure the kubernetes-controller-manager
121+
#
122+
123+
# Comma seperated list of minions
124+
KUBELET_ADDRESSES="--machines=fed-minion"
125+
```
126+
118127
* Start the appropriate services on master:
119128

120129
```

‎docs/man/kube-apiserver.1.md

-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ The the kube-apiserver several options.
5353
**-logtostderr**=
5454
log to standard error instead of files. Default is false.
5555

56-
**-machines**=[]
57-
List of machines to schedule onto, comma separated.
58-
5956
**-minion_cache_ttl**=30s
6057
Duration of time to cache minion information. Default 30 seconds.
6158

‎docs/man/kube-controller-manager.1.md

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ The kube-controller-manager has several options.
4444
**-logtostderr**=false
4545
log to standard error instead of files.
4646

47+
**-machines**=[]
48+
List of machines to schedule onto, comma separated.
49+
4750
**-master**=""
4851
The address of the Kubernetes API server.
4952

‎docs/man/man1/kube-apiserver.1

-4
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ The the kube\-apiserver several options.
6969
\fB\-logtostderr\fP=
7070
log to standard error instead of files. Default is false.
7171

72-
.PP
73-
\fB\-machines\fP=[]
74-
List of machines to schedule onto, comma separated.
75-
7672
.PP
7773
\fB\-minion\_cache\_ttl\fP=30s
7874
Duration of time to cache minion information. Default 30 seconds.

‎docs/man/man1/kube-controller-manager.1

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ The kube\-controller\-manager has several options.
5656
\fB\-logtostderr\fP=false
5757
log to standard error instead of files.
5858

59+
.PP
60+
\fB\-machines\fP=[]
61+
List of machines to schedule onto, comma separated.
62+
5963
.PP
6064
\fB\-master\fP=""
6165
The address of the Kubernetes API server.

0 commit comments

Comments
 (0)