Skip to content

Instantly share code, notes, and snippets.

@jewzaam
Last active July 23, 2020 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jewzaam/fe6acfaba489b5907fd8528ae265c645 to your computer and use it in GitHub Desktop.
Save jewzaam/fe6acfaba489b5907fd8528ae265c645 to your computer and use it in GitHub Desktop.
install prometheus from operatorhub.io catalog source
---
apiVersion: project.openshift.io/v1
kind: Project
metadata:
name: nmalik-prometheus
---
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: operatorhubio-catalog
namespace: nmalik-prometheus
spec:
sourceType: grpc
image: quay.io/operator-framework/upstream-community-operators:latest
displayName: Community Operators
publisher: OperatorHub.io
---
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: nmalik-prometheus
namespace: nmalik-prometheus
spec:
targetNamespaces:
- nmalik-prometheus
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: prometheus
namespace: nmalik-prometheus
spec:
channel: beta
name: prometheus
source: operatorhubio-catalog
sourceNamespace: nmalik-prometheus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment