Skip to content

Instantly share code, notes, and snippets.

View cmwylie19's full-sized avatar

Case Wylie cmwylie19

View GitHub Profile
@cmwylie19
cmwylie19 / install-mso.yaml
Last active May 2, 2022 15:31
Catalog Source and Subscription
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
annotations:
name: monitoring-operators
namespace: openshift-marketplace
spec:
displayName: Monitoring Test Operator
icon:
base64data: ""
@cmwylie19
cmwylie19 / MSO.yaml
Last active April 21, 2022 18:38
Instance of the MSO
apiVersion: monitoring.rhobs/v1alpha1
kind: MonitoringStack
metadata:
name: starburst
namespace: <installation_namespace>
spec:
logLevel: debug
prometheusConfig:
remoteWrite:
- bearerToken: redacted
@cmwylie19
cmwylie19 / ServiceMonitor.yaml
Last active April 21, 2022 18:38
Tell Prometheus what to scrape
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app: starburst-enterprise
name: starburst-monitor
namespace: <installation_namespace>
spec:
endpoints:
- port: metrics
@cmwylie19
cmwylie19 / PrometheusRules.yaml
Last active April 21, 2022 18:38
Define your alerts in Prometheus
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
creationTimestamp: null
labels:
prometheus: starburst
name: starburst-rules
namespace: <installation_namespace>
spec:
groups:
@cmwylie19
cmwylie19 / AlertManagerConfig.yaml
Last active April 21, 2022 18:38
Define where to send your alerts
apiVersion: monitoring.coreos.com/v1alpha1
kind: AlertmanagerConfig
metadata:
name: starburst-pagerduty
namespace: <installation_namespace>
labels:
alertmanagerConfig: starburst
spec:
route:
groupBy: [alertname,cluster,service,job]
@cmwylie19
cmwylie19 / mso-olm-deploy.md
Last active May 17, 2022 16:37 — forked from tsisodia10/mso-olm-deploy.md
Deploy MSO using OLM on Openshift 4.9
@cmwylie19
cmwylie19 / mso_appeng_demo.md
Last active April 26, 2022 17:04
Monitoring Stack Operator Demo
@cmwylie19
cmwylie19 / monteziation-sppike-wip.md
Created April 28, 2022 14:28
Monetization in Kong/3scale

Gateway Monetization

Definition of Done:
Payment Gateway is one of the aspects of the monetization. Setting up the plan and metering is other aspect. In 3scale we definitely have these 3 capabilities. So, the first ask is how are all these features work in hypercurrent.io? Does it provides complete monetization features and how? Then, in 3scale how are providing this feature, are we using some kind of plugin or is it in built in?

TOC

@cmwylie19
cmwylie19 / ExternalName.md
Last active May 4, 2022 21:04
Routing to Kubernetes services of type ExternalName in OpenShift 4.10

Test ExternalName Service across Namespaces

We will create two namespaces, mesh, which is where the service mesh resides, and the blue namespace where our apps reside.

We will create a service in the mesh namespace called mesh, and a corresponding service of type ExternalName in the blue namespace called mesh-external, representing the mesh service in the mesh namespace.

Setup namespaces

kubectl create ns mesh 
kubectl create ns blue
@cmwylie19
cmwylie19 / Prometheus-Operator.md
Last active May 16, 2022 12:01
Prometheus-Operator

Prometheus Operator

To install, create the namespace, operatorgroup, and subscription.

oc apply -f -<<EOF
apiVersion: v1
kind: Namespace
metadata:
  creationTimestamp: null
 name: prometheus