You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/descheduler/app/options/options.go
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,14 @@ type Options struct {
62
62
SchedulerEstimatorServicePrefixstring
63
63
// SchedulerEstimatorPort is the port that the accurate scheduler estimator server serves at.
64
64
SchedulerEstimatorPortint
65
+
// SchedulerEstimatorCertFile SSL certification file used to secure scheduler estimator communication.
66
+
SchedulerEstimatorCertFilestring
67
+
// SchedulerEstimatorKeyFile SSL key file used to secure scheduler estimator communication.
68
+
SchedulerEstimatorKeyFilestring
69
+
// SchedulerEstimatorCaFile SSL Certificate Authority file used to secure scheduler estimator communication.
70
+
SchedulerEstimatorCaFilestring
71
+
// InsecureSkipEstimatorVerify controls whether verifies the grpc server's certificate chain and host name.
72
+
InsecureSkipEstimatorVerifybool
65
73
// DeschedulingInterval specifies time interval for descheduler to run.
66
74
DeschedulingInterval metav1.Duration
67
75
// UnschedulableThreshold specifies the period of pod unschedulable condition.
@@ -99,6 +107,10 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {
99
107
fs.IntVar(&o.KubeAPIBurst, "kube-api-burst", 60, "Burst to use while talking with karmada-apiserver.")
100
108
fs.DurationVar(&o.SchedulerEstimatorTimeout.Duration, "scheduler-estimator-timeout", 3*time.Second, "Specifies the timeout period of calling the scheduler estimator service.")
101
109
fs.IntVar(&o.SchedulerEstimatorPort, "scheduler-estimator-port", defaultEstimatorPort, "The secure port on which to connect the accurate scheduler estimator.")
110
+
fs.StringVar(&o.SchedulerEstimatorCertFile, "scheduler-estimator-cert-file", "", "SSL certification file used to secure scheduler estimator communication.")
111
+
fs.StringVar(&o.SchedulerEstimatorKeyFile, "scheduler-estimator-key-file", "", "SSL key file used to secure scheduler estimator communication.")
112
+
fs.StringVar(&o.SchedulerEstimatorCaFile, "scheduler-estimator-ca-file", "", "SSL Certificate Authority file used to secure scheduler estimator communication.")
113
+
fs.BoolVar(&o.InsecureSkipEstimatorVerify, "insecure-skip-estimator-verify", false, "Controls whether verifies the scheduler estimator's certificate chain and host name.")
102
114
fs.StringVar(&o.SchedulerEstimatorServicePrefix, "scheduler-estimator-service-prefix", "karmada-scheduler-estimator", "The prefix of scheduler estimator service name")
103
115
fs.DurationVar(&o.DeschedulingInterval.Duration, "descheduling-interval", defaultDeschedulingInterval, "Time interval between two consecutive descheduler executions. Setting this value instructs the descheduler to run in a continuous loop at the interval specified.")
104
116
fs.DurationVar(&o.UnschedulableThreshold.Duration, "unschedulable-threshold", defaultUnschedulableThreshold, "The period of pod unschedulable condition. This value is considered as a classification standard of unschedulable replicas.")
Copy file name to clipboardExpand all lines: cmd/scheduler-estimator/app/options/options.go
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,14 @@ type Options struct {
40
40
SecurePortint
41
41
// ServerPort is the port that the server gRPC serves at.
42
42
ServerPortint
43
+
// InsecureSkipGrpcClientVerify controls whether verifies the grpc client's certificate chain and host name.
44
+
InsecureSkipGrpcClientVerifybool
45
+
// GrpcAuthCertFile SSL certification file used for grpc SSL/TLS connections.
46
+
GrpcAuthCertFilestring
47
+
// GrpcAuthKeyFile SSL key file used for grpc SSL/TLS connections.
48
+
GrpcAuthKeyFilestring
49
+
// GrpcClientCaFile SSL Certificate Authority file used to verify grpc client certificates on incoming requests.
50
+
GrpcClientCaFilestring
43
51
// ClusterAPIQPS is the QPS to use while talking with cluster kube-apiserver.
44
52
ClusterAPIQPSfloat32
45
53
// ClusterAPIBurst is the burst to allow while talking with cluster kube-apiserver.
@@ -64,6 +72,10 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {
64
72
fs.StringVar(&o.ClusterName, "cluster-name", o.ClusterName, "Name of member cluster that the estimator serves for.")
65
73
fs.StringVar(&o.BindAddress, "bind-address", defaultBindAddress, "The IP address on which to listen for the --secure-port port.")
66
74
fs.IntVar(&o.ServerPort, "server-port", defaultServerPort, "The secure port on which to serve gRPC.")
75
+
fs.StringVar(&o.GrpcAuthCertFile, "grpc-auth-cert-file", "", "SSL certification file used for grpc SSL/TLS connections.")
76
+
fs.StringVar(&o.GrpcAuthKeyFile, "grpc-auth-key-file", "", "SSL key file used for grpc SSL/TLS connections.")
77
+
fs.BoolVar(&o.InsecureSkipGrpcClientVerify, "insecure-skip-grpc-client-verify", false, "If set to true, the estimator will not verify the grpc client's certificate chain and host name. When the relevant certificates are not configured, it will not take effect.")
78
+
fs.StringVar(&o.GrpcClientCaFile, "grpc-client-ca-file", "", "SSL Certificate Authority file used to verify grpc client certificates on incoming requests if --client-cert-auth flag is set.")
67
79
fs.IntVar(&o.SecurePort, "secure-port", defaultHealthzPort, "The secure port on which to serve HTTPS.")
68
80
fs.Float32Var(&o.ClusterAPIQPS, "kube-api-qps", 20.0, "QPS to use while talking with apiserver.")
69
81
fs.IntVar(&o.ClusterAPIBurst, "kube-api-burst", 30, "Burst to use while talking with apiserver.")
Copy file name to clipboardExpand all lines: cmd/scheduler/app/options/options.go
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,14 @@ type Options struct {
71
71
SchedulerEstimatorServicePrefixstring
72
72
// SchedulerEstimatorPort is the port that the accurate scheduler estimator server serves at.
73
73
SchedulerEstimatorPortint
74
+
// InsecureSkipEstimatorVerify controls whether verifies the grpc server's certificate chain and host name.
75
+
InsecureSkipEstimatorVerifybool
76
+
// SchedulerEstimatorCertFile SSL certification file used to secure scheduler estimator communication.
77
+
SchedulerEstimatorCertFilestring
78
+
// SchedulerEstimatorKeyFile SSL key file used to secure scheduler estimator communication.
79
+
SchedulerEstimatorKeyFilestring
80
+
// SchedulerEstimatorCaFile SSL Certificate Authority file used to secure scheduler estimator communication.
81
+
SchedulerEstimatorCaFilestring
74
82
75
83
// EnableEmptyWorkloadPropagation represents whether workload with 0 replicas could be propagated to member clusters.
76
84
EnableEmptyWorkloadPropagationbool
@@ -138,6 +146,10 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {
138
146
fs.DurationVar(&o.SchedulerEstimatorTimeout.Duration, "scheduler-estimator-timeout", 3*time.Second, "Specifies the timeout period of calling the scheduler estimator service.")
139
147
fs.StringVar(&o.SchedulerEstimatorServicePrefix, "scheduler-estimator-service-prefix", "karmada-scheduler-estimator", "The prefix of scheduler estimator service name")
140
148
fs.IntVar(&o.SchedulerEstimatorPort, "scheduler-estimator-port", defaultEstimatorPort, "The secure port on which to connect the accurate scheduler estimator.")
149
+
fs.StringVar(&o.SchedulerEstimatorCertFile, "scheduler-estimator-cert-file", "", "SSL certification file used to secure scheduler estimator communication.")
150
+
fs.StringVar(&o.SchedulerEstimatorKeyFile, "scheduler-estimator-key-file", "", "SSL key file used to secure scheduler estimator communication.")
151
+
fs.StringVar(&o.SchedulerEstimatorCaFile, "scheduler-estimator-ca-file", "", "SSL Certificate Authority file used to secure scheduler estimator communication.")
152
+
fs.BoolVar(&o.InsecureSkipEstimatorVerify, "insecure-skip-estimator-verify", false, "Controls whether verifies the scheduler estimator's certificate chain and host name.")
141
153
fs.BoolVar(&o.EnableEmptyWorkloadPropagation, "enable-empty-workload-propagation", false, "Enable workload with replicas 0 to be propagated to member clusters.")
fmt.Sprintf("A list of plugins to enable. '*' enables all build-in and customized plugins, 'foo' enables the plugin named 'foo', '*,-foo' disables the plugin named 'foo'.\nAll build-in plugins: %s.", strings.Join(frameworkplugins.NewInTreeRegistry().FactoryNames(), ",")))
0 commit comments