mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-05 11:12:03 +00:00
Add new apiserver flags for clusterIP (nee portal)
Leave old flags but marked as deprecated
This commit is contained in:
@@ -118,7 +118,7 @@ coreos:
|
||||
ExecStartPre=/usr/bin/chmod +x /opt/bin/kube-apiserver
|
||||
ExecStart=/opt/bin/kube-apiserver \
|
||||
--insecure-bind-address=0.0.0.0 \
|
||||
--portal-net=10.100.0.0/16 \
|
||||
--service-cluster-ip-range=10.100.0.0/16 \
|
||||
--etcd-servers=http://localhost:2379
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
@@ -260,7 +260,7 @@
|
||||
" ExecStartPre=/usr/bin/chmod +x /opt/bin/kube-apiserver\n",
|
||||
" ExecStart=/opt/bin/kube-apiserver \\\n",
|
||||
" --insecure-bind-address=0.0.0.0 \\\n",
|
||||
" --portal-net=10.100.0.0/16 \\\n",
|
||||
" --service-cluster-ip-range=10.100.0.0/16 \\\n",
|
||||
" --etcd-servers=http://localhost:2379\n",
|
||||
" Restart=always\n",
|
||||
" RestartSec=10\n",
|
||||
|
@@ -97,7 +97,7 @@ KUBE_MASTER="--master=http://centos-master:8080"
|
||||
KUBELET_PORT="--kubelet_port=10250"
|
||||
|
||||
# Address range to use for services
|
||||
KUBE_SERVICE_ADDRESSES="--portal_net=10.254.0.0/16"
|
||||
KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.254.0.0/16"
|
||||
|
||||
# Add your own!
|
||||
KUBE_API_ARGS=""
|
||||
|
@@ -273,7 +273,7 @@ coreos:
|
||||
--address=0.0.0.0 \
|
||||
--port=8080 \
|
||||
$ETCD_SERVERS \
|
||||
--portal_net=10.1.0.0/16 \
|
||||
--service-cluster-ip-range=10.1.0.0/16 \
|
||||
--cloud_provider=vagrant \
|
||||
--logtostderr=true --v=3
|
||||
Restart=always
|
||||
|
@@ -363,7 +363,7 @@ On the PXE server make and fill in the variables ```vi /var/www/html/coreos/pxe-
|
||||
ExecStart=/opt/bin/kube-apiserver \
|
||||
--address=0.0.0.0 \
|
||||
--port=8080 \
|
||||
--portal_net=10.100.0.0/16 \
|
||||
--service-cluster-ip-range=10.100.0.0/16 \
|
||||
--etcd_servers=http://127.0.0.1:4001 \
|
||||
--logtostderr=true
|
||||
Restart=always
|
||||
|
@@ -116,7 +116,7 @@ coreos:
|
||||
--insecure_port=8080 \
|
||||
--kubelet_https=true \
|
||||
--secure_port=6443 \
|
||||
--portal_net=10.100.0.0/16 \
|
||||
--service-cluster-ip-range=10.100.0.0/16 \
|
||||
--etcd_servers=http://127.0.0.1:4001 \
|
||||
--public_address_override=${DEFAULT_IPV4} \
|
||||
--logtostderr=true
|
||||
|
@@ -84,7 +84,7 @@ coreos:
|
||||
--insecure_port=8080 \
|
||||
--kubelet_https=true \
|
||||
--secure_port=6443 \
|
||||
--portal_net=10.100.0.0/16 \
|
||||
--service-cluster-ip-range=10.100.0.0/16 \
|
||||
--etcd_servers=http://127.0.0.1:4001 \
|
||||
--public_address_override=127.0.0.1 \
|
||||
--logtostderr=true
|
||||
|
@@ -71,7 +71,7 @@ KUBE_API_ADDRESS="--address=0.0.0.0"
|
||||
KUBE_ETCD_SERVERS="--etcd_servers=http://127.0.0.1:4001"
|
||||
|
||||
# Address range to use for services
|
||||
KUBE_SERVICE_ADDRESSES="--portal_net=10.254.0.0/16"
|
||||
KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.254.0.0/16"
|
||||
|
||||
# Add your own!
|
||||
KUBE_API_ARGS=""
|
||||
|
@@ -69,7 +69,7 @@ $ ./bin/km apiserver \
|
||||
--address=${servicehost} \
|
||||
--mesos_master=${mesos_master} \
|
||||
--etcd_servers=http://${servicehost}:4001 \
|
||||
--portal_net=10.10.10.0/24 \
|
||||
--service-cluster-ip-range=10.10.10.0/24 \
|
||||
--port=8888 \
|
||||
--cloud_provider=mesos \
|
||||
--v=1 >apiserver.log 2>&1 &
|
||||
|
@@ -134,7 +134,7 @@ The the kube-apiserver several options.
|
||||
**--port**=8080
|
||||
DEPRECATED: see --insecure-port instead
|
||||
|
||||
**--portal-net**=<nil>
|
||||
**--service-cluster-ip-range**=<nil>
|
||||
A CIDR notation IP range from which to assign service cluster IPs. This must not overlap with any IP ranges assigned to nodes for pods.
|
||||
|
||||
**--profiling**=true
|
||||
@@ -184,7 +184,7 @@ The the kube-apiserver several options.
|
||||
|
||||
# EXAMPLES
|
||||
```
|
||||
/usr/bin/kube-apiserver --logtostderr=true --v=0 --etcd_servers=http://127.0.0.1:4001 --insecure_bind_address=127.0.0.1 --insecure_port=8080 --kubelet_port=10250 --portal_net=11.1.1.0/24 --allow_privileged=false
|
||||
/usr/bin/kube-apiserver --logtostderr=true --v=0 --etcd_servers=http://127.0.0.1:4001 --insecure_bind_address=127.0.0.1 --insecure_port=8080 --kubelet_port=10250 --service-cluster-ip-range=10.1.1.0/24 --allow_privileged=false
|
||||
```
|
||||
|
||||
# HISTORY
|
||||
|
Reference in New Issue
Block a user