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
290749b1
Commit
290749b1
authored
Nov 02, 2014
by
Deyuan Deng
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2118 from brendandburns/fix
Fix a bunch of places where the -machines flag was still attached to the apiserver
parents
bbb66af3
8d342313
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
36 additions
and
27 deletions
+36
-27
run.sh
build/run-images/apiserver/run.sh
+1
-5
run.sh
build/run-images/bootstrap/run.sh
+2
-2
run.sh
build/run-images/controller-manager/run.sh
+5
-1
master-cloud-config.yaml
cluster/rackspace/cloud-config/master-cloud-config.yaml
+2
-2
apiserver
contrib/init/systemd/environ/apiserver
+0
-3
controller-manager
contrib/init/systemd/environ/controller-manager
+3
-0
kube-apiserver.service
contrib/init/systemd/kube-apiserver.service
+0
-1
kube-controller-manager.service
contrib/init/systemd/kube-controller-manager.service
+1
-0
master.yml
docs/getting-started-guides/coreos/configs/master.yml
+1
-1
standalone.yml
docs/getting-started-guides/coreos/configs/standalone.yml
+1
-1
apiserver.service
docs/getting-started-guides/coreos/units/apiserver.service
+0
-1
controller-manager.service
...ng-started-guides/coreos/units/controller-manager.service
+1
-0
fedora_manual_config.md
docs/getting-started-guides/fedora/fedora_manual_config.md
+12
-3
kube-apiserver.1.md
docs/man/kube-apiserver.1.md
+0
-3
kube-controller-manager.1.md
docs/man/kube-controller-manager.1.md
+3
-0
kube-apiserver.1
docs/man/man1/kube-apiserver.1
+0
-4
kube-controller-manager.1
docs/man/man1/kube-controller-manager.1
+4
-0
No files found.
build/run-images/apiserver/run.sh
View file @
290749b1
...
...
@@ -14,8 +14,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# If the user doesn't specify a minion, assume we are running in a single node
# configuration and that we have a local minion.
KUBE_MINIONS
=
"
${
KUBE_MINIONS
:-$(
hostname
-f
)}
"
./apiserver
-address
=
0.0.0.0
-etcd_servers
=
"
${
ETCD_SERVERS
}
"
--machines
=
"
${
KUBE_MINIONS
}
"
./apiserver
-address
=
0.0.0.0
-etcd_servers
=
"
${
ETCD_SERVERS
}
"
build/run-images/bootstrap/run.sh
View file @
290749b1
...
...
@@ -39,11 +39,11 @@ containers:
hostPort: 8080
containerPort: 8080
protocol: TCP
command: ["/kubernetes/apiserver", "-v=5", "-address=0.0.0.0", "-etcd_servers=http://127.0.0.1:4001"
, "-machines=
${
KUBELET_IP
}
"
]
command: ["/kubernetes/apiserver", "-v=5", "-address=0.0.0.0", "-etcd_servers=http://127.0.0.1:4001"]
- name: controller-manager
image: kubernetes
imagePullPolicy: never
command: ["/kubernetes/controller-manager", "-v=5", "-master=127.0.0.1:8080"]
command: ["/kubernetes/controller-manager", "-v=5", "-master=127.0.0.1:8080"
, "-machines=
${
KUBELET_IP
}
"
]
- name: proxy
image: kubernetes
imagePullPolicy: never
...
...
build/run-images/controller-manager/run.sh
View file @
290749b1
...
...
@@ -14,4 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
./controller-manager
-master
=
"
${
API_SERVER
}
"
# If the user doesn't specify a minion, assume we are running in a single node
# configuration and that we have a local minion.
KUBE_MINIONS
=
"
${
KUBE_MINIONS
:-$(
hostname
-f
)}
"
./controller-manager
-master
=
"
${
API_SERVER
}
"
--machines
=
"
${
KUBE_MINIONS
}
"
cluster/rackspace/cloud-config/master-cloud-config.yaml
View file @
290749b1
...
...
@@ -77,7 +77,7 @@ coreos:
[Service]
EnvironmentFile=-/run/apiserver/minions.env
ExecStartPre=/usr/bin/ln -sf /opt/kubernetes/server/bin/apiserver /opt/bin/apiserver
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
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
Restart=always
RestartSec=2
-
name
:
master-apiserver-sighup.path
...
...
@@ -116,7 +116,7 @@ coreos:
Requires=master-apiserver.service
[Service]
ExecStartPre=/usr/bin/ln -sf /opt/kubernetes/server/bin/controller-manager /opt/bin/controller-manager
ExecStart=/opt/bin/controller-manager --master=127.0.0.1:8080 --logtostderr=true
ExecStart=/opt/bin/controller-manager --master=127.0.0.1:8080 --
machines=${MINIONS} --
logtostderr=true
Restart=always
RestartSec=2
-
name
:
master-scheduler.service
...
...
contrib/init/systemd/environ/apiserver
View file @
290749b1
...
...
@@ -13,9 +13,6 @@ KUBE_API_PORT="--port=8080"
# How the replication controller and scheduler find the apiserver
KUBE_MASTER="--master=127.0.0.1:8080"
# Comma seperated list of minions
KUBELET_ADDRESSES="--machines=127.0.0.1"
# Port minions listen on
KUBELET_PORT="--kubelet_port=10250"
...
...
contrib/init/systemd/environ/controller-manager
View file @
290749b1
...
...
@@ -3,5 +3,8 @@
# defaults from config and apiserver should be adequate
# Comma seperated list of minions
KUBELET_ADDRESSES="--machines=127.0.0.1"
# Add you own!
KUBE_CONTROLLER_MANAGER_ARGS=""
contrib/init/systemd/kube-apiserver.service
View file @
290749b1
...
...
@@ -12,7 +12,6 @@ ExecStart=/usr/bin/kube-apiserver \
${KUBE_ETCD_SERVERS} \
${KUBE_API_ADDRESS} \
${KUBE_API_PORT} \
${KUBELET_ADDRESSES} \
${KUBELET_PORT} \
${KUBE_ALLOW_PRIV} \
${KUBE_SERVICE_ADDRESSES} \
...
...
contrib/init/systemd/kube-controller-manager.service
View file @
290749b1
...
...
@@ -10,6 +10,7 @@ User=kube
ExecStart=/usr/bin/kube-controller-manager \
${KUBE_LOGTOSTDERR} \
${KUBE_LOG_LEVEL} \
${KUBELET_ADDRESSES} \
${KUBE_MASTER} \
${KUBE_CONTROLLER_MANAGER_ARGS}
Restart=on-failure
...
...
docs/getting-started-guides/coreos/configs/master.yml
View file @
290749b1
...
...
@@ -119,7 +119,6 @@ coreos:
--address=127.0.0.1 \
--port=8080 \
--etcd_servers=http://127.0.0.1:4001 \
--machines=192.168.12.10,192.168.12.11,192.168.12.12 \
--logtostderr=true
Restart=always
RestartSec=10
...
...
@@ -161,6 +160,7 @@ coreos:
[Service]
ExecStart=/opt/bin/controller-manager \
--master=127.0.0.1:8080 \
--machines=192.168.12.10,192.168.12.11,192.168.12.12 \
--logtostderr=true
Restart=always
RestartSec=10
...
...
docs/getting-started-guides/coreos/configs/standalone.yml
View file @
290749b1
...
...
@@ -48,7 +48,6 @@ coreos:
--address=127.0.0.1 \
--port=8080 \
--etcd_servers=http://127.0.0.1:4001 \
--machines=127.0.0.1 \
--logtostderr=true
Restart=on-failure
RestartSec=1
...
...
@@ -86,6 +85,7 @@ coreos:
[Service]
ExecStart=/opt/bin/controller-manager \
--master=127.0.0.1:8080 \
--machines=127.0.0.1 \
--logtostderr=true
Restart=on-failure
RestartSec=1
...
...
docs/getting-started-guides/coreos/units/apiserver.service
View file @
290749b1
...
...
@@ -8,7 +8,6 @@ ExecStart=/opt/bin/apiserver \
--address=127.0.0.1 \
--port=8080 \
--etcd_servers=http://127.0.0.1:4001 \
--machines=127.0.0.1 \
--portal_net=10.0.0.0/24 \
--logtostderr=true
Restart=on-failure
...
...
docs/getting-started-guides/coreos/units/controller-manager.service
View file @
290749b1
...
...
@@ -6,6 +6,7 @@ Documentation=https://github.com/GoogleCloudPlatform/kubernetes
[Service]
ExecStart=/opt/bin/controller-manager \
--master=127.0.0.1:8080 \
--machines=127.0.0.1 \
--etcd_servers=http://127.0.0.1:4001 \
--logtostderr=true
Restart=on-failure
...
...
docs/getting-started-guides/fedora/fedora_manual_config.md
View file @
290749b1
...
...
@@ -102,9 +102,6 @@ KUBE_API_PORT="--port=8080"
# How the replication controller and scheduler find the apiserver
KUBE_MASTER="--master=fed-master:8080"
# Comma seperated list of minions
KUBELET_ADDRESSES="--machines=fed-minion"
# Port minions listen on
KUBELET_PORT="--kubelet_port=10250"
...
...
@@ -115,6 +112,18 @@ KUBE_SERVICE_ADDRESSES="--portal_net=10.254.0.0/16"
KUBE_API_ARGS=""
```
*
Edit /etc/kubernetes/controller-manager to appear as such:
```
###
# kubernetes system config
#
# The following values are used to configure the kubernetes-controller-manager
#
# Comma seperated list of minions
KUBELET_ADDRESSES="--machines=fed-minion"
```
*
Start the appropriate services on master:
```
...
...
docs/man/kube-apiserver.1.md
View file @
290749b1
...
...
@@ -53,9 +53,6 @@ The the kube-apiserver several options.
**-logtostderr**
=
log to standard error instead of files. Default is false.
**-machines**
=
[
]
List of machines to schedule onto, comma separated.
**-minion_cache_ttl**
=30s
Duration of time to cache minion information. Default 30 seconds.
...
...
docs/man/kube-controller-manager.1.md
View file @
290749b1
...
...
@@ -44,6 +44,9 @@ The kube-controller-manager has several options.
**-logtostderr**
=false
log to standard error instead of files.
**-machines**
=
[
]
List of machines to schedule onto, comma separated.
**-master**
=""
The address of the Kubernetes API server.
...
...
docs/man/man1/kube-apiserver.1
View file @
290749b1
...
...
@@ -70,10 +70,6 @@ The the kube\-apiserver several options.
log to standard error instead of files. Default is false.
.PP
\fB\-machines\fP=[]
List of machines to schedule onto, comma separated.
.PP
\fB\-minion\_cache\_ttl\fP=30s
Duration of time to cache minion information. Default 30 seconds.
...
...
docs/man/man1/kube-controller-manager.1
View file @
290749b1
...
...
@@ -57,6 +57,10 @@ The kube\-controller\-manager has several options.
log to standard error instead of files.
.PP
\fB\-machines\fP=[]
List of machines to schedule onto, comma separated.
.PP
\fB\-master\fP=""
The address of the Kubernetes API server.
...
...
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