Add workload sample files in custom resource interpreter example
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
This commit is contained in:
parent
f29eede546
commit
0d4fb81d9d
|
@ -0,0 +1,27 @@
|
||||||
|
apiVersion: policy.karmada.io/v1alpha1
|
||||||
|
kind: PropagationPolicy
|
||||||
|
metadata:
|
||||||
|
name: nginx-workload-propagation
|
||||||
|
spec:
|
||||||
|
resourceSelectors:
|
||||||
|
- apiVersion: workload.example.io/v1alpha1
|
||||||
|
kind: Workload
|
||||||
|
name: nginx
|
||||||
|
placement:
|
||||||
|
clusterAffinity:
|
||||||
|
clusterNames:
|
||||||
|
- member1
|
||||||
|
- member2
|
||||||
|
replicaScheduling:
|
||||||
|
replicaDivisionPreference: Weighted
|
||||||
|
replicaSchedulingType: Divided
|
||||||
|
weightPreference:
|
||||||
|
staticWeightList:
|
||||||
|
- targetCluster:
|
||||||
|
clusterNames:
|
||||||
|
- member1
|
||||||
|
weight: 2
|
||||||
|
- targetCluster:
|
||||||
|
clusterNames:
|
||||||
|
- member2
|
||||||
|
weight: 1
|
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: workload.example.io/v1alpha1
|
||||||
|
kind: Workload
|
||||||
|
metadata:
|
||||||
|
name: nginx
|
||||||
|
labels:
|
||||||
|
app: nginx
|
||||||
|
spec:
|
||||||
|
replicas: 3
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: nginx
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: nginx
|
||||||
|
name: nginx
|
Loading…
Reference in New Issue