mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #10602 from marun/vagrant-ip-cfg-from-env
Vagrant: Allow env override of IP addresses
This commit is contained in:
commit
08671ed481
@ -21,14 +21,14 @@ NUM_MINIONS=${NUM_MINIONS-"1"}
|
|||||||
export NUM_MINIONS
|
export NUM_MINIONS
|
||||||
|
|
||||||
# The IP of the master
|
# The IP of the master
|
||||||
export MASTER_IP="10.245.1.2"
|
export MASTER_IP=${MASTER_IP-"10.245.1.2"}
|
||||||
export KUBE_MASTER_IP="10.245.1.2"
|
export KUBE_MASTER_IP=${MASTER_IP}
|
||||||
|
|
||||||
export INSTANCE_PREFIX="kubernetes"
|
export INSTANCE_PREFIX="kubernetes"
|
||||||
export MASTER_NAME="${INSTANCE_PREFIX}-master"
|
export MASTER_NAME="${INSTANCE_PREFIX}-master"
|
||||||
|
|
||||||
# Map out the IPs, names and container subnets of each minion
|
# Map out the IPs, names and container subnets of each minion
|
||||||
export MINION_IP_BASE="10.245.1."
|
export MINION_IP_BASE=${MINION_IP_BASE-"10.245.1."}
|
||||||
MINION_CONTAINER_SUBNET_BASE="10.246"
|
MINION_CONTAINER_SUBNET_BASE="10.246"
|
||||||
MASTER_CONTAINER_NETMASK="255.255.255.0"
|
MASTER_CONTAINER_NETMASK="255.255.255.0"
|
||||||
MASTER_CONTAINER_ADDR="${MINION_CONTAINER_SUBNET_BASE}.0.1"
|
MASTER_CONTAINER_ADDR="${MINION_CONTAINER_SUBNET_BASE}.0.1"
|
||||||
|
Loading…
Reference in New Issue
Block a user