change underscores to dashes to match the command line argument
This commit is contained in:
@@ -29,7 +29,7 @@ Notes
|
||||
-----
|
||||
It may seem reasonable to use --option=${OPTION} in the .service file instead of only putting the command line option in the environment file. However this results in the possibility of daemons being called with --option= if the environment file does not define a value. Whereas including the --option string inside the environment file means that nothing will be passed to the daemon. So the daemon default will be used for things unset by the environment files.
|
||||
|
||||
While some command line options to the daemons use the default when passed an empty option some cause the daemon to fail to launch. --allow_privileged= (without a value of true/false) will cause the kube-apiserver and kubelet to refuse to launch.
|
||||
While some command line options to the daemons use the default when passed an empty option some cause the daemon to fail to launch. --allow-privileged= (without a value of true/false) will cause the kube-apiserver and kubelet to refuse to launch.
|
||||
|
||||
It also may seem reasonable to just use $DAEMON_ARGS and string all of these into one line in the environment file. While that makes the .service file simple it makes the admin job more difficult to locate and make appropriate changes to the config. This is a tradeoff between having to update the .service file to add new options or having the config files easy for an admin to work with. I choose: "easy for admin most of the time".
|
||||
|
||||
|
@@ -52,8 +52,8 @@ Within the scheduler, compatibility is largely determined by comparing executor
|
||||
a hash is calculated from a subset of the executor-related command line parameters provided to the scheduler process.
|
||||
The command line parameters that affect the hash calculation are listed below.
|
||||
|
||||
- `--allow_privileged`
|
||||
- `--api_servers`
|
||||
- `--allow-privileged`
|
||||
- `--api-servers`
|
||||
- `--auth_path`
|
||||
- `--cluster_*`
|
||||
- `--executor_*`
|
||||
|
@@ -26,7 +26,7 @@ First, create your kube-apiserver.service file (change necessary variables)
|
||||
ExecStart=/opt/bin/kube-apiserver \
|
||||
--address=0.0.0.0 \
|
||||
--port=8080 \
|
||||
--etcd_servers=http://10.1.10.10:4001
|
||||
--etcd-servers=http://10.1.10.10:4001
|
||||
ExecStartPost=/usr/bin/etcdctl -C 10.1.10.10:4001 set /frontend:172.20.1.20 '[ "kubernetes", "http://${DEFAULT_IPV4}:8080" ]'
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
Reference in New Issue
Block a user