mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
kube-up.sh should allow using existing DHCP option set without making changes to existing VPC configuration.
This commit is contained in:
parent
10255f8aec
commit
70ac7abb10
@ -612,9 +612,10 @@ function ensure-master-ip {
|
||||
fi
|
||||
}
|
||||
|
||||
# Creates a new DHCP option set configured correctly for Kubernetes
|
||||
# Creates a new DHCP option set configured correctly for Kubernetes when DHCP_OPTION_SET_ID is not specified
|
||||
# Sets DHCP_OPTION_SET_ID
|
||||
function create-dhcp-option-set () {
|
||||
if [[ -z ${DHCP_OPTION_SET_ID-} ]]; then
|
||||
case "${AWS_REGION}" in
|
||||
us-east-1)
|
||||
OPTION_SET_DOMAIN=ec2.internal
|
||||
@ -628,6 +629,7 @@ function create-dhcp-option-set () {
|
||||
|
||||
add-tag ${DHCP_OPTION_SET_ID} Name kubernetes-dhcp-option-set
|
||||
add-tag ${DHCP_OPTION_SET_ID} KubernetesCluster ${CLUSTER_ID}
|
||||
fi
|
||||
|
||||
$AWS_CMD associate-dhcp-options --dhcp-options-id ${DHCP_OPTION_SET_ID} --vpc-id ${VPC_ID} > $LOG
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user