karmada-agent

Synopsis

The karmada-agent is the agent of member clusters. It can register a specific cluster to the Karmada control plane and sync manifests from the Karmada control plane to the member cluster. In addition, it also syncs the status of member cluster and manifests to the Karmada control plane.

  1. karmada-agent [flags]

Options

  1. --add_dir_header If true, adds the file directory to the header of the log messages
  2. --alsologtostderr log to standard error as well as files (no effect when -logtostderr=true)
  3. --cert-rotation-checking-interval duration The interval of checking if the certificate need to be rotated. This is only applicable if cert rotation is enabled (default 5m0s)
  4. --cert-rotation-remaining-time-threshold float The threshold of remaining time of the valid certificate. This is only applicable if cert rotation is enabled. (default 0.2)
  5. --cluster-api-burst int Burst to use while talking with cluster kube-apiserver. (default 60)
  6. --cluster-api-endpoint string APIEndpoint of the cluster.
  7. --cluster-api-qps float32 QPS to use while talking with cluster kube-apiserver. (default 40)
  8. --cluster-cache-sync-timeout duration Timeout period waiting for cluster cache to sync. (default 2m0s)
  9. --cluster-failure-threshold duration The duration of failure for the cluster to be considered unhealthy. (default 30s)
  10. --cluster-lease-duration duration Specifies the expiration period of a cluster lease. (default 40s)
  11. --cluster-lease-renew-interval-fraction float Specifies the cluster lease renew interval fraction. (default 0.25)
  12. --cluster-name string Name of member cluster that the agent serves for.
  13. --cluster-namespace string Namespace in the control plane where member cluster secrets are stored. (default "karmada-cluster")
  14. --cluster-provider string Provider of the joining cluster. The Karmada scheduler can use this information to spread workloads across providers for higher availability.
  15. --cluster-region string The region of the joining cluster. The Karmada scheduler can use this information to spread workloads across regions for higher availability.
  16. --cluster-status-update-frequency duration Specifies how often karmada-agent posts cluster status to karmada-apiserver. Note: be cautious when changing the constant, it must work with ClusterMonitorGracePeriod in karmada-controller-manager. (default 10s)
  17. --cluster-success-threshold duration The duration of successes for the cluster to be considered healthy after recovery. (default 30s)
  18. --cluster-zones strings The zones of the joining cluster. The Karmada scheduler can use this information to spread workloads across zones for higher availability.
  19. --concurrent-cluster-syncs int The number of Clusters that are allowed to sync concurrently. (default 5)
  20. --concurrent-work-syncs int The number of Works that are allowed to sync concurrently. (default 5)
  21. --controllers strings A list of controllers to enable. '*' enables all on-by-default controllers, 'foo' enables the controller named 'foo', '-foo' disables the controller named 'foo'. All controllers: certRotation, clusterStatus, endpointsliceCollect, execution, serviceExport, workStatus. (default [*])
  22. --enable-cluster-resource-modeling Enable means controller would build resource modeling for each cluster by syncing Nodes and Pods resources.
  23. The resource modeling might be used by the scheduler to make scheduling decisions in scenario of dynamic replica assignment based on cluster free resources.
  24. Disable if it does not fit your cases for better performance. (default true)
  25. --enable-pprof Enable profiling via web interface host:port/debug/pprof/.
  26. --feature-gates mapStringBool A set of key=value pairs that describe feature gates for alpha/experimental features. Options are:
  27. AllAlpha=true|false (ALPHA - default=false)
  28. AllBeta=true|false (BETA - default=false)
  29. CustomizedClusterResourceModeling=true|false (BETA - default=true)
  30. Failover=true|false (BETA - default=true)
  31. GracefulEviction=true|false (BETA - default=true)
  32. MultiClusterService=true|false (ALPHA - default=false)
  33. PropagateDeps=true|false (BETA - default=true)
  34. PropagationPolicyPreemption=true|false (ALPHA - default=false)
  35. ResourceQuotaEstimate=true|false (ALPHA - default=false)
  36. --health-probe-bind-address string The TCP address that the controller should bind to for serving health probes(e.g. 127.0.0.1:10357, :10357). It can be set to "0" to disable serving the health probe. Defaults to 0.0.0.0:10357.
  37. -h, --help help for karmada-agent
  38. --karmada-context string Name of the cluster context in karmada control plane kubeconfig file.
  39. --karmada-kubeconfig string Path to karmada control plane kubeconfig file.
  40. --karmada-kubeconfig-namespace string Namespace of the secret containing karmada-agent certificate. This is only applicable if cert rotation is enabled. (default "karmada-system")
  41. --kube-api-burst int Burst to use while talking with karmada-apiserver. (default 60)
  42. --kube-api-qps float32 QPS to use while talking with karmada-apiserver. (default 40)
  43. --kubeconfig string Paths to a kubeconfig. Only required if out-of-cluster.
  44. --leader-elect Start a leader election client and gain leadership before executing the main loop. Enable this when running replicated components for high availability. (default true)
  45. --leader-elect-lease-duration duration The duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate. This is only applicable if leader election is enabled. (default 15s)
  46. --leader-elect-renew-deadline duration The interval between attempts by the acting master to renew a leadership slot before it stops leading. This must be less than or equal to the lease duration. This is only applicable if leader election is enabled. (default 10s)
  47. --leader-elect-resource-namespace string The namespace of resource object that is used for locking during leader election. (default "karmada-system")
  48. --leader-elect-retry-period duration The duration the clients should wait between attempting acquisition and renewal of a leadership. This is only applicable if leader election is enabled. (default 2s)
  49. --log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
  50. --log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true)
  51. --log_file string If non-empty, use this log file (no effect when -logtostderr=true)
  52. --log_file_max_size uint Defines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
  53. --logtostderr log to standard error instead of files (default true)
  54. --metrics-bind-address string The TCP address that the controller should bind to for serving prometheus metrics(e.g. 127.0.0.1:8080, :8080). It can be set to "0" to disable the metrics serving. (default ":8080")
  55. --one_output If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)
  56. --profiling-bind-address string The TCP address for serving profiling(e.g. 127.0.0.1:6060, :6060). This is only applicable if profiling is enabled. (default ":6060")
  57. --proxy-server-address string Address of the proxy server that is used to proxy to the cluster.
  58. --rate-limiter-base-delay duration The base delay for rate limiter. (default 5ms)
  59. --rate-limiter-bucket-size int The bucket size for rate limier. (default 100)
  60. --rate-limiter-max-delay duration The max delay for rate limiter. (default 16m40s)
  61. --rate-limiter-qps int The QPS for rate limier. (default 10)
  62. --report-secrets strings The secrets that are allowed to be reported to the Karmada control plane during registering. Valid values are 'KubeCredentials', 'KubeImpersonator' and 'None'. e.g 'KubeCredentials,KubeImpersonator' or 'None'. (default [KubeCredentials,KubeImpersonator])
  63. --resync-period duration Base frequency the informers are resynced.
  64. --skip_headers If true, avoid header prefixes in the log messages
  65. --skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true)
  66. --stderrthreshold severity logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=true) (default 2)
  67. -v, --v Level number for the log level verbosity
  68. --vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
Auto generated by spf13/cobra script in Karmada