Skip to content

Commit

Permalink
Convert minion_ to kubelet_ in numerous docs
Browse files Browse the repository at this point in the history
The example systemd services files, environment files, and the fedora
manual config doc all used numerous references to minion_.  Many of
these are better named kubelet_.  Convert them.
  • Loading branch information
eparis committed Oct 29, 2014
1 parent 74998ee commit 7522f19
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions contrib/init/systemd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Assumptions of the service files
Non kubernetes defaults in the environment files
------------------------------------------------
1. Default to log to stdout/journald instead of directly to disk, see: [KUBE_LOGTOSTDERR](environ/config)
2. Node list of 127.0.0.1 forced instead of relying on cloud provider, see: [MINION_ADDRESSES](environ/apiserver)
3. Explicitly set the minion hostname to 127.0.0.1, see: [MINION_HOSTNAME](environ/kubelet)
2. Node list of 127.0.0.1 forced instead of relying on cloud provider, see: [KUBELET_ADDRESSES](environ/apiserver)
3. Explicitly set the minion hostname to 127.0.0.1, see: [KUBELET_HOSTNAME](environ/kubelet)
4. There is no default for the IP address range of services. This uses 10.254.0.0/16 see: [KUBE_SERVICE_ADDRESSES](environ/apiserver)

Notes
Expand Down
4 changes: 2 additions & 2 deletions contrib/init/systemd/environ/apiserver
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ KUBE_API_PORT="--port=8080"
KUBE_MASTER="--master=127.0.0.1:8080"

# Comma seperated list of minions
MINION_ADDRESSES="--machines=127.0.0.1"
KUBELET_ADDRESSES="--machines=127.0.0.1"

# Port minions listen on
MINION_PORT="--kubelet_port=10250"
KUBELET_PORT="--kubelet_port=10250"

# Address range to use for services
KUBE_SERVICE_ADDRESSES="--portal_net=10.254.0.0/16"
Expand Down
10 changes: 5 additions & 5 deletions contrib/init/systemd/environ/kubelet
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
###
# kubernetes kublet (minion) config
# kubernetes kubelet (minion) config

# The address for the info server to serve on (set to 0.0.0.0 or "" for all interfaces)
MINION_ADDRESS="--address=127.0.0.1"
KUBELET_ADDRESS="--address=127.0.0.1"

# The port for the info server to serve on
MINION_PORT="--port=10250"
KUBELET_PORT="--port=10250"

# You may leave this blank to use the actual hostname
MINION_HOSTNAME="--hostname_override=127.0.0.1"
KUBELET_HOSTNAME="--hostname_override=127.0.0.1"

# Add your own!
MINION_ARGS=""
KUBELET_ARGS=""
4 changes: 2 additions & 2 deletions contrib/init/systemd/kube-apiserver.service
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ ExecStart=/usr/bin/kube-apiserver \
${KUBE_ETCD_SERVERS} \
${KUBE_API_ADDRESS} \
${KUBE_API_PORT} \
${MINION_ADDRESSES} \
${MINION_PORT} \
${KUBELET_ADDRESSES} \
${KUBELET_PORT} \
${KUBE_ALLOW_PRIV} \
${KUBE_SERVICE_ADDRESSES} \
${KUBE_API_ARGS}
Expand Down
8 changes: 4 additions & 4 deletions contrib/init/systemd/kubelet.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ ExecStart=/usr/bin/kubelet \
${KUBE_LOGTOSTDERR} \
${KUBE_LOG_LEVEL} \
${KUBE_ETCD_SERVERS} \
${MINION_ADDRESS} \
${MINION_PORT} \
${MINION_HOSTNAME} \
${KUBELET_ADDRESS} \
${KUBELET_PORT} \
${KUBELET_HOSTNAME} \
${KUBE_ALLOW_PRIV} \
${MINION_ARGS}
${KUBELET_ARGS}
Restart=on-failure

[Install]
Expand Down
14 changes: 7 additions & 7 deletions docs/getting-started-guides/fedora/fedora_manual_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ KUBE_API_PORT="--port=8080"
KUBE_MASTER="--master=fed-master:8080"
# Comma seperated list of minions
MINION_ADDRESSES="--machines=fed-minion"
KUBELET_ADDRESSES="--machines=fed-minion"
# Port minions listen on
MINION_PORT="--kubelet_port=10250"
KUBELET_PORT="--kubelet_port=10250"
# Address range to use for services
KUBE_SERVICE_ADDRESSES="--portal_net=10.254.0.0/16"
Expand Down Expand Up @@ -155,19 +155,19 @@ curl -s -L http://fed-master:8080/api/v1beta1/services | python -mjson.tool

```
###
# kubernetes kublet (minion) config
# kubernetes kubelet (minion) config
# The address for the info server to serve on
MINION_ADDRESS="--address=fed-minion"
KUBELET_ADDRESS="--address=fed-minion"
# The port for the info server to serve on
MINION_PORT="--port=10250"
KUBELET_PORT="--port=10250"
# You may leave this blank to use the actual hostname
MINION_HOSTNAME="--hostname_override=fed-minion"
KUBELET_HOSTNAME="--hostname_override=fed-minion"
# Add your won!
MINION_ARGS=""
KUBELET_ARGS=""
```

* Start the appropriate services on minion (fed-minion).
Expand Down

0 comments on commit 7522f19

Please sign in to comment.