diff --git a/deploy/osd-route-monitor-operator/100-openshift-route-monitor-operator.console.RouteMonitor.yaml b/deploy/osd-route-monitor-operator/100-openshift-route-monitor-operator.console.RouteMonitor.yaml new file mode 100644 index 0000000000..ab79f3a3b4 --- /dev/null +++ b/deploy/osd-route-monitor-operator/100-openshift-route-monitor-operator.console.RouteMonitor.yaml @@ -0,0 +1,11 @@ +apiVersion: monitoring.openshift.io/v1alpha1 +kind: RouteMonitor +metadata: + name: console + namespace: openshift-route-monitor-operator +spec: + route: + name: console + namespace: openshift-console + slo: + targetAvailabilityPercent: "99.5" diff --git a/deploy/osd-route-monitor-operator/OWNERS b/deploy/osd-route-monitor-operator/OWNERS new file mode 100644 index 0000000000..e8c63777cb --- /dev/null +++ b/deploy/osd-route-monitor-operator/OWNERS @@ -0,0 +1,3 @@ +reviewers: +- georgettica +- RiRa12621 diff --git a/deploy/osd-route-monitor-operator/README.md b/deploy/osd-route-monitor-operator/README.md new file mode 100644 index 0000000000..fae6436fd6 --- /dev/null +++ b/deploy/osd-route-monitor-operator/README.md @@ -0,0 +1,22 @@ +# File Convention + +the convention is: +``` +${NUMBER}-${NS}.${NAME}.${TYPE}.yaml +``` + +## Number +a way to order the resources (if need be), +should be a 3 digit number just in case. + +## Ns +the namespace the resource is created in + +## Name +the name of the resource + +## Type +the type of the resource + +# Caveat +the alert name will be comprised from the RouteMonitor/ClusterUrlMonitor name, so be careful when renaming || Adding diff --git a/deploy/osd-route-monitor-operator/config.yaml b/deploy/osd-route-monitor-operator/config.yaml new file mode 100644 index 0000000000..83246d4f47 --- /dev/null +++ b/deploy/osd-route-monitor-operator/config.yaml @@ -0,0 +1,3 @@ +deploymentMode: "Direct" +direct: + environments: ["integration", "stage"] diff --git a/hack/00-osd-managed-cluster-config-integration.yaml.tmpl b/hack/00-osd-managed-cluster-config-integration.yaml.tmpl index c88c10b721..19948b9d4c 100644 --- a/hack/00-osd-managed-cluster-config-integration.yaml.tmpl +++ b/hack/00-osd-managed-cluster-config-integration.yaml.tmpl @@ -10552,3 +10552,14 @@ objects: metadata: name: hive-environment namespace: openshift-config +- apiVersion: monitoring.openshift.io/v1alpha1 + kind: RouteMonitor + metadata: + name: console + namespace: openshift-route-monitor-operator + spec: + route: + name: console + namespace: openshift-console + slo: + targetAvailabilityPercent: '99.5' diff --git a/hack/00-osd-managed-cluster-config-stage.yaml.tmpl b/hack/00-osd-managed-cluster-config-stage.yaml.tmpl index e253564dec..cb9f7e2882 100644 --- a/hack/00-osd-managed-cluster-config-stage.yaml.tmpl +++ b/hack/00-osd-managed-cluster-config-stage.yaml.tmpl @@ -10552,3 +10552,14 @@ objects: metadata: name: hive-environment namespace: openshift-config +- apiVersion: monitoring.openshift.io/v1alpha1 + kind: RouteMonitor + metadata: + name: console + namespace: openshift-route-monitor-operator + spec: + route: + name: console + namespace: openshift-console + slo: + targetAvailabilityPercent: '99.5'