-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add discovered deployment-rbd dr resources
The ManagedClusterBinding belongs to the ramen-ops namespace and not to the application, so we keep it in the ramen-ops directory. The rest of the resources are in the deployment-rbd directory. I'm not sure how easy it will be to share a base kustomization with other workloads so lets start with something simple. Unfinished: - relocate - disable DR - undeploy Signed-off-by: Nir Soffer <[email protected]>
- Loading branch information
Showing
6 changed files
with
327 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
apiVersion: ramendr.openshift.io/v1alpha1 | ||
kind: DRPlacementControl | ||
metadata: | ||
name: drpc | ||
spec: | ||
preferredCluster: dr1 | ||
drPolicyRef: | ||
name: dr-policy | ||
placementRef: | ||
kind: Placement | ||
# Match kustomization namePrefix | ||
name: deployment-rbd-placement | ||
namespace: ramen-ops | ||
pvcSelector: | ||
matchLabels: | ||
appname: busybox | ||
protectedNamespaces: | ||
- deployment-rbd | ||
kubeObjectProtection: | ||
kubeObjectSelector: | ||
matchExpressions: | ||
- key: appname | ||
operator: In | ||
values: | ||
- busybox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
namespace: ramen-ops | ||
namePrefix: deployment-rbd- | ||
commonLabels: | ||
app: deployment-rbd | ||
resources: | ||
- drpc.yaml | ||
- placement.yaml | ||
- placement-decision.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: cluster.open-cluster-management.io/v1beta1 | ||
kind: PlacementDecision | ||
metadata: | ||
labels: | ||
cluster.open-cluster-management.io/placement: deployment-rbd-placement | ||
name: placement-decision |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
apiVersion: cluster.open-cluster-management.io/v1beta1 | ||
kind: Placement | ||
metadata: | ||
annotations: | ||
cluster.open-cluster-management.io/experimental-scheduling-disable: "true" | ||
name: placement | ||
spec: | ||
clusterSets: | ||
- default | ||
numberOfClusters: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
apiVersion: cluster.open-cluster-management.io/v1beta2 | ||
kind: ManagedClusterSetBinding | ||
metadata: | ||
name: default | ||
namespace: ramen-ops | ||
spec: | ||
clusterSet: default |