Compare commits

...

49 Commits

Author SHA1 Message Date
Philippe Caseiro f148cc4e16 fix(redis-operator): adding cluster role patch to fix redis operator bug 2024-03-18 15:56:53 +01:00
Philippe Caseiro add98c9bcc Merge branch 'feat/olm' into develop 2024-03-15 13:54:18 +01:00
Philippe Caseiro 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
Laurent Gourvenec 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
Philippe Caseiro 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
Philippe Caseiro 82096575ba feat(cert-manager): updating version to 1.13.3 2023-12-18 12:15:10 +01:00
Philippe Caseiro e171a74e22 feat(cert-manager): cleanup deployment 2023-12-15 15:33:35 +01:00
Philippe Caseiro dac9b1d13c Revert "feat(cert-manager): adding clusterIssuers"
This reverts commit c31f318c0d.
2023-12-15 15:33:14 +01:00
Philippe Caseiro 9e51c63a0d Merge branch 'develop' of https://forge.cadoles.com/CadolesKube/c-kustom into develop 2023-12-15 15:31:27 +01:00
Philippe Caseiro c31f318c0d feat(cert-manager): adding clusterIssuers 2023-12-15 15:31:22 +01:00
wpetit 0948b9f43c Merge pull request 'Mise à jour de l'opérateur CloudNativePostgreSQL en version 1.21' (#3) from cnpg-1.21 into develop
Reviewed-on: #3
2023-12-15 15:30:18 +01:00
wpetit 0f3e82fb08 feat(cnpg): upgrade to 1.21 2023-12-15 15:29:50 +01:00
Philippe Caseiro 73bd5bbb5b feat(mattermost-operator): adding operator
Not in the default installed tools
2023-12-15 13:41:28 +01:00
Philippe Caseiro 4bbd615fcc feat(metrics-server): updating default configuration 2023-12-15 13:34:56 +01:00
Philippe Caseiro 209e3a4df4 feat(metrics-server): adding metrics-server 0.6.4 2023-12-11 15:50:37 +01:00
Philippe Caseiro 5e80991347 update(minio): 5.0.5 to 5.0.10 2023-10-25 11:38:11 +02:00
Philippe Caseiro 1c1f6bc47c fix(rabbitmq): try to fix namespace failure 2023-10-12 08:53:51 +02:00
Philippe Caseiro 121ace048e fix(rabbitmq): fix operator file url 2023-10-12 08:52:51 +02:00
Philippe Caseiro 0beed70b69 fix(rabbitmq): install operator properly 2023-10-12 08:51:41 +02:00
Philippe Caseiro 36624606d5 feat(cert-manager): adding cert-manager operator 2023-10-12 08:48:36 +02:00
Philippe Caseiro 7ca070438d feat(longhorn): adding longhorn installation 2023-09-25 13:38:16 +02:00
Philippe Caseiro bc0df8ef01 feat(minio): updating minio operator version 2023-06-19 10:39:08 +02:00
Philippe Caseiro c6881fab44 feat(metrics): adding metrics-server deployement 2023-06-02 11:47:06 +02:00
Philippe Caseiro 78525fa8b4 feat(rabbitmq): adding rabbitmq operator installation 2023-06-02 10:00:46 +02:00
Philippe Caseiro 374f052cb5 feat(local-path-provisionner): adding rancher-os local-pathk-provisionner support 2023-03-06 14:26:52 +01:00
Philippe Caseiro 7a26298154 fix(minio-operator): lock operator version 2023-02-28 10:11:10 +01:00
Philippe Caseiro 66dae7eee1 fix(base): calico as nothing to do here (this is OS issue) 2023-02-07 14:16:03 +01:00
Philippe Caseiro cd3e1f7039 Merge branch 'develop' of https://forge.cadoles.com/CadolesKube/c-kustom into develop 2023-02-07 13:48:00 +01:00
Philippe Caseiro 2d96881dde feat(metallb): adding secret creation 2023-02-07 13:47:43 +01:00
wpetit 93d10efbac feat(minio-operator): add tenant kustomize configuration 2023-02-03 12:39:13 +01:00
wpetit 626844dcc1 feat(cnpg-operator): add secret configuration 2023-01-30 14:28:35 +01:00
wpetit 8ff8cf73b3 feat: add cloudnative-pg-operator 2023-01-27 11:36:33 +01:00
Philippe Caseiro 92496d282a fix(lb): split metallb intall 2022-11-30 15:56:26 +01:00
Philippe Caseiro f973fd5915 fix(lb): changing bad directory name 2022-11-30 13:58:43 +01:00
Philippe Caseiro ae1d39e0cc fix(lb): fix metallb kulstomize deprecated include 2022-11-30 13:57:16 +01:00
Philippe Caseiro 024178f4ca fix(lb): address pool and advertise have to be created later 2022-11-30 13:53:31 +01:00
Philippe Caseiro 85a0e41ac9 fix(cni): proper calico install 2022-11-30 11:02:00 +01:00
Philippe Caseiro e868f1f961 fix(lb): update metallb install 2022-11-30 11:02:00 +01:00
Philippe Caseiro c3cb59fed5 feat(cni): updating calico install 2022-11-30 10:29:34 +01:00
Philippe Caseiro befbc3b13a feat(cni): moving to calico 2022-11-29 16:05:44 +01:00
Philippe Caseiro 1581059ccc fix(nginx): roll back to ingress controler 2022-10-25 08:52:35 +02:00
Philippe Caseiro d0683a5bf4 feat(base): adding spotahome redis operator 2022-10-25 08:45:50 +02:00
Philippe Caseiro 0dd4280f57 feat(base): adding zalando postgresql operator 2022-10-25 08:45:50 +02:00
Philippe Caseiro 2b63222153 feat(base): adding metallb deployement 2022-10-25 08:45:50 +02:00
Philippe Caseiro f96d694a3f feat(base): adding nginx-gateway installation 2022-10-25 08:45:50 +02:00
Philippe Caseiro 36c6029c42 feat(base): adding gatewa-api CRD 2022-10-25 08:45:50 +02:00
Philippe Caseiro 53a4159d49 feat(base): adding nginx-gateway 2022-10-25 08:45:50 +02:00
Philippe Caseiro f6223731ed feat(base): adding minio operator 2022-10-25 08:29:59 +02:00
Philippe Caseiro 472a1b9334 feat(base): first commit with flannel 2022-10-19 14:53:28 +02:00
32 changed files with 341 additions and 0 deletions

0
.gitmodules vendored Normal file
View File

View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: cert-manager
resources:
- https://github.com/cert-manager/cert-manager/releases/download/v1.13.3/cert-manager.yaml

View File

@ -0,0 +1,12 @@
---
nameReference:
- kind: Secret
fieldSpecs:
- path: spec/superuserSecret/name
kind: Cluster
- path: spec/bootstrap/initdb/secret/name
kind: Cluster
- path: spec/backup/barmanObjectStore/s3Credentials/accessKeyId/name
kind: Cluster
- path: spec/backup/barmanObjectStore/s3Credentials/secretAccessKey/name
kind: Cluster

View File

@ -0,0 +1,8 @@
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
configurations:
- ./configurations/cnpg-cluster.yaml

14
base/kustomization.yaml Normal file
View File

@ -0,0 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
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

View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/rancher/local-path-provisioner/deploy?ref=v0.0.23

View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://raw.githubusercontent.com/longhorn/longhorn/v1.5.1/deploy/longhorn.yaml
- ./resources/storage-class.yaml

View File

@ -0,0 +1,11 @@
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: longhorn
provisioner: driver.longhorn.io
allowVolumeExpansion: true
parameters:
numberOfReplicas: "3"
staleReplicaTimeout: "2880" # 48 hours in minutes
fromBackup: ""
fsType: "ext4"

View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./resources/namespace.yaml
- https://raw.githubusercontent.com/mattermost/mattermost-operator/master/docs/mattermost-operator/mattermost-operator.yaml

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: mattermost-operator

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: metallb-system
resources:
- ./secrets
- github.com/metallb/metallb/config/native?ref=v0.13.7

View File

@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: metallb-system
secretGenerator:
- name: memberlist
literals:
- secretkey=FiXmEiAmNoTaReAlSeCr3tAnDineedtobereplacewithapropersecretforyourinfrastruture

View File

@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.6.4/high-availability-1.21+.yaml
patches:
- path: ./patches/high-availability-1.21+.yaml

View File

@ -0,0 +1,17 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: metrics-server
namespace: kube-system
spec:
replicas: 3
template:
spec:
containers:
- name: metrics-server
args:
- --cert-dir=/tmp
- --secure-port=4443
- --kubelet-preferred-address-types=Hostname
- --kubelet-use-node-status-port
- --metric-resolution=15s

View File

@ -0,0 +1,14 @@
---
nameReference:
- kind: Secret
fieldSpecs:
- path: spec/credsSecret/name
kind: Tenant
- kind: Secret
fieldSpecs:
- path: spec/configuration/name
kind: Tenant
- kind: Secret
fieldSpecs:
- path: spec/users/name
kind: Tenant

View File

@ -0,0 +1,13 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: minio-operator
commonAnnotations:
operator.min.io/authors: "MinIO, Inc."
operator.min.io/license: "AGPLv3"
operator.min.io/support: "https://subnet.min.io"
resources:
- github.com/minio/operator/resources?ref=v5.0.10
configurations:
- ./configurations/tenants.minio.min.io.yaml

View File

@ -0,0 +1,2 @@
resources:
- https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.4.0/deploy/static/provider/cloud/deploy.yaml

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.27.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

View File

@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: postgresql-operator
resources:
- namespace.yaml
- github.com/zalando/postgres-operator/manifests?ref=v1.9.0
- github.com/zalando/postgres-operator/ui/manifests?ref=v1.9.0

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: postgresql-operator

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: rabbitmq-operator
resources:
#- namespace.yaml
- https://github.com/rabbitmq/cluster-operator/releases/download/v2.5.0/cluster-operator.yml

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: rabbitmq-operator

View File

@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: redis-operator
resources:
- namespace.yaml
- github.com/spotahome/redis-operator/manifests/kustomize/overlays/default?ref=v1.2.4

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: redis-operator

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.27.0/crds.yaml
- https://raw.githubusercontent.com/ory/k8s/v0.30.0/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