9 Commits

Author SHA1 Message Date
95ac4d347f feat(base): updating olm operator version 2025-02-10 10:13:03 +01:00
f7b22c3c99 feat(crds): updating hydra-maester crd version 2025-02-10 10:06:22 +01:00
49a3bc3d6d feat(crds): updating olm version 2025-02-10 10:03:09 +01:00
6af5702148 fix(cnpg): do not install cpng outside olm anymore 2024-11-19 11:46:29 +01:00
f148cc4e16 fix(redis-operator): adding cluster role patch to fix redis operator bug 2024-03-18 15:56:53 +01:00
add98c9bcc Merge branch 'feat/olm' into develop 2024-03-15 13:54:18 +01:00
54692bc243 feat(olm): adding operator lifecycle manager
This deployment and crd allow us to use https://operatorhub.io/
this source is very usefull for operator deployments
2024-03-15 13:50:36 +01:00
fd897e9822 Merge pull request 'feat(olm): adding operator lifecycle manager' (#7) from feat/olm into develop
Reviewed-on: #7
Reviewed-by: Laurent Gourvenec <lgourvenec@cadoles.com>
2024-02-27 12:17:33 +01:00
a0fb1cb598 feat(olm): adding operator lifecycle manager
This deployment and crd allow us to use https://operatorhub.io/
this source is very usefull for operator deployments
2024-02-27 11:47:30 +01:00
11 changed files with 168 additions and 5 deletions

View File

@ -2,7 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/cloudnative-pg/cloudnative-pg/releases/download/v1.21.1/cnpg-1.21.1.yaml
- https://github.com/cloudnative-pg/cloudnative-pg/releases/download/v1.24.1/cnpg-1.24.1.yaml
configurations:
- ./configurations/cnpg-cluster.yaml
- ./configurations/cnpg-cluster.yaml

View File

@ -1,13 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
- ./metallb
resources:
- https://github.com/cert-manager/cert-manager/releases/download/v1.10.0/cert-manager.yaml
- ./olm
- ./metallb
- ./rabbitmq
- ./postgresql
- ./redis
- ./minio
- ./metrics
- ./nginx
- ./cloudnative-pg-operator
#- ./cloudnative-pg-operator

View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.31.0/olm.yaml
- resources/mandatory-operators

View File

@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./resources/redis-operator.yaml
- ./resources/minio-operator.yaml
- ./resources/cloudnative-pg.yaml
- ./resources/rabbitmq-cluster-operator.yaml

View File

@ -0,0 +1,90 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: redis-operator.*
rules:
- apiGroups:
- redis.redis.opstreelabs.in
resources:
- rediss
- redisclusters
- redis
- rediscluster
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- redis.redis.opstreelabs.in
resources:
- redis/finalizers
- rediscluster/finalizers
verbs:
- update
- apiGroups:
- redis.redis.opstreelabs.in
resources:
- redis/status
- rediscluster/status
verbs:
- get
- patch
- update
- apiGroups:
- ""
resources:
- secrets
- pods/exec
- services
- configmaps
- pods
- persistentvolumes
- persistentvolumeclaims
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- policy
resources:
- poddisruptionbudgets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch

View File

@ -0,0 +1,12 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: my-cloudnative-pg
namespace: operators
spec:
channel: stable-v1
#startingCSV: 1.22.1
#installPlanApproval: Manual
name: cloudnative-pg
source: operatorhubio-catalog
sourceNamespace: olm

View File

@ -0,0 +1,11 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: my-minio-operator
namespace: operators
spec:
channel: stable
startingCSV: "minio-operator.v5.0.3"
name: minio-operator
source: operatorhubio-catalog
sourceNamespace: olm

View File

@ -0,0 +1,12 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: my-rabbitmq-cluster-operator
namespace: operators
spec:
channel: stable
# startingCSV: 2.7.0
# installPlanApproval: Manual
name: rabbitmq-cluster-operator
source: operatorhubio-catalog
sourceNamespace: olm

View File

@ -0,0 +1,11 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: my-redis-operator
namespace: operators
spec:
channel: stable
startingCSV: "redis-operator.v0.15.1"
name: redis-operator
source: operatorhubio-catalog
sourceNamespace: olm

6
crds/kustomization.yaml Normal file
View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.31.0/crds.yaml
- https://raw.githubusercontent.com/ory/k8s/v0.50.7/helm/charts/hydra-maester/crds/crd-oauth2clients.yaml

6
kustomization.yaml Normal file
View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
- ./crds
- ./base