v1.9 升级到 v1.10
遵循常规升级流程。
升级后显著变化
API 变化
- 引入新 API
WorkloadRebalancer
以支持重新调度。 - 在 Karmada API 中引入了
ServiceAnnotations
,用于提供一组额外的annotations
来注释 karmada apiserver 服务。 - 为 resourceinterpretercustomizations CRD 资源添加短名称
ric
。
弃用
- 以下 Labels 已从版本
v1.8.0
中弃用,现在已被移除:resourcebinding.karmada.io/uid
clusterresourcebinding.karmada.io/uid
work.karmada.io/uid
propagationpolicy.karmada.io/uid
clusterpropagationpolicy.karmada.io/uid
- 以下 Labels 现已弃用并删除:
resourcebinding.karmada.io/key
被替换为resourcebinding.karmada.io/permanent-id
clusterresourcebinding.karmada.io/key
被替换为clusterresourcebinding.karmada.io/permanent-id
work.karmada.io/namespace
被替换为work.karmada.io/permanent-id
work.karmada.io/name
被替换为work.karmada.io/permanent-id
resourcebinding.karmada.io/depended-id
karmadactl
: 参数“—cluster-zone”在版本 1.7 中已弃用并被“—cluster-zones”取代,现已被删除。
Webhook 配置
v1.10 版本将生成 Permanent ID 的工作从 karmada-controller-manager 组件中移至了 Karmada-webhook组件,因此您需要在 mutating-config
MutatingWebhookConfiguration 资源对象中增加对 ResourceBinding/ClusterResourceBinding/MultiClusterService 类型资源的 mutate 操作,具体配置如下:
- name: resourcebinding.karmada.io
rules:
- operations: [ "CREATE" ]
apiGroups: [ "work.karmada.io" ]
apiVersions: [ "*" ]
resources: [ "resourcebindings" ]
scope: "Namespaced"
clientConfig:
url: https://karmada-webhook.karmada-system.svc:443/mutate-resourcebinding
caBundle: {{caBundle}}
failurePolicy: Fail
sideEffects: None
admissionReviewVersions: [ "v1" ]
timeoutSeconds: 3
- name: clusterresourcebinding.karmada.io
rules:
- operations: [ "CREATE" ]
apiGroups: [ "work.karmada.io" ]
apiVersions: [ "*" ]
resources: [ "clusterresourcebindings" ]
scope: "Cluster"
clientConfig:
url: https://karmada-webhook.karmada-system.svc:443/mutate-clusterresourcebinding
caBundle: {{caBundle}}
failurePolicy: Fail
sideEffects: None
admissionReviewVersions: [ "v1" ]
timeoutSeconds: 3
- name: multiclusterservice.karmada.io
rules:
- operations: [ "CREATE", "UPDATE" ]
apiGroups: [ "networking.karmada.io" ]
apiVersions: [ "*" ]
resources: [ "multiclusterservices" ]
scope: "Namespaced"
clientConfig:
url: https://karmada-webhook.karmada-system.svc:443/mutate-multiclusterservice
caBundle: {{caBundle}}
failurePolicy: Fail
sideEffects: None
admissionReviewVersions: [ "v1" ]
timeoutSeconds: 3
karmada-search
- 功能 APIPriorityAndFairness 已经被移入到 GA,因此现在不允许通过 feature gates禁用此功能. 你需要删除相应的
--feature-gates
启动参数。
karmada-aggregated-apiserver
- 功能 APIPriorityAndFairness 已经被移入到 GA,因此现在不允许通过 feature gates禁用此功能. 你需要删除相应的
--feature-gates
启动参数。
请参考 v1.10.0 Release Notes 获取更多信息。