-
Notifications
You must be signed in to change notification settings - Fork 66
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 seems to belong 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: - Deployment and enable DR work - need to test and document disable DR and undeploy Signed-off-by: Nir Soffer <nsoffer@redhat.com>
- Loading branch information
Showing
6 changed files
with
124 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 | ||
pvcSelector: | ||
matchLabels: | ||
appname: busybox | ||
protectedNamespaces: | ||
- deployment-rbd | ||
kubeObjectProtection: | ||
captureInterval: 1m | ||
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,10 @@ | ||
apiVersion: cluster.open-cluster-management.io/v1beta1 | ||
kind: PlacementDecision | ||
metadata: | ||
labels: | ||
cluster.open-cluster-management.io/placement: deployment-rbd-placement | ||
name: placement-decision | ||
status: | ||
decisions: | ||
- clusterName: dr1 | ||
reason: dr1 |
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,19 @@ | ||
--- | ||
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 | ||
predicates: | ||
- requiredClusterSelector: | ||
claimSelector: | ||
matchExpressions: | ||
- key: name | ||
operator: In | ||
values: | ||
- dr1 |
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 |