What's New
Taint-based eviction in graceful way
We introduced a new controller named taint manager
which aims to evict workloads from faulty clusters after a grace period.
Then the scheduler would select new best-fit clusters for the workloads. In addition, if the feature GracefulEviction
is enabled,
the eviction will be very smooth, that is, the removal of evicted workloads will be delayed until the workloads are available on
new clusters or reach the maximum grace period. For more details please refer to Failover Overview.
(Feature contributor: @Garrybest, @XiShanYongYe-Chang)
Global proxy for resources across multi-clusters
We introduced a new proxy feature to karmada-search
that allows users to access resources in multiple clusters in a way just like accessing resources in a single cluster. No matter whether the resources are managed by Karmada, by leveraging the proxy, users
can manipulate the resources from the Karmada control plane.
For more details please refer to Global Resource Proxy.
(Feature contributor: @ikaven1024, @XiShanYongYe-Chang)
Cluster resource modeling
To provide a more accurate scheduling basis for the scheduler, we introduced a way to model the cluster's available resources.
The cluster status controller will model the resources as per the customized resource models, which is more accurate than the general resource summary. For more details please refer to Cluster Resource Modeling.
(Feature contributor: @halfrost, @Poor12)
Bootstrap token-based cluster registration
Now for clusters in Pull
mode, we provide a way for them to register with the Karmada control plane. By leveraging the commands token
and register
in kubectl
, the registration process including deploying the karmada-agent
can be completed very easily. For more details please refer to Register cluster with Pull mode.
(Feature contributor: @lonelyCZ )
Significant improvement in system scalability
We improved the system scalability, such as:
- Enable pprof(#2008)
- Introduce
cachedRESTMapper
(#2187) - Adopt the transform function to reduce memory usage(#2383)
With these improvements, Karmada can easily manage hundreds of huge clusters. The detailed test report will be released soon.
Other Notable Changes
API changes
- The
Cluster
API is added optional fieldID
to uniquely identify the cluster. (@RainbowMango, #2180) - The
Cluster
API is added optional fieldProxyHeader
to specify the HTTP header required by the proxy server. (@mrlihanbo, #1874) - The
Cluster
API is added optional field namedResourceModels
to specify resource modeling. (@halfrost, #2386) - The
Work
andResourceBinding
/ClusterResourceBinding
APIs are added fieldhealth
to represent the state of workload. (@XiShanYongYe-Chang, #2351)
Bug Fixes
karmadactl
: Fixed issue that Kubernetes v1.24 cannot be joined. (@zgfh, #1972)karmadactl
: Fixed a panic issue when retrieving resources from an unknown cluster(karmadactl get xxx --cluster=not-exist
). (@my-git9, #2171)karmadactl
: Fixed failed promoting if a resource with another kind using the same name has been promoted before. (@wuyingjun-lucky, #1824)karmada-search
: Fixed panic when the resource annotation is nil. (@XiShanYongYe-Chang, #1921)karmada-search
: Fixed paniccomparing uncomparable type cache.ResourceEventHandlerFuncs
. (@liys87x, #1951)karmada-search
: Fixed failed query on a single namespace (@luoMonkeyKing, #2227)karmada-controller-manager
: Fixed thatJob
status might be incorrectly marked asCompleted
. (@Garrybest, #1987)karmada-controller-manager
: Fixed returning err when the interpreter webhook returns nil patch and nil patchType. (@CharlesQQ, #2161)karmada-controller-manager
: Fixed that Argo CD cannot assess Deployment health status. (@xuqianjins, #2241)karmada-controller-manager
: Fixed that Argo CD cannot assess StatefulSet/DaemonSet health status. (@RainbowMango, #2252)karmada-controller-manager
/karmada-agent
: Fixed an resource status can not be collected issue in case of Resource Interpreter returns an error. (@XiShanYongYe-Chang, #2428)karmada-sechduler
: Fixed a panic issue whenreplicaDivisionPreference
isWeighted
andWeightPreference
is nil. (@XiShanYongYe-Chang, #2451)
Features & Enhancements
karmadactl
: Added--force
flag todeinit
to skip confirmation. (@zgfh, #2016)karmadactl
: The flag-c
of sub-commandpromote
now has been changed to uppercase-C
. (@Fish-pro, #2140)- ``karmadactl
: Introduced
--cluster-zone` and `--cluster-region` flags to `join` command to specify the zone and region of joining cluster. (@chaunceyjiang, #2048) karmadactl
: Introduced--namespace
flag toexec
command to specify the workload namespace. (@carlory, #2092)karmadactl
: Allowed reading namespaces from the context field of karmada config forget
command. (@carlory, #2148)karmadactl
: Introducedapply
subcommand to apply a configuration to a resource by file name or stdin. (@carlory, #2000)karmadactl
: Introduced--namespace
flag todescribe
command to specify the namespace the workload belongs to. (@TheStylite, #2153)karmadactl
: Introduced--cluster
flag forapply
command to allow users to select one or many member clusters to propagate resources. (@carlory, #2192)karmadactl
: Introduced options subcmd to list global command-line options. (@lonelyCZ, #2283)karmadactl
: Introduced thetoken
command to manage bootstrap tokens. (@lonelyCZ, #2399)karmadactl
: Introduced theregister
command for joining PULL mode cluster. (@lonelyCZ, #2388)karmada-scheduler
: Introduced--enable-empty-workload-propagation
flag to enable propagating empty workloads. (@CharlesQQ, #1720)karmada-scheduler
: Allowed extended plugins in an out-of-tree mode. (@kerthcet, #1663)karmada-scheduler
: Introduced--disable-scheduler-estimator-in-pull-mode
flag to disable scheduler-estimator for clusters in pull mode. (@prodanlabs, #2064)karmada-scheduler
: Introduced--plugins
flag to enable or disable scheduler plugins. (@chaunceyjiang, #2135)karmada-scheduler
: Now the scheduler starts to re-schedule in case of cluster state changes. (@chaunceyjiang, #2301)karmada-search
: The search API supports searching for resources according to labels. (@XiShanYongYe-Chang, #1917)karmada-search
: The annotationcluster.karmada.io/name
which is used to represent the source of cache now has been changed toresource.karmada.io/cached-from-cluster
. (@calvin0327, #1960)karmada-search
: Fixed panic issue when dumping error info. (@AllenZMC, #2231)karmada-controller-manager/karmada-agent
: Cluster state controller now able to collect partial API list in the case of discovery failure. (@duanmengkk, #1968)karmada-controller-manager/karmada-agent
: Introduced--cluster-success-threshold
flag to specify cluster success threshold. Default to 30s. (@dddddai, #1884)karmada-controller-manager/karmada-agent
: Added CronJob support to the default resource interpreter framework. (@chaunceyjiang, #2060)karmada-controller-manager
/karmada-agent
: Introduced--leader-elect-lease-duration
,--leader-elect-renew-deadline
and--leader-elect-retry-period
flags to specify leader election behaviors. (@CharlesQQ, #2056)karmada-controller-manager
/karmada-agent
: Fixed panic issue when dumping error infos. (@AllenZMC, #2117)karmada-controller-manager
/karmada-agent
: Supported interpreting health state by leveringResource Interpreter Framework
. (@zhuwint, #2329)karmada-controller-manager
/karmada-agent
: Introduced--enable-cluster-resource-modeling
flag to enable or disable cluster modeling feature. (@RainbowMango, #2387)karmada-controller-manager
/karmada-agent
: Now able to retain.spec.claimRef
field ofPersistentVolume
. (@Garrybest, #2415)karmada-controller-manager
:interpreter framework
starts to support Pod state aggregation. (@xyz2277, #1913)karmada-controller-manager
:interpreter framework
starts to support PVC state aggregation. (@chaunceyjiang, #2070)karmada-controller-manager
: Stopped reporting and refreshinglease
for clusters inPush
mode. (@dddddai, #2033)karmada-controller-manager
:interpreter framework
starts to support PodFailded
andSucceeded
aggregation. (@chaunceyjiang, #2146)karmada-controller-manager
:namespace
controller starts to applyClusterOverridePolicy
during propagation namespaces. (@zirain, #2263)karmada-controller-manager
: Propagation dependencies support propagating ServiceAccounts. (@chaunceyjiang, #2035)karmada-agent
: Introduced--metrics-bind-address
flag to specify the address for serving Prometheus metrics. (@1953, #1953)karmada-agent
: Introduced--report-secrets
flag to allow secrets to be reported to the Karmada control plane during registering. (@CharlesQQ, #1990)karmada-agent
: Introduced--cluster-provider
and--cluster-region
flags to specify cluster-provider and cluster-region during registering. (@CharlesQQ, #2152)karmada-webhook
: Added default tolerations, defaultNotReadyTolerationSeconds, and defaultUnreachableTolerationSeconds, for (Cluster)PropagationPolicy. (@Garrybest, #2284)karmada-webhook
: The '.spec.ttlSecondsAfterFinished' field of the Job resource will be removed before propagating to member clusters. (@chaunceyjiang, #2294)karmada-agent
/karmadactl
: Now an error will be reported when registering the same cluster to Karmada. (@yy158775, #2369)
Other
Helm Chart
Helm chart
: Updated defaultkube-apiserver
from v1.21 to v1.22. (@AllenZMC, #1941)Helm Chart
: Added missingAPIService
configuration forkarmada-aggregated-apiserver
. (@zhixian82, #2258)Helm Chart
: Fixed the webhook service mismatch issue in the case of customized release name. (@calvin0327, #2275)Helm Chart
: Introduced--cluster-api-endpoint
forkarmada-agent
. (@my-git9, #2299)Helm Chart
: Fixed misconfiguredMutatingWebhookConfiguration
. (@zhixian82, #2401)
Dependencies
- Karmada is now built with Golang 1.18.3. (@RainbowMango, #2032)
- Kubernetes dependencies are now updated to v1.24.2. (@RainbowMango, #2050)
Deprecation
karmadactl
: Removed--dry-run
flag fromdescribe
,exec
andlog
commands. (@carlory, #2023)karmadactl
: Removed the--cluster-namespace
flag forget
command. (@carlory, #2190)karmadactl
: Removed the--cluster-namespace
flag forpromote
command. (@carlory, #2193)
Contributors
Thank you to everyone who contributed to this release!
Users whose commits are in this release (alphabetically by user name)
- @AllenZMC
- @calvin0327
- @carlory
- @CharlesQQ
- @Charlie17Li
- @chaunceyjiang
- @cutezhangq
- @dapengJacky
- @dddddai
- @duanmengkk
- @Fish-pro
- @Garrybest
- @gy95
- @halfrost
- @hanweisen
- @huntsman-li
- @ikaven1024
- @joengjyu
- @JoshuaAndrew
- @kerthcet
- @kevin-wangzefeng
- @kinzhi
- @likakuli
- @lonelyCZ
- @luoMonkeyKing
- @maoyangLiu
- @mathlsj
- @mikeshng
- @Momeaking
- @mrlihanbo
- @my-git9
- @nuclearwu
- @Poor12
- @prodanlabs
- @RainbowMango
- @suwliang3
- @TheStylite
- @wawa0210
- @weilaaa
- @windsonsea
- @wlp1153468871
- @wuyingjun-lucky
- @XiShanYongYe-Chang
- @xuqianjins
- @xyz2277
- @yusank
- @yy158775
- @zgfh
- @zhixian82
- @zhuwint
- @zirain