Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
cd427fa4
Commit
cd427fa4
authored
Feb 21, 2017
by
Kevin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable DefaultTolerationSeconds admission controller by default
parent
f2e234e4
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
25 additions
and
23 deletions
+25
-23
config-default.sh
cluster/aws/config-default.sh
+1
-1
config-test.sh
cluster/aws/config-test.sh
+1
-1
config-default.sh
cluster/azure-legacy/config-default.sh
+1
-1
config-default.sh
cluster/centos/config-default.sh
+1
-1
apiserver.sh
cluster/centos/master/scripts/apiserver.sh
+2
-2
config-default.sh
cluster/gce/config-default.sh
+1
-1
config-test.sh
cluster/gce/config-test.sh
+1
-1
master-multi.json
cluster/images/hyperkube/static-pods/master-multi.json
+1
-1
master.json
cluster/images/hyperkube/static-pods/master.json
+1
-1
kube-apiserver.defaults
...ayers/kubernetes-master/templates/kube-apiserver.defaults
+1
-1
util.sh
cluster/libvirt-coreos/util.sh
+1
-1
configure-salt.yaml
...nstack-heat/kubernetes-heat/fragments/configure-salt.yaml
+1
-1
create-dynamic-salt-files.sh
.../photon-controller/templates/create-dynamic-salt-files.sh
+1
-1
master-cloud-config.yaml
cluster/rackspace/cloud-config/master-cloud-config.yaml
+1
-1
config-default.sh
cluster/ubuntu/config-default.sh
+1
-1
config-default.sh
cluster/vagrant/config-default.sh
+1
-1
BUILD
cmd/kube-apiserver/app/BUILD
+1
-0
plugins.go
cmd/kube-apiserver/app/plugins.go
+1
-0
manifests.go
cmd/kubeadm/app/master/manifests.go
+1
-1
manifests_test.go
cmd/kubeadm/app/master/manifests_test.go
+3
-3
local-up-cluster.sh
hack/local-up-cluster.sh
+1
-1
admission.go
plugin/pkg/admission/defaulttolerationseconds/admission.go
+1
-1
No files found.
cluster/aws/config-default.sh
View file @
cd427fa4
...
@@ -138,7 +138,7 @@ fi
...
@@ -138,7 +138,7 @@ fi
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
# If we included ResourceQuota, we should keep it at the end of the list to prevent incrementing quota usage prematurely.
# If we included ResourceQuota, we should keep it at the end of the list to prevent incrementing quota usage prematurely.
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
# Optional: Enable/disable public IP assignment for minions.
# Optional: Enable/disable public IP assignment for minions.
# Important Note: disable only if you have setup a NAT instance for internet access and configured appropriate routes!
# Important Note: disable only if you have setup a NAT instance for internet access and configured appropriate routes!
...
...
cluster/aws/config-test.sh
View file @
cd427fa4
...
@@ -124,7 +124,7 @@ fi
...
@@ -124,7 +124,7 @@ fi
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
# If we included ResourceQuota, we should keep it at the end of the list to prevent incrementing quota usage prematurely.
# If we included ResourceQuota, we should keep it at the end of the list to prevent incrementing quota usage prematurely.
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
# Optional: Enable/disable public IP assignment for minions.
# Optional: Enable/disable public IP assignment for minions.
# Important Note: disable only if you have setup a NAT instance for internet access and configured appropriate routes!
# Important Note: disable only if you have setup a NAT instance for internet access and configured appropriate routes!
...
...
cluster/azure-legacy/config-default.sh
View file @
cd427fa4
...
@@ -57,4 +57,4 @@ ENABLE_CLUSTER_MONITORING="${KUBE_ENABLE_CLUSTER_MONITORING:-influxdb}"
...
@@ -57,4 +57,4 @@ ENABLE_CLUSTER_MONITORING="${KUBE_ENABLE_CLUSTER_MONITORING:-influxdb}"
ENABLE_CLUSTER_UI
=
"
${
KUBE_ENABLE_CLUSTER_UI
:-
true
}
"
ENABLE_CLUSTER_UI
=
"
${
KUBE_ENABLE_CLUSTER_UI
:-
true
}
"
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DefaultStorageClass,ResourceQuota
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
cluster/centos/config-default.sh
View file @
cd427fa4
...
@@ -117,7 +117,7 @@ export FLANNEL_NET=${FLANNEL_NET:-"172.16.0.0/16"}
...
@@ -117,7 +117,7 @@ export FLANNEL_NET=${FLANNEL_NET:-"172.16.0.0/16"}
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
# If we included ResourceQuota, we should keep it at the end of the list to prevent incrementing quota usage prematurely.
# If we included ResourceQuota, we should keep it at the end of the list to prevent incrementing quota usage prematurely.
export
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota
export
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota
,DefaultTolerationSeconds
# Extra options to set on the Docker command line.
# Extra options to set on the Docker command line.
# This is useful for setting --insecure-registry for local registries.
# This is useful for setting --insecure-registry for local registries.
...
...
cluster/centos/master/scripts/apiserver.sh
View file @
cd427fa4
...
@@ -55,8 +55,8 @@ KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=${SERVICE_CLUSTER_IP_RANGE}"
...
@@ -55,8 +55,8 @@ KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=${SERVICE_CLUSTER_IP_RANGE}"
# to do admission control of resources into cluster.
# to do admission control of resources into cluster.
# Comma-delimited list of:
# Comma-delimited list of:
# LimitRanger, AlwaysDeny, SecurityContextDeny, NamespaceExists,
# LimitRanger, AlwaysDeny, SecurityContextDeny, NamespaceExists,
# NamespaceLifecycle, NamespaceAutoProvision,
# NamespaceLifecycle, NamespaceAutoProvision,
AlwaysAdmit,
#
AlwaysAdmit, ServiceAccount, ResourceQuota, DefaultStorageClas
s
#
ServiceAccount, ResourceQuota, DefaultStorageClass, DefaultTolerationSecond
s
KUBE_ADMISSION_CONTROL="--admission-control=
${
ADMISSION_CONTROL
}
"
KUBE_ADMISSION_CONTROL="--admission-control=
${
ADMISSION_CONTROL
}
"
# --client-ca-file="": If set, any request presenting a client certificate signed
# --client-ca-file="": If set, any request presenting a client certificate signed
...
...
cluster/gce/config-default.sh
View file @
cd427fa4
...
@@ -167,7 +167,7 @@ ENABLE_RESCHEDULER="${KUBE_ENABLE_RESCHEDULER:-true}"
...
@@ -167,7 +167,7 @@ ENABLE_RESCHEDULER="${KUBE_ENABLE_RESCHEDULER:-true}"
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
# If we included ResourceQuota, we should keep it at the end of the list to prevent incrementing quota usage prematurely.
# If we included ResourceQuota, we should keep it at the end of the list to prevent incrementing quota usage prematurely.
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
# Optional: if set to true kube-up will automatically check for existing resources and clean them up.
# Optional: if set to true kube-up will automatically check for existing resources and clean them up.
KUBE_UP_AUTOMATIC_CLEANUP
=
${
KUBE_UP_AUTOMATIC_CLEANUP
:-
false
}
KUBE_UP_AUTOMATIC_CLEANUP
=
${
KUBE_UP_AUTOMATIC_CLEANUP
:-
false
}
...
...
cluster/gce/config-test.sh
View file @
cd427fa4
...
@@ -191,7 +191,7 @@ fi
...
@@ -191,7 +191,7 @@ fi
ENABLE_RESCHEDULER
=
"
${
KUBE_ENABLE_RESCHEDULER
:-
true
}
"
ENABLE_RESCHEDULER
=
"
${
KUBE_ENABLE_RESCHEDULER
:-
true
}
"
# If we included ResourceQuota, we should keep it at the end of the list to prevent incrementing quota usage prematurely.
# If we included ResourceQuota, we should keep it at the end of the list to prevent incrementing quota usage prematurely.
ADMISSION_CONTROL
=
"
${
KUBE_ADMISSION_CONTROL
:-
NamespaceLifecycle
,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota
}
"
ADMISSION_CONTROL
=
"
${
KUBE_ADMISSION_CONTROL
:-
NamespaceLifecycle
,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
}
"
# Optional: if set to true kube-up will automatically check for existing resources and clean them up.
# Optional: if set to true kube-up will automatically check for existing resources and clean them up.
KUBE_UP_AUTOMATIC_CLEANUP
=
${
KUBE_UP_AUTOMATIC_CLEANUP
:-
false
}
KUBE_UP_AUTOMATIC_CLEANUP
=
${
KUBE_UP_AUTOMATIC_CLEANUP
:-
false
}
...
...
cluster/images/hyperkube/static-pods/master-multi.json
View file @
cd427fa4
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
"--service-cluster-ip-range=10.0.0.1/24"
,
"--service-cluster-ip-range=10.0.0.1/24"
,
"--insecure-bind-address=0.0.0.0"
,
"--insecure-bind-address=0.0.0.0"
,
"--etcd-servers=http://127.0.0.1:2379"
,
"--etcd-servers=http://127.0.0.1:2379"
,
"--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota"
,
"--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
"
,
"--client-ca-file=/srv/kubernetes/ca.crt"
,
"--client-ca-file=/srv/kubernetes/ca.crt"
,
"--basic-auth-file=/srv/kubernetes/basic_auth.csv"
,
"--basic-auth-file=/srv/kubernetes/basic_auth.csv"
,
"--min-request-timeout=300"
,
"--min-request-timeout=300"
,
...
...
cluster/images/hyperkube/static-pods/master.json
View file @
cd427fa4
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
"--service-cluster-ip-range=10.0.0.1/24"
,
"--service-cluster-ip-range=10.0.0.1/24"
,
"--insecure-bind-address=127.0.0.1"
,
"--insecure-bind-address=127.0.0.1"
,
"--etcd-servers=http://127.0.0.1:2379"
,
"--etcd-servers=http://127.0.0.1:2379"
,
"--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota"
,
"--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
"
,
"--client-ca-file=/srv/kubernetes/ca.crt"
,
"--client-ca-file=/srv/kubernetes/ca.crt"
,
"--basic-auth-file=/srv/kubernetes/basic_auth.csv"
,
"--basic-auth-file=/srv/kubernetes/basic_auth.csv"
,
"--min-request-timeout=300"
,
"--min-request-timeout=300"
,
...
...
cluster/juju/layers/kubernetes-master/templates/kube-apiserver.defaults
View file @
cd427fa4
...
@@ -11,7 +11,7 @@ KUBE_API_ADDRESS="--insecure-bind-address=127.0.0.1"
...
@@ -11,7 +11,7 @@ KUBE_API_ADDRESS="--insecure-bind-address=127.0.0.1"
KUBE_API_PORT="--insecure-port=8080"
KUBE_API_PORT="--insecure-port=8080"
# default admission control policies
# default admission control policies
KUBE_ADMISSION_CONTROL="--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota"
KUBE_ADMISSION_CONTROL="--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota
,DefaultTolerationSeconds
"
# Add your own!
# Add your own!
KUBE_API_ARGS="{{ kube_apiserver_flags }}"
KUBE_API_ARGS="{{ kube_apiserver_flags }}"
cluster/libvirt-coreos/util.sh
View file @
cd427fa4
...
@@ -27,7 +27,7 @@ source "$KUBE_ROOT/cluster/common.sh"
...
@@ -27,7 +27,7 @@ source "$KUBE_ROOT/cluster/common.sh"
export
LIBVIRT_DEFAULT_URI
=
qemu:///system
export
LIBVIRT_DEFAULT_URI
=
qemu:///system
export
SERVICE_ACCOUNT_LOOKUP
=
${
SERVICE_ACCOUNT_LOOKUP
:-
false
}
export
SERVICE_ACCOUNT_LOOKUP
=
${
SERVICE_ACCOUNT_LOOKUP
:-
false
}
export
ADMISSION_CONTROL
=
${
ADMISSION_CONTROL
:-
NamespaceLifecycle
,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota
}
export
ADMISSION_CONTROL
=
${
ADMISSION_CONTROL
:-
NamespaceLifecycle
,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
}
readonly
POOL
=
kubernetes
readonly
POOL
=
kubernetes
readonly
POOL_PATH
=
/var/lib/libvirt/images/kubernetes
readonly
POOL_PATH
=
/var/lib/libvirt/images/kubernetes
...
...
cluster/openstack-heat/kubernetes-heat/fragments/configure-salt.yaml
View file @
cd427fa4
...
@@ -58,7 +58,7 @@ write_files:
...
@@ -58,7 +58,7 @@ write_files:
enable_dns_horizontal_autoscaler: "false"
enable_dns_horizontal_autoscaler: "false"
federations_domain_map: ''
federations_domain_map: ''
instance_prefix: kubernetes
instance_prefix: kubernetes
admission_control: NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DefaultStorageClass,ResourceQuota
admission_control: NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
enable_cpu_cfs_quota: "true"
enable_cpu_cfs_quota: "true"
network_provider: none
network_provider: none
cluster_cidr: "$cluster_cidr"
cluster_cidr: "$cluster_cidr"
...
...
cluster/photon-controller/templates/create-dynamic-salt-files.sh
View file @
cd427fa4
...
@@ -123,5 +123,5 @@ federations_domain_map: ''
...
@@ -123,5 +123,5 @@ federations_domain_map: ''
e2e_storage_test_environment: "
${
E2E_STORAGE_TEST_ENVIRONMENT
:-
false
}
"
e2e_storage_test_environment: "
${
E2E_STORAGE_TEST_ENVIRONMENT
:-
false
}
"
cluster_cidr: "
$NODE_IP_RANGES
"
cluster_cidr: "
$NODE_IP_RANGES
"
allocate_node_cidrs: "
${
ALLOCATE_NODE_CIDRS
:-
true
}
"
allocate_node_cidrs: "
${
ALLOCATE_NODE_CIDRS
:-
true
}
"
admission_control: NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DefaultStorageClass,ResourceQuota
admission_control: NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
EOF
EOF
cluster/rackspace/cloud-config/master-cloud-config.yaml
View file @
cd427fa4
...
@@ -136,7 +136,7 @@ coreos:
...
@@ -136,7 +136,7 @@ coreos:
--v=2 \
--v=2 \
--service-account-key-file=/var/run/kubernetes/kube-serviceaccount.key \
--service-account-key-file=/var/run/kubernetes/kube-serviceaccount.key \
--service-account-lookup=false \
--service-account-lookup=false \
--admission-control=NamespaceLifecycle,NamespaceAutoProvision,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota
--admission-control=NamespaceLifecycle,NamespaceAutoProvision,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota
,DefaultTolerationSeconds
Restart=always
Restart=always
RestartSec=5
RestartSec=5
-
name
:
apiserver-advertiser.service
-
name
:
apiserver-advertiser.service
...
...
cluster/ubuntu/config-default.sh
View file @
cd427fa4
...
@@ -84,7 +84,7 @@ FLANNEL_OTHER_NET_CONFIG=${FLANNEL_OTHER_NET_CONFIG:-""}
...
@@ -84,7 +84,7 @@ FLANNEL_OTHER_NET_CONFIG=${FLANNEL_OTHER_NET_CONFIG:-""}
# for release >= 1.4.0; see that doc for the recommended settings for
# for release >= 1.4.0; see that doc for the recommended settings for
# earlier releases.
# earlier releases.
export
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota
export
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
# Path to the pod manifest file or directory of files of kubelet
# Path to the pod manifest file or directory of files of kubelet
export
KUBELET_POD_MANIFEST_PATH
=
${
KUBELET_POD_MANIFEST_PATH
:-
""
}
export
KUBELET_POD_MANIFEST_PATH
=
${
KUBELET_POD_MANIFEST_PATH
:-
""
}
...
...
cluster/vagrant/config-default.sh
View file @
cd427fa4
...
@@ -56,7 +56,7 @@ MASTER_PASSWD="${MASTER_PASSWD:-vagrant}"
...
@@ -56,7 +56,7 @@ MASTER_PASSWD="${MASTER_PASSWD:-vagrant}"
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
# If we included ResourceQuota, we should keep it at the end of the list to prevent incrementing quota usage prematurely.
# If we included ResourceQuota, we should keep it at the end of the list to prevent incrementing quota usage prematurely.
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
# Optional: Enable node logging.
# Optional: Enable node logging.
ENABLE_NODE_LOGGING
=
false
ENABLE_NODE_LOGGING
=
false
...
...
cmd/kube-apiserver/app/BUILD
View file @
cd427fa4
...
@@ -35,6 +35,7 @@ go_library(
...
@@ -35,6 +35,7 @@ go_library(
"//plugin/pkg/admission/admit:go_default_library",
"//plugin/pkg/admission/admit:go_default_library",
"//plugin/pkg/admission/alwayspullimages:go_default_library",
"//plugin/pkg/admission/alwayspullimages:go_default_library",
"//plugin/pkg/admission/antiaffinity:go_default_library",
"//plugin/pkg/admission/antiaffinity:go_default_library",
"//plugin/pkg/admission/defaulttolerationseconds:go_default_library",
"//plugin/pkg/admission/deny:go_default_library",
"//plugin/pkg/admission/deny:go_default_library",
"//plugin/pkg/admission/exec:go_default_library",
"//plugin/pkg/admission/exec:go_default_library",
"//plugin/pkg/admission/gc:go_default_library",
"//plugin/pkg/admission/gc:go_default_library",
...
...
cmd/kube-apiserver/app/plugins.go
View file @
cd427fa4
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
_
"k8s.io/kubernetes/plugin/pkg/admission/admit"
_
"k8s.io/kubernetes/plugin/pkg/admission/admit"
_
"k8s.io/kubernetes/plugin/pkg/admission/alwayspullimages"
_
"k8s.io/kubernetes/plugin/pkg/admission/alwayspullimages"
_
"k8s.io/kubernetes/plugin/pkg/admission/antiaffinity"
_
"k8s.io/kubernetes/plugin/pkg/admission/antiaffinity"
_
"k8s.io/kubernetes/plugin/pkg/admission/defaulttolerationseconds"
_
"k8s.io/kubernetes/plugin/pkg/admission/deny"
_
"k8s.io/kubernetes/plugin/pkg/admission/deny"
_
"k8s.io/kubernetes/plugin/pkg/admission/exec"
_
"k8s.io/kubernetes/plugin/pkg/admission/exec"
_
"k8s.io/kubernetes/plugin/pkg/admission/gc"
_
"k8s.io/kubernetes/plugin/pkg/admission/gc"
...
...
cmd/kubeadm/app/master/manifests.go
View file @
cd427fa4
...
@@ -304,7 +304,7 @@ func getAPIServerCommand(cfg *kubeadmapi.MasterConfiguration, selfHosted bool) [
...
@@ -304,7 +304,7 @@ func getAPIServerCommand(cfg *kubeadmapi.MasterConfiguration, selfHosted bool) [
command
=
append
(
getComponentBaseCommand
(
apiServer
),
command
=
append
(
getComponentBaseCommand
(
apiServer
),
"--insecure-bind-address=127.0.0.1"
,
"--insecure-bind-address=127.0.0.1"
,
"--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota"
,
"--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
"
,
"--service-cluster-ip-range="
+
cfg
.
Networking
.
ServiceSubnet
,
"--service-cluster-ip-range="
+
cfg
.
Networking
.
ServiceSubnet
,
"--service-account-key-file="
+
getCertFilePath
(
kubeadmconstants
.
ServiceAccountPublicKeyName
),
"--service-account-key-file="
+
getCertFilePath
(
kubeadmconstants
.
ServiceAccountPublicKeyName
),
"--client-ca-file="
+
getCertFilePath
(
kubeadmconstants
.
CACertName
),
"--client-ca-file="
+
getCertFilePath
(
kubeadmconstants
.
CACertName
),
...
...
cmd/kubeadm/app/master/manifests_test.go
View file @
cd427fa4
...
@@ -370,7 +370,7 @@ func TestGetAPIServerCommand(t *testing.T) {
...
@@ -370,7 +370,7 @@ func TestGetAPIServerCommand(t *testing.T) {
expected
:
[]
string
{
expected
:
[]
string
{
"kube-apiserver"
,
"kube-apiserver"
,
"--insecure-bind-address=127.0.0.1"
,
"--insecure-bind-address=127.0.0.1"
,
"--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota"
,
"--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
"
,
"--service-cluster-ip-range=bar"
,
"--service-cluster-ip-range=bar"
,
"--service-account-key-file="
+
kubeadmapi
.
GlobalEnvParams
.
HostPKIPath
+
"/sa.pub"
,
"--service-account-key-file="
+
kubeadmapi
.
GlobalEnvParams
.
HostPKIPath
+
"/sa.pub"
,
"--client-ca-file="
+
kubeadmapi
.
GlobalEnvParams
.
HostPKIPath
+
"/ca.crt"
,
"--client-ca-file="
+
kubeadmapi
.
GlobalEnvParams
.
HostPKIPath
+
"/ca.crt"
,
...
@@ -399,7 +399,7 @@ func TestGetAPIServerCommand(t *testing.T) {
...
@@ -399,7 +399,7 @@ func TestGetAPIServerCommand(t *testing.T) {
expected
:
[]
string
{
expected
:
[]
string
{
"kube-apiserver"
,
"kube-apiserver"
,
"--insecure-bind-address=127.0.0.1"
,
"--insecure-bind-address=127.0.0.1"
,
"--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota"
,
"--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
"
,
"--service-cluster-ip-range=bar"
,
"--service-cluster-ip-range=bar"
,
"--service-account-key-file="
+
kubeadmapi
.
GlobalEnvParams
.
HostPKIPath
+
"/sa.pub"
,
"--service-account-key-file="
+
kubeadmapi
.
GlobalEnvParams
.
HostPKIPath
+
"/sa.pub"
,
"--client-ca-file="
+
kubeadmapi
.
GlobalEnvParams
.
HostPKIPath
+
"/ca.crt"
,
"--client-ca-file="
+
kubeadmapi
.
GlobalEnvParams
.
HostPKIPath
+
"/ca.crt"
,
...
@@ -430,7 +430,7 @@ func TestGetAPIServerCommand(t *testing.T) {
...
@@ -430,7 +430,7 @@ func TestGetAPIServerCommand(t *testing.T) {
expected
:
[]
string
{
expected
:
[]
string
{
"kube-apiserver"
,
"kube-apiserver"
,
"--insecure-bind-address=127.0.0.1"
,
"--insecure-bind-address=127.0.0.1"
,
"--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota"
,
"--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota
,DefaultTolerationSeconds
"
,
"--service-cluster-ip-range=bar"
,
"--service-cluster-ip-range=bar"
,
"--service-account-key-file="
+
kubeadmapi
.
GlobalEnvParams
.
HostPKIPath
+
"/sa.pub"
,
"--service-account-key-file="
+
kubeadmapi
.
GlobalEnvParams
.
HostPKIPath
+
"/sa.pub"
,
"--client-ca-file="
+
kubeadmapi
.
GlobalEnvParams
.
HostPKIPath
+
"/ca.crt"
,
"--client-ca-file="
+
kubeadmapi
.
GlobalEnvParams
.
HostPKIPath
+
"/ca.crt"
,
...
...
hack/local-up-cluster.sh
View file @
cd427fa4
...
@@ -374,7 +374,7 @@ function start_apiserver {
...
@@ -374,7 +374,7 @@ function start_apiserver {
fi
fi
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount
${
security_admission
}
,ResourceQuota,DefaultStorageClass
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount
${
security_admission
}
,ResourceQuota,DefaultStorageClass
,DefaultTolerationSeconds
# This is the default dir and filename where the apiserver will generate a self-signed cert
# This is the default dir and filename where the apiserver will generate a self-signed cert
# which should be able to be used as the CA to verify itself
# which should be able to be used as the CA to verify itself
...
...
plugin/pkg/admission/defaulttolerationseconds/admission.go
View file @
cd427fa4
...
@@ -30,7 +30,7 @@ import (
...
@@ -30,7 +30,7 @@ import (
var
(
var
(
defaultNotReadyTolerationSeconds
=
flag
.
Int64
(
"default-not-ready-toleration-seconds"
,
300
,
defaultNotReadyTolerationSeconds
=
flag
.
Int64
(
"default-not-ready-toleration-seconds"
,
300
,
"Indicates the tolerationSeconds of the toleration for
`notReady:NoExecute`
"
+
"Indicates the tolerationSeconds of the toleration for
notReady:NoExecute
"
+
" that is added by default to every pod that does not already have such a toleration."
)
" that is added by default to every pod that does not already have such a toleration."
)
defaultUnreachableTolerationSeconds
=
flag
.
Int64
(
"default-unreachable-toleration-seconds"
,
300
,
defaultUnreachableTolerationSeconds
=
flag
.
Int64
(
"default-unreachable-toleration-seconds"
,
300
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment