mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
New feature gate: KubeletInUserNamespace
Enables support for running kubelet in a user namespace. The user namespace has to be created before running kubelet. All the node components such as CRI need to be running in the same user namespace. See kubernetes/enhancements PR 1371 (merged) and issue 2033. Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
parent
656d00e894
commit
b16323e37c
@ -761,6 +761,14 @@ const (
|
|||||||
//
|
//
|
||||||
// Allows clients to request a duration for certificates issued via the Kubernetes CSR API.
|
// Allows clients to request a duration for certificates issued via the Kubernetes CSR API.
|
||||||
CSRDuration featuregate.Feature = "CSRDuration"
|
CSRDuration featuregate.Feature = "CSRDuration"
|
||||||
|
|
||||||
|
// owner: @AkihiroSuda
|
||||||
|
// alpha: v1.22
|
||||||
|
//
|
||||||
|
// Enables support for running kubelet in a user namespace.
|
||||||
|
// The user namespace has to be created before running kubelet.
|
||||||
|
// All the node components such as CRI need to be running in the same user namespace.
|
||||||
|
KubeletInUserNamespace featuregate.Feature = "KubeletInUserNamespace"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@ -875,6 +883,7 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
|
|||||||
ReadWriteOncePod: {Default: false, PreRelease: featuregate.Alpha},
|
ReadWriteOncePod: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
CSRDuration: {Default: true, PreRelease: featuregate.Beta},
|
CSRDuration: {Default: true, PreRelease: featuregate.Beta},
|
||||||
DelegateFSGroupToCSIDriver: {Default: false, PreRelease: featuregate.Alpha},
|
DelegateFSGroupToCSIDriver: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
|
KubeletInUserNamespace: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
|
|
||||||
// inherited features from generic apiserver, relisted here to get a conflict if it is changed
|
// inherited features from generic apiserver, relisted here to get a conflict if it is changed
|
||||||
// unintentionally on either side:
|
// unintentionally on either side:
|
||||||
|
Loading…
Reference in New Issue
Block a user