mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
[squash] Rename and move to storageclass/
This commit is contained in:
parent
82d35fb461
commit
5f6efefc40
@ -135,7 +135,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 incremeting quota usage prematurely.
|
# If we included ResourceQuota, we should keep it at the end of the list to prevent incremeting quota usage prematurely.
|
||||||
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,SimpleDefaultStorageClassForPVC,ResourceQuota
|
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota
|
||||||
|
|
||||||
# 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!
|
||||||
|
@ -121,7 +121,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 incremeting quota usage prematurely.
|
# If we included ResourceQuota, we should keep it at the end of the list to prevent incremeting quota usage prematurely.
|
||||||
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,SimpleDefaultStorageClassForPVC,ResourceQuota
|
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota
|
||||||
|
|
||||||
# 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!
|
||||||
|
@ -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,SimpleDefaultStorageClassForPVC,ResourceQuota
|
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DefaultStorageClass,ResourceQuota
|
||||||
|
@ -42,7 +42,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 incremeting quota usage prematurely.
|
# If we included ResourceQuota, we should keep it at the end of the list to prevent incremeting quota usage prematurely.
|
||||||
export ADMISSION_CONTROL=NamespaceLifecycle,NamespaceExists,LimitRanger,ServiceAccount,SecurityContextDeny,SimpleDefaultStorageClassForPVC,ResourceQuota
|
export ADMISSION_CONTROL=NamespaceLifecycle,NamespaceExists,LimitRanger,ServiceAccount,SecurityContextDeny,DefaultStorageClass,ResourceQuota
|
||||||
|
|
||||||
# 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.
|
||||||
|
@ -56,7 +56,7 @@ KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=${SERVICE_CLUSTER_IP_RANGE}"
|
|||||||
# Comma-delimited list of:
|
# Comma-delimited list of:
|
||||||
# LimitRanger, AlwaysDeny, SecurityContextDeny, NamespaceExists,
|
# LimitRanger, AlwaysDeny, SecurityContextDeny, NamespaceExists,
|
||||||
# NamespaceLifecycle, NamespaceAutoProvision,
|
# NamespaceLifecycle, NamespaceAutoProvision,
|
||||||
# AlwaysAdmit, ServiceAccount, ResourceQuota, SimpleDefaultStorageClassForPVC
|
# AlwaysAdmit, ServiceAccount, ResourceQuota, DefaultStorageClass
|
||||||
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
|
||||||
|
@ -130,7 +130,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 incremeting quota usage prematurely.
|
# If we included ResourceQuota, we should keep it at the end of the list to prevent incremeting quota usage prematurely.
|
||||||
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,SimpleDefaultStorageClassForPVC,ResourceQuota
|
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota
|
||||||
|
|
||||||
# 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}
|
||||||
|
@ -149,7 +149,7 @@ if [[ "${ENABLE_CLUSTER_AUTOSCALER}" == "true" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If we included ResourceQuota, we should keep it at the end of the list to prevent incremeting quota usage prematurely.
|
# If we included ResourceQuota, we should keep it at the end of the list to prevent incremeting quota usage prematurely.
|
||||||
ADMISSION_CONTROL="${KUBE_ADMISSION_CONTROL:-NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,SimpleDefaultStorageClassForPVC,ResourceQuota}"
|
ADMISSION_CONTROL="${KUBE_ADMISSION_CONTROL:-NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota}"
|
||||||
|
|
||||||
# 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}
|
||||||
|
@ -36,7 +36,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,SimpleDefaultStorageClassForPVC,ResourceQuota",
|
"--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota",
|
||||||
"--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",
|
||||||
|
@ -36,7 +36,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,SimpleDefaultStorageClassForPVC,ResourceQuota",
|
"--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota",
|
||||||
"--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",
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
"--etcd-certfile={{ etcd_cert }}",
|
"--etcd-certfile={{ etcd_cert }}",
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
"--etcd-servers={{ connection_string }}",
|
"--etcd-servers={{ connection_string }}",
|
||||||
"--admission-control=NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,SimpleDefaultStorageClassForPVC,ResourceQuota",
|
"--admission-control=NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DefaultStorageClass,ResourceQuota",
|
||||||
"--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",
|
||||||
|
@ -25,7 +25,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,SimpleDefaultStorageClassForPVC,ResourceQuota}
|
export ADMISSION_CONTROL=${ADMISSION_CONTROL:-NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota}
|
||||||
readonly POOL=kubernetes
|
readonly POOL=kubernetes
|
||||||
readonly POOL_PATH=/var/lib/libvirt/images/kubernetes
|
readonly POOL_PATH=/var/lib/libvirt/images/kubernetes
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ apiserver:
|
|||||||
--external-hostname=apiserver
|
--external-hostname=apiserver
|
||||||
--etcd-servers=http://etcd:4001
|
--etcd-servers=http://etcd:4001
|
||||||
--port=8888
|
--port=8888
|
||||||
--admission-control=NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,SimpleDefaultStorageClassForPVC,ResourceQuota
|
--admission-control=NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DefaultStorageClass,ResourceQuota
|
||||||
--authorization-mode=AlwaysAllow
|
--authorization-mode=AlwaysAllow
|
||||||
--token-auth-file=/var/run/kubernetes/auth/token-users
|
--token-auth-file=/var/run/kubernetes/auth/token-users
|
||||||
--basic-auth-file=/var/run/kubernetes/auth/basic-users
|
--basic-auth-file=/var/run/kubernetes/auth/basic-users
|
||||||
|
@ -49,7 +49,7 @@ write_files:
|
|||||||
dns_domain: cluster.local
|
dns_domain: cluster.local
|
||||||
federations_domain_map: ''
|
federations_domain_map: ''
|
||||||
instance_prefix: kubernetes
|
instance_prefix: kubernetes
|
||||||
admission_control: NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,SimpleDefaultStorageClassForPVC,ResourceQuota
|
admission_control: NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DefaultStorageClass,ResourceQuota
|
||||||
enable_cpu_cfs_quota: "true"
|
enable_cpu_cfs_quota: "true"
|
||||||
network_provider: none
|
network_provider: none
|
||||||
opencontrail_tag: R2.20
|
opencontrail_tag: R2.20
|
||||||
|
@ -124,5 +124,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,SimpleDefaultStorageClassForPVC,ResourceQuota
|
admission_control: NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DefaultStorageClass,ResourceQuota
|
||||||
EOF
|
EOF
|
||||||
|
@ -68,7 +68,7 @@ FLANNEL_OTHER_NET_CONFIG=''
|
|||||||
|
|
||||||
# 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 incremeting quota usage prematurely.
|
# If we included ResourceQuota, we should keep it at the end of the list to prevent incremeting quota usage prematurely.
|
||||||
export ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,SecurityContextDeny,SimpleDefaultStorageClassForPVC,ResourceQuota
|
export ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,SecurityContextDeny,DefaultStorageClass,ResourceQuota
|
||||||
|
|
||||||
# Path to the config file or directory of files of kubelet
|
# Path to the config file or directory of files of kubelet
|
||||||
export KUBELET_CONFIG=${KUBELET_CONFIG:-""}
|
export KUBELET_CONFIG=${KUBELET_CONFIG:-""}
|
||||||
|
@ -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 incremeting quota usage prematurely.
|
# If we included ResourceQuota, we should keep it at the end of the list to prevent incremeting quota usage prematurely.
|
||||||
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,SimpleDefaultStorageClassForPVC,ResourceQuota
|
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota
|
||||||
|
|
||||||
# Optional: Enable node logging.
|
# Optional: Enable node logging.
|
||||||
ENABLE_NODE_LOGGING=false
|
ENABLE_NODE_LOGGING=false
|
||||||
|
@ -124,7 +124,7 @@ 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,SimpleDefaultStorageClassForPVC,ResourceQuota
|
admission_control: NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DefaultStorageClass,ResourceQuota
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
mkdir -p /srv/salt-overlay/salt/nginx
|
mkdir -p /srv/salt-overlay/salt/nginx
|
||||||
|
@ -35,9 +35,9 @@ import (
|
|||||||
_ "k8s.io/kubernetes/plugin/pkg/admission/namespace/exists"
|
_ "k8s.io/kubernetes/plugin/pkg/admission/namespace/exists"
|
||||||
_ "k8s.io/kubernetes/plugin/pkg/admission/namespace/lifecycle"
|
_ "k8s.io/kubernetes/plugin/pkg/admission/namespace/lifecycle"
|
||||||
_ "k8s.io/kubernetes/plugin/pkg/admission/persistentvolume/label"
|
_ "k8s.io/kubernetes/plugin/pkg/admission/persistentvolume/label"
|
||||||
_ "k8s.io/kubernetes/plugin/pkg/admission/persistentvolumeclaim/default"
|
|
||||||
_ "k8s.io/kubernetes/plugin/pkg/admission/resourcequota"
|
_ "k8s.io/kubernetes/plugin/pkg/admission/resourcequota"
|
||||||
_ "k8s.io/kubernetes/plugin/pkg/admission/security/podsecuritypolicy"
|
_ "k8s.io/kubernetes/plugin/pkg/admission/security/podsecuritypolicy"
|
||||||
_ "k8s.io/kubernetes/plugin/pkg/admission/securitycontext/scdeny"
|
_ "k8s.io/kubernetes/plugin/pkg/admission/securitycontext/scdeny"
|
||||||
_ "k8s.io/kubernetes/plugin/pkg/admission/serviceaccount"
|
_ "k8s.io/kubernetes/plugin/pkg/admission/serviceaccount"
|
||||||
|
_ "k8s.io/kubernetes/plugin/pkg/admission/storageclass/default"
|
||||||
)
|
)
|
||||||
|
@ -264,9 +264,9 @@ function set_service_accounts {
|
|||||||
function start_apiserver {
|
function start_apiserver {
|
||||||
# Admission Controllers to invoke prior to persisting objects in cluster
|
# Admission Controllers to invoke prior to persisting objects in cluster
|
||||||
if [[ -z "${ALLOW_SECURITY_CONTEXT}" ]]; then
|
if [[ -z "${ALLOW_SECURITY_CONTEXT}" ]]; then
|
||||||
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota,SimpleDefaultStorageClassForPVC
|
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota,DefaultStorageClass
|
||||||
else
|
else
|
||||||
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota,SimpleDefaultStorageClassForPVC
|
ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota,DefaultStorageClass
|
||||||
fi
|
fi
|
||||||
# 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
|
||||||
|
@ -33,7 +33,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
PluginName = "SimpleDefaultStorageClassForPVC"
|
PluginName = "DefaultStorageClass"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
Loading…
Reference in New Issue
Block a user