Skip to content

Commit

Permalink
Adding 3 operators by Red Hat (#292)
Browse files Browse the repository at this point in the history
* Adding Tempo Operator

* Added Cluster Observability Operator

* Added overlay in openshift-ai instance to enable all components

* Added overlay in openshift-ai instance to enable codeflare and ray

* Added Red Hat build of Opentelemetry operator

* fixed namespace

* updated Readme

* updated Readme

* Fixing: new-line-at-end-of-file

* Adding words to wordlist

* Remove unused kustomization files

* Fixed trailing spaces warnings
  • Loading branch information
arslankhanali committed May 2, 2024
1 parent 3b3614b commit 38eea3b
Show file tree
Hide file tree
Showing 30 changed files with 297 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .wordlist-md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ APIs
APM
ARN
AdoptedResource
Alertmanager
AmazonS
AmazonSageMakerFullAccess
Ansible
Expand All @@ -18,7 +19,9 @@ CheCluster
ClusterRoleBindings
ClusterTask
CodeReady
Codeflare
DNS
DataScienceCluster
Dev
DevSpaces
DevWorkspace
Expand Down Expand Up @@ -52,6 +55,7 @@ Lifecycle
Logstash
MTA
MachineConfig
Minio
MultiClusterHub
NFD
NMState
Expand All @@ -64,15 +68,18 @@ OLM
Observability
OpenDataHub
OpenShift
OpenTelemetry
OperatorGroup
PV
PolicyReport
Prometheus
Querier
RBAC
README
RHACM
Rollout
SAR
SDKs
SNO
SSO
Sagemaker
Expand All @@ -91,10 +98,13 @@ TLS
TODO
TaskRun
Tekton
TempoMonolithic
TempoStack
Thanos
UI
VolSync
Workspaces
Zipkin
ack
acm
amq
Expand All @@ -107,6 +117,7 @@ argoproj
arn
autoscaling
aws
backend
canada
ceph
che
Expand Down Expand Up @@ -166,6 +177,7 @@ letsencrypt
libvirt
lifecycle
linux
microservices
namespace
namespaces
newman
Expand All @@ -174,6 +186,7 @@ nodeFeatureDiscovery
noobaa
nvidia
oauth
observability
oc
ocp
ocs
Expand All @@ -184,6 +197,7 @@ openshift
operatorGroup
operatorGroups
patchesJson
performant
postgres
pre
prem
Expand All @@ -196,6 +210,7 @@ rhpds
runtime
sagemaker
sandboxed
scalable
seldon
selectable
serverless
Expand Down
36 changes: 36 additions & 0 deletions cluster-observability-operator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Cluster Observability Operator

Cluster Observability Operator is a Go based Kubernetes operator to setup and manage highly available Monitoring stack using Prometheus, Alertmanager and Thanos Querier.

# Cluster Observability Operator

Install Cluster Observability Operator by Red Hat.

Do not use the `base` directory directly, as you will need to patch the `channel` based on the version of OpenShift you are using, or the version of the operator you want to use.

The current *overlays* available are for the following channels:

* [development](operator/overlays/development)

## Usage

If you have cloned the `gitops-catalog` repository, you can install Cluster Observability Operator based on the overlay of your choice by running from the root (`gitops-catalog`) directory.

```
oc apply -k cluster-observability-operator/operator/overlays/<channel>
```

Or, without cloning:

```
oc apply -k https://github.com/redhat-cop/gitops-catalog/cluster-observability-operator/operator/overlays/<channel>
```

As part of a different overlay in your own GitOps repo:

```
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/redhat-cop/gitops-catalog/cluster-observability-operator/operator/overlays/<channel>?ref=main
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- subscription.yaml
11 changes: 11 additions & 0 deletions cluster-observability-operator/operator/base/subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: cluster-observability-operator
namespace: openshift-operators
spec:
channel: patch-me-see-overlays-dir
installPlanApproval: Automatic
name: cluster-observability-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**Version: 0.1.2**
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

patches:
- target:
kind: Subscription
name: cluster-observability-operator
path: patch-channel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- op: replace
path: /spec/channel
value: development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Overlay to enable Codeflare and Ray in DataScienceCluster that are Removed by default.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

patches:
- target:
kind: DataScienceCluster
name: default
path: patch-dsc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- op: replace
path: /spec/components/codeflare/managementState
value: Managed
- op: replace
path: /spec/components/ray/managementState
value: Managed
34 changes: 34 additions & 0 deletions redhat-build-of-opentelemetry/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Red Hat build of OpenTelemetry

Red Hat build of OpenTelemetry is a collection of tools, APIs, and SDKs. You use it to instrument, generate, collect, and export telemetry data (metrics, logs, and traces) for analysis in order to understand your software's performance and behavior. This operator was previously called Red Hat OpenShift distributed tracing data collection.

# Install Red Hat build of OpenTelemetry by Red Hat.

Do not use the `base` directory directly, as you will need to patch the `channel` based on the version of OpenShift you are using, or the version of the operator you want to use.

The current *overlays* available are for the following channels:

* [stable](operator/overlays/stable)

## Usage

If you have cloned the `gitops-catalog` repository, you can install Red Hat build of OpenTelemetry Operator based on the overlay of your choice by running from the root (`gitops-catalog`) directory.

```
oc apply -k redhat-build-of-opentelemetry/operator/overlays/<channel>
```

Or, without cloning:

```
oc apply -k https://github.com/redhat-cop/gitops-catalog/redhat-build-of-opentelemetry/operator/overlays/<channel>
```

As part of a different overlay in your own GitOps repo:

```
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/redhat-cop/gitops-catalog/redhat-build-of-opentelemetry/operator/overlays/<channel>?ref=main
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- namespace.yaml
- operator-group.yaml
- subscription.yaml
8 changes: 8 additions & 0 deletions redhat-build-of-opentelemetry/operator/base/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/display-name: "Red Hat build of OpenTelemetry"
labels:
openshift.io/cluster-monitoring: 'true'
name: openshift-opentelemetry-operator
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: openshift-opentelemetry-operator
namespace: openshift-opentelemetry-operator
11 changes: 11 additions & 0 deletions redhat-build-of-opentelemetry/operator/base/subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: opentelemetry-product
namespace: openshift-opentelemetry-operator
spec:
channel: patch-me-see-overlays-dir
installPlanApproval: Automatic
name: opentelemetry-product
source: redhat-operators
sourceNamespace: openshift-marketplace
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**Version: 0.93.0-3**
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

patches:
- target:
kind: Subscription
name: opentelemetry-product
path: patch-channel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- op: replace
path: /spec/channel
value: stable
36 changes: 36 additions & 0 deletions tempo-operator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Tempo Operator

Red Hat OpenShift distributed tracing platform based on Tempo. Tempo is an open-source, easy-to-use, and highly scalable distributed tracing backend. It provides observability for microservices architectures by allowing developers to track requests as they flow through distributed systems. Tempo is optimized to handle large volumes of trace data and is designed to be highly performant even under heavy loads. It can ingest common open source tracing protocols including Jaeger, Zipkin, and OpenTelemetry and requires only object storage to operate.

# Tempo Operator

Install Tempo Operator by Red Hat.

Do not use the `base` directory directly, as you will need to patch the `channel` based on the version of OpenShift you are using, or the version of the operator you want to use.

The current *overlays* available are for the following channels:

* [stable](operator/overlays/stable)

## Usage

If you have cloned the `gitops-catalog` repository, you can install Tempo Operator based on the overlay of your choice by running from the root (`gitops-catalog`) directory.

```
oc apply -k tempo-operator/operator/overlays/<channel>
```

Or, without cloning:

```
oc apply -k https://github.com/redhat-cop/gitops-catalog/tempo-operator/operator/overlays/<channel>
```

As part of a different overlay in your own GitOps repo:

```
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/redhat-cop/gitops-catalog/tempo-operator/operator/overlays/<channel>?ref=main
```
2 changes: 2 additions & 0 deletions tempo-operator/instance/base/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Before you start
TempoStack requires object storage to store its traces. TempoMonolithic can store traces in-memory, in a Persistent Volume and in object storage. Please ensure that your system has a compatible object storage solution that is supported, such as OpenShift Data Foundation, Minio, AWS S3, Azure Storage, or Google Cloud Storage.
6 changes: 6 additions & 0 deletions tempo-operator/instance/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- tempostack.yaml
22 changes: 22 additions & 0 deletions tempo-operator/instance/base/tempostack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
kind: TempoStack
apiVersion: tempo.grafana.com/v1alpha1
metadata:
name: sample
namespace: openshift-tempo-operator
spec:
resources:
total:
limits:
cpu: 2000m
memory: 2Gi
storage:
secret:
name: my-storage-secret
type: s3
storageSize: 1Gi
template:
queryFrontend:
jaegerQuery:
enabled: true
ingress:
type: route
5 changes: 5 additions & 0 deletions tempo-operator/instance/overlays/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base
7 changes: 7 additions & 0 deletions tempo-operator/operator/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- namespace.yaml
- operator-group.yaml
- subscription.yaml
8 changes: 8 additions & 0 deletions tempo-operator/operator/base/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/display-name: "Tempo Operator"
labels:
openshift.io/cluster-monitoring: 'true'
name: openshift-tempo-operator
5 changes: 5 additions & 0 deletions tempo-operator/operator/base/operator-group.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: openshift-tempo-operator
namespace: openshift-tempo-operator
11 changes: 11 additions & 0 deletions tempo-operator/operator/base/subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: tempo-product
namespace: openshift-tempo-operator
spec:
channel: patch-me-see-overlays-dir
installPlanApproval: Automatic
name: tempo-product
source: redhat-operators
sourceNamespace: openshift-marketplace
1 change: 1 addition & 0 deletions tempo-operator/operator/overlays/stable/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**Version: 0.8.0-3**

0 comments on commit 38eea3b

Please sign in to comment.