-
Notifications
You must be signed in to change notification settings - Fork 81
Add discovered application samples #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| 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 | ||
| 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| apiVersion: cluster.open-cluster-management.io/v1beta1 | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ramen already has code to create a placement decision with the right decision set: So this file should not be needed. |
||
| kind: PlacementDecision | ||
| metadata: | ||
| labels: | ||
| cluster.open-cluster-management.io/placement: deployment-rbd-placement | ||
| name: placement-decision | ||
| 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If ACM is never to look at the placement and placementdecision, then we don't need the managedClusterSetBinding. |
||
| apiVersion: cluster.open-cluster-management.io/v1beta2 | ||
| kind: ManagedClusterSetBinding | ||
| metadata: | ||
| name: default | ||
| namespace: ramen-ops | ||
| spec: | ||
| clusterSet: default | ||
Uh oh!
There was an error while loading. Please reload this page.