1 Commits

Author SHA1 Message Date
a67c3f5205 first-try 2023-04-21 10:25:02 +02:00
26 changed files with 36 additions and 252 deletions

View File

@ -1,6 +0,0 @@
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

@ -6,7 +6,3 @@ nameReference:
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

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

View File

@ -1,14 +1,11 @@
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
bases:
- ./metallb
- https://github.com/cert-manager/cert-manager/releases/download/v1.10.0/cert-manager.yaml
- ./postgresql
- ./redis
- ./minio
- ./nginx
- ./cloudnative-pg-operator

View File

@ -1,6 +0,0 @@
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

@ -1,11 +0,0 @@
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

@ -1,6 +0,0 @@
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

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

View File

@ -3,5 +3,5 @@ kind: Kustomization
namespace: metallb-system
resources:
- ./secrets
- github.com/metallb/metallb/config/native?ref=v0.13.7
- ./secrets
- github.com/metallb/metallb/config/native?ref=v0.13.9

View File

@ -1,8 +0,0 @@
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

@ -1,17 +0,0 @@
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

@ -7,7 +7,7 @@ commonAnnotations:
operator.min.io/support: "https://subnet.min.io"
resources:
- github.com/minio/operator/resources?ref=v5.0.10
- github.com/minio/operator/resources?ref=v4.5.8
configurations:
- ./configurations/tenants.minio.min.io.yaml
- ./configurations/tenants.minio.min.io.yaml

View File

@ -1,6 +0,0 @@
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

@ -1,8 +0,0 @@
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

@ -1,90 +0,0 @@
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

@ -1,12 +0,0 @@
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

@ -1,11 +0,0 @@
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

@ -1,12 +0,0 @@
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

@ -1,11 +0,0 @@
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

@ -1,7 +0,0 @@
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

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

View File

@ -1,6 +0,0 @@
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

View File

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

9
lb/advertise.yaml Normal file
View File

@ -0,0 +1,9 @@
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: l2-ip-pool-ad
namespace: metallb-system
spec:
ipAddressPools:
- main-pool

8
lb/ipaddresspoool.yaml Normal file
View File

@ -0,0 +1,8 @@
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: main-pool
namespace: metallb-system
spec:
addresses:
- 192.168.10.30-192.168.10.36

5
lb/kustomization.yaml Normal file
View File

@ -0,0 +1,5 @@
namespace: metallb-system
resources:
- ipaddresspoool.yaml
- advertise.yaml