Add an yaml example

Signed-off-by: RainbowMango <renhongcai@huawei.com>
This commit is contained in:
RainbowMango 2021-04-08 12:06:33 +08:00 committed by Hongcai Ren
parent 12a19ab5e5
commit e4992e46fc
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
apiVersion: policy.karmada.io/v1alpha1
kind: OverridePolicy
metadata:
name: example-override
namespace: default
spec:
resourceSelectors:
- apiVersion: apps/v1
kind: Deployment
targetCluster:
labelSelector:
matchLabels:
location: us
overriders:
imageOverrider:
- component: Registry
operator: replace
value: fictional.registry.us