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. --bind-address string The IP address on which to listen for the --secure-port port. (default "0.0.0.0")
  4. --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)
  5. --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)
  6. --cluster-api-burst int Burst to use while talking with cluster kube-apiserver. Doesn't cover events and node heartbeat apis which rate limiting is controlled by a different set of flags. (default 60)
  7. --cluster-api-endpoint string APIEndpoint of the cluster.
  8. --cluster-api-qps float32 QPS to use while talking with cluster kube-apiserver. Doesn't cover events and node heartbeat apis which rate limiting is controlled by a different set of flags. (default 40)
  9. --cluster-cache-sync-timeout duration Timeout period waiting for cluster cache to sync. (default 30s)
  10. --cluster-failure-threshold duration The duration of failure for the cluster to be considered unhealthy. (default 30s)
  11. --cluster-lease-duration duration Specifies the expiration period of a cluster lease. (default 40s)
  12. --cluster-lease-renew-interval-fraction float Specifies the cluster lease renew interval fraction. (default 0.25)
  13. --cluster-name string Name of member cluster that the agent serves for.
  14. --cluster-namespace string Namespace in the control plane where member cluster secrets are stored. (default "karmada-cluster")
  15. --cluster-provider string Provider of the joining cluster. The Karmada scheduler can use this information to spread workloads across providers for higher availability.
  16. --cluster-region string The region of the joining cluster. The Karmada scheduler can use this information to spread workloads across regions for higher availability.
  17. --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)
  18. --cluster-success-threshold duration The duration of successes for the cluster to be considered healthy after recovery. (default 30s)
  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, 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. PropagateDeps=true|false (BETA - default=true)
  33. -h, --help help for karmada-agent
  34. --karmada-context string Name of the cluster context in karmada control plane kubeconfig file.
  35. --karmada-kubeconfig string Path to karmada control plane kubeconfig file.
  36. --karmada-kubeconfig-namespace string Namespace of the secret containing karmada-agent certificate. This is only applicable if cert rotation is enabled. (default "karmada-system")
  37. --kube-api-burst int Burst to use while talking with karmada-apiserver. Doesn't cover events and node heartbeat apis which rate limiting is controlled by a different set of flags. (default 60)
  38. --kube-api-qps float32 QPS to use while talking with karmada-apiserver. Doesn't cover events and node heartbeat apis which rate limiting is controlled by a different set of flags. (default 40)
  39. --kubeconfig string Paths to a kubeconfig. Only required if out-of-cluster.
  40. --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)
  41. --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)
  42. --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)
  43. --leader-elect-resource-namespace string The namespace of resource object that is used for locking during leader election. (default "karmada-system")
  44. --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)
  45. --log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
  46. --log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true)
  47. --log_file string If non-empty, use this log file (no effect when -logtostderr=true)
  48. --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)
  49. --logtostderr log to standard error instead of files (default true)
  50. --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")
  51. --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)
  52. --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")
  53. --proxy-server-address string Address of the proxy server that is used to proxy to the cluster.
  54. --rate-limiter-base-delay duration The base delay for rate limiter. (default 5ms)
  55. --rate-limiter-bucket-size int The bucket size for rate limier. (default 100)
  56. --rate-limiter-max-delay duration The max delay for rate limiter. (default 16m40s)
  57. --rate-limiter-qps int The QPS for rate limier. (default 10)
  58. --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])
  59. --resync-period duration Base frequency the informers are resynced.
  60. --secure-port int The secure port on which to serve HTTPS. (default 10357)
  61. --skip_headers If true, avoid header prefixes in the log messages
  62. --skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true)
  63. --stderrthreshold severity logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=false) (default 2)
  64. -v, --v Level number for the log level verbosity
  65. --vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
Auto generated by spf13/cobra script in Karmada