From 59f9841d50e1b3cc48cc5c1f54f58ea890c93012 Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Tue, 11 Jul 2017 15:28:01 -0700 Subject: [PATCH] Change the default kubeadm bootstrap token TTL to 24 hours. --- cmd/kubeadm/app/constants/constants.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/kubeadm/app/constants/constants.go b/cmd/kubeadm/app/constants/constants.go index 3f672e224cd..de5dc4631f8 100644 --- a/cmd/kubeadm/app/constants/constants.go +++ b/cmd/kubeadm/app/constants/constants.go @@ -81,8 +81,8 @@ const ( MinimumAddressesInServiceSubnet = 10 // DefaultTokenDuration specifies the default amount of time that a bootstrap token will be valid - // Default behaviour is "never expire" == 0 - DefaultTokenDuration = 0 + // Default behaviour is 24 hours + DefaultTokenDuration = 24 * time.Hour // LabelNodeRoleMaster specifies that a node is a master // It's copied over to kubeadm until it's merged in core: https://github.com/kubernetes/kubernetes/pull/39112