-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds a number of flags/options #4799
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,6 +164,14 @@ type KubeletConfigSpec struct { | |
FailSwapOn *bool `json:"failSwapOn,omitempty" flag:"fail-swap-on"` | ||
// ExperimentalAllowedUnsafeSysctls are passed to the kubelet config to whitelist allowable sysctls | ||
ExperimentalAllowedUnsafeSysctls []string `json:"experimentalAllowedUnsafeSysctls,omitempty" flag:"experimental-allowed-unsafe-sysctls"` | ||
// EventQps If > 0, limit event creations per second to this value. If 0, unlimited. | ||
EventQPS *int32 `json:"eventQps,omitempty" flag:"event-qps"` | ||
// MakeIptablesUtilChains will ensure iptables utility rules are present on host. | ||
MakeIptablesUtilChains *bool `json:"makeIptablesUtilChains,omitempty" flag:"make-iptables-util-chains"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency, can we make this |
||
// CAdvisorPort The port of the localhost cAdvisor endpoint (set to 0 to disable) (default 4194) | ||
CAdvisorPort *int32 `json:"cadvisorPort,omitempty" flag:"cadvisor-port"` | ||
// ProtectKernelDefaults Default kubelet behaviour for kernel tuning. If set, kubelet errors if any of kernel tunables is different than kubelet defaults. | ||
ProtectKernelDefaults *bool `json:"protectKernelDefaults,omitempty" flag:"protect-kernel-defaults"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should any of these be documented? None jump out to me as something most users would adjust but worth thinking about. |
||
} | ||
|
||
// KubeProxyConfig defines the configuration for a proxy | ||
|
@@ -198,6 +206,10 @@ type KubeProxyConfig struct { | |
type KubeAPIServerConfig struct { | ||
// Image is the docker container used | ||
Image string `json:"image,omitempty"` | ||
// DisableBasicAuth removes the --basic-auth-file flag | ||
DisableBasicAuth bool `json:"disableBasicAuth,omitempty"` | ||
// EnableTokenAuth removes the --token-auth-file flag | ||
DisableTokenAuth bool `json:"disableTokenAuth,omitempty"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we get docs for these included in this commit? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've updated the commit to include docs for these two options. |
||
// LogLevel is the logging level of the api | ||
LogLevel int32 `json:"logLevel,omitempty" flag:"v" flag-empty:"0"` | ||
// CloudProvider is the name of the cloudProvider we are using, aws, gce etcd | ||
|
@@ -315,9 +327,14 @@ type KubeAPIServerConfig struct { | |
FeatureGates map[string]string `json:"featureGates,omitempty" flag:"feature-gates"` | ||
// MaxRequestsInflight The maximum number of non-mutating requests in flight at a given time. | ||
MaxRequestsInflight int32 `json:"maxRequestsInflight,omitempty" flag:"max-requests-inflight" flag-empty:"0"` | ||
|
||
// EtcdQuorumRead configures the etcd-quorum-read flag, which forces consistent reads from etcd | ||
EtcdQuorumRead *bool `json:"etcdQuorumRead,omitempty" flag:"etcd-quorum-read"` | ||
// Enable profiling via web interface | ||
Profiling *bool `json:"profiling,omitempty" flag:"profiling"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency, |
||
// Verify service account token | ||
ServiceAccountLookup *bool `json:"serviceAccountLookup,omitempty" flag:"service-account-lookup"` | ||
// Repair malformed requests from clients | ||
RepairMalformedUpdates *bool `json:"repairMalformedUpdates,omitempty" flag:"repair-malformed-updates"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need this one? It's deprecated and defaults to false now. |
||
} | ||
|
||
// KubeControllerManagerConfig is the configuration for the controller | ||
|
@@ -379,6 +396,8 @@ type KubeControllerManagerConfig struct { | |
HorizontalPodAutoscalerUseRestClients *bool `json:"horizontalPodAutoscalerUseRestClients,omitempty" flag:"horizontal-pod-autoscaler-use-rest-clients"` | ||
// FeatureGates is set of key=value pairs that describe feature gates for alpha/experimental features. | ||
FeatureGates map[string]string `json:"featureGates,omitempty" flag:"feature-gates"` | ||
// Enable profiling via web interface | ||
Profiling *bool `json:"profiling,omitempty" flag:"profiling"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
} | ||
|
||
type CloudControllerManagerConfig struct { | ||
|
@@ -415,6 +434,8 @@ type KubeSchedulerConfig struct { | |
LogLevel int32 `json:"logLevel,omitempty" flag:"v"` | ||
// Image is the docker image to use | ||
Image string `json:"image,omitempty"` | ||
// Enable profiling via web interface | ||
Profiling *bool `json:"profiling,omitempty" flag:"profiling"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
// LeaderElection defines the configuration of leader election client. | ||
LeaderElection *LeaderElectionConfiguration `json:"leaderElection,omitempty"` | ||
// UsePolicyConfigMap enable setting the scheduler policy from a configmap | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,6 +164,14 @@ type KubeletConfigSpec struct { | |
FailSwapOn *bool `json:"failSwapOn,omitempty" flag:"fail-swap-on"` | ||
// ExperimentalAllowedUnsafeSysctls are passed to the kubelet config to whitelist allowable sysctls | ||
ExperimentalAllowedUnsafeSysctls []string `json:"experimental_allowed_unsafe_sysctls,omitempty" flag:"experimental-allowed-unsafe-sysctls"` | ||
// EventQps If > 0, limit event creations per second to this value. If 0, unlimited. | ||
EventQPS *int32 `json:"eventQps,omitempty" flag:"event-qps"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same naming changes for the json fields needed in v1alpha1 and v1alpha2, I think! I won't repeat them so as not to flood you with comments! |
||
// MakeIptablesUtilChains will ensure iptables utility rules are present on host. | ||
MakeIptablesUtilChains *bool `json:"makeIptablesUtilChains,omitempty" flag:"make-iptables-util-chains"` | ||
// CAdvisorPort The port of the localhost cAdvisor endpoint (set to 0 to disable) (default 4194) | ||
CAdvisorPort *int32 `json:"cadvisorPort,omitempty" flag:"cadvisor-port"` | ||
// ProtectKernelDefaults Default kubelet behaviour for kernel tuning. If set, kubelet errors if any of kernel tunables is different than kubelet defaults. | ||
ProtectKernelDefaults *bool `json:"protectKernelDefaults,omitempty" flag:"protect-kernel-defaults"` | ||
} | ||
|
||
// KubeProxyConfig defines the configuration for a proxy | ||
|
@@ -198,6 +206,10 @@ type KubeProxyConfig struct { | |
type KubeAPIServerConfig struct { | ||
// Image is the docker container used | ||
Image string `json:"image,omitempty"` | ||
// DisableBasicAuth removes the --basic-auth-file flag | ||
DisableBasicAuth bool `json:"disableBasicAuth,omitempty"` | ||
// EnableTokenAuth removes the --token-auth-file flag | ||
DisableTokenAuth bool `json:"disableTokenAuth,omitempty"` | ||
// LogLevel is the logging level of the api | ||
LogLevel int32 `json:"logLevel,omitempty" flag:"v" flag-empty:"0"` | ||
// CloudProvider is the name of the cloudProvider we are using, aws, gce etcd | ||
|
@@ -315,9 +327,14 @@ type KubeAPIServerConfig struct { | |
FeatureGates map[string]string `json:"featureGates,omitempty" flag:"feature-gates"` | ||
// MaxRequestsInflight The maximum number of non-mutating requests in flight at a given time. | ||
MaxRequestsInflight int32 `json:"maxRequestsInflight,omitempty" flag:"max-requests-inflight" flag-empty:"0"` | ||
|
||
// EtcdQuorumRead configures the etcd-quorum-read flag, which forces consistent reads from etcd | ||
EtcdQuorumRead *bool `json:"etcdQuorumRead,omitempty" flag:"etcd-quorum-read"` | ||
// Enable profiling via web interface. | ||
Profiling *bool `json:"profiling,omitempty" flag:"profiling"` | ||
// Verify service account token | ||
ServiceAccountLookup *bool `json:"serviceAccountLookup,omitempty" flag:"service-account-lookup"` | ||
// Repair malformed requests from clients | ||
RepairMalformedUpdates *bool `json:"repairMalformedUpdates,omitempty" flag:"repair-malformed-updates"` | ||
} | ||
|
||
// KubeControllerManagerConfig is the configuration for the controller | ||
|
@@ -379,6 +396,8 @@ type KubeControllerManagerConfig struct { | |
HorizontalPodAutoscalerUseRestClients *bool `json:"horizontalPodAutoscalerUseRestClients,omitempty" flag:"horizontal-pod-autoscaler-use-rest-clients"` | ||
// FeatureGates is set of key=value pairs that describe feature gates for alpha/experimental features. | ||
FeatureGates map[string]string `json:"featureGates,omitempty" flag:"feature-gates"` | ||
// Enable profiling via web interface. | ||
Profiling *bool `json:"profiling,omitempty" flag:"profiling"` | ||
} | ||
|
||
type CloudControllerManagerConfig struct { | ||
|
@@ -415,6 +434,8 @@ type KubeSchedulerConfig struct { | |
LogLevel int32 `json:"logLevel,omitempty" flag:"v"` | ||
// Image is the docker image to use | ||
Image string `json:"image,omitempty"` | ||
// Enable profiling via web interface | ||
Profiling bool `json:"profiling,omitempty" flag:"profiling"` | ||
// LeaderElection defines the configuration of leader election client. | ||
LeaderElection *LeaderElectionConfiguration `json:"leaderElection,omitempty"` | ||
// UsePolicyConfigMap enable setting the scheduler policy from a configmap | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we now (finally) have more componentconfig upstream in kubernetes/kubernetes. We should try to be consistent where it's possible to smooth the path for users.
Looking at componentconfig, the json form should probably be capitalized as
QPS
, and in fact should beeventRecordQPS
(
pkg/kubelet/apis/kubeletconfig/v1beta1/types.go
hasEventRecordQPS *int32
json:"eventRecordQPS,omitempty"``