Skip to content

Commit

Permalink
Add quick start quide for new dbs
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed May 8, 2024
1 parent 1c8f638 commit 3ba778f
Show file tree
Hide file tree
Showing 125 changed files with 8,232 additions and 204 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Secret
metadata:
name: deep-storage-config
namespace: demo
stringData:
druid.storage.type: "s3"
druid.storage.bucket: "druid"
druid.storage.baseKey: "druid/segments"
druid.s3.accessKey: "minio"
druid.s3.secretKey: "minio123"
druid.s3.protocol: "http"
druid.s3.endpoint.signingRegion: "us-east-1"
druid.s3.endpoint.url: "http://myminio-hl.demo.svc.cluster.local:9000/"

Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
apiVersion: kubedb.com/v1alpha2
kind: Druid
metadata:
name: druid-quickstart
namespace: demo
spec:
version: 28.0.1
deepStorage:
type: s3
configSecret:
name: deep-storage-config
metadataStorage:
name: mysql-demo
namespace: demo
createTables: true
zookeeperRef:
name: zk-demo
namespace: demo
topology:
coordinators:
replicas: 1
brokers:
replicas: 1
historicals:
replicas: 1
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: standard
middleManagers:
replicas: 1
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: standard
routers:
replicas: 1
storageType: Durable
terminationPolicy: Delete
serviceTemplates:
- alias: primary
spec:
type: LoadBalancer
ports:
- name: routers
port: 8888
18 changes: 18 additions & 0 deletions content/docs/v2024.4.27/examples/druid/quickstart/mysql-demo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: kubedb.com/v1alpha2
kind: MySQL
metadata:
name: mysql-demo
namespace: demo
spec:
version: "8.0.35"
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
init:
script:
configMap:
name: my-init-script
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE DATABASE druid;
17 changes: 17 additions & 0 deletions content/docs/v2024.4.27/examples/druid/quickstart/zk-demo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: kubedb.com/v1alpha2
kind: ZooKeeper
metadata:
name: zk-demo
namespace: demo
spec:
version: "3.7.2"
adminServerPort: 8080
replicas: 1
storage:
resources:
requests:
storage: "100Mi"
storageClassName: "standard"
accessModes:
- ReadWriteOnce
terminationPolicy: "WipeOut"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: demo
spec:
replicas: 3
version: 3.3.2
version: 3.6.1
storage:
accessModes:
- ReadWriteOnce
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: demo
spec:
replicas: 1
version: 3.3.2
version: 3.6.1
storage:
accessModes:
- ReadWriteOnce
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: kafka-prod
namespace: demo
spec:
version: 3.3.2
version: 3.6.1
enableSSL: true
tls:
issuerRef:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
key.converter.schemas.enable=true
value.converter.schemas.enable=true
internal.key.converter.schemas.enable=true
internal.value.converter.schemas.enable=true
internal.key.converter=org.apache.kafka.connect.json.JsonConverter
internal.value.converter=org.apache.kafka.connect.json.JsonConverter
key.converter=org.apache.kafka.connect.json.JsonConverter
value.converter=org.apache.kafka.connect.json.JsonConverter
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: kafka.kubedb.com/v1alpha1
kind: ConnectCluster
metadata:
name: connectcluster-distributed
namespace: demo
spec:
version: 3.6.1
enableSSL: true
tls:
issuerRef:
apiGroup: cert-manager.io
kind: Issuer
name: connectcluster-ca-issuer
configSecret:
name: connectcluster-custom-config
replicas: 3
connectorPlugins:
- postgres-2.4.2.final
- jdbc-2.6.1.final
kafkaRef:
name: kafka-prod
namespace: demo
terminationPolicy: WipeOut
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
name: kafka-ca-issuer
kind: Issuer
replicas: 3
version: 3.4.0
version: 3.6.1
storage:
accessModes:
- ReadWriteOnce
Expand Down
8 changes: 8 additions & 0 deletions content/docs/v2024.4.27/examples/kafka/tls/kcc-issuer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: connectcluster-ca-issuer
namespace: demo
spec:
ca:
secretName: connectcluster-ca
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: mongo-rs-hid
namespace: demo
spec:
version: "percona-4.4.10"
version: "percona-7.0.4"
replicaSet:
name: "replicaset"
podTemplate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: mongo-sh-hid
namespace: demo
spec:
version: "percona-4.4.10"
version: "percona-7.0.4"
shardTopology:
configServer:
replicas: 3
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kubedb.com/v1alpha2
kind: Pgpool
metadata:
name: quick-pgpool
namespace: pool
spec:
version: "4.5.0"
replicas: 1
postgresRef:
name: quick-postgres
namespace: demo
sslMode: disable
clientAuthMode: md5
syncUsers: true
terminationPolicy: WipeOut
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: kubedb.com/v1alpha2
kind: Postgres
metadata:
name: quick-postgres
namespace: demo
spec:
replicas: 3
version: "13.13"
configSecret:
name: pg-configuration
storageType: Durable
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Mi
terminationPolicy: WipeOut
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
max_connections=400
Original file line number Diff line number Diff line change
@@ -1,23 +1,39 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: PostgresVersion
metadata:
name: timescaledb-2.1.0-pg13
name: timescaledb-2.14.2-pg14
spec:
archiver:
addon:
name: postgres-addon
tasks:
manifestBackup:
name: manifest-backup
manifestRestore:
name: manifest-restore
volumeSnapshot:
name: volume-snapshot
walg:
image: ghcr.io/kubedb/postgres-archiver:(v0.6.0)_14.10-alpine
coordinator:
image: kubedb/pg-coordinator:v0.1.0
image: ghcr.io/kubedb/pg-coordinator:v0.29.0
db:
image: timescale/timescaledb:2.1.0-pg13-oss
baseOS: alpine
image: timescale/timescaledb:2.14.2-pg14-oss
distribution: TimescaleDB
exporter:
image: prometheuscommunity/postgres-exporter:v0.9.0
image: prometheuscommunity/postgres-exporter:v0.15.0
initContainer:
image: kubedb/postgres-init:0.1.0
image: ghcr.io/kubedb/postgres-init:0.12.0
podSecurityPolicies:
databasePolicyName: postgres-db
securityContext:
runAsAnyNonRoot: false
runAsUser: 70
stash:
addon:
backupTask:
name: postgres-backup-13.1
name: postgres-backup-14.0
restoreTask:
name: postgres-restore-13.1
version: "13.13"
name: postgres-restore-14.0
version: "14.11"
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: timescale-postgres
namespace: demo
spec:
version: "timescaledb-2.1.0-pg13" # points to the name of our custom PostgresVersion
version: "timescaledb-2.14.2-pg14" # points to the name of our custom PostgresVersion
storage:
storageClassName: "standard"
accessModes:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
apiVersion: kubedb.com/v1alpha2
kind: Singlestore
metadata:
name: sdb-quickstart
namespace: demo
spec:
version: 8.5.7
topology:
aggregator:
replicas: 3
podTemplate:
spec:
containers:
- name: singlestore
resources:
limits:
memory: "2Gi"
cpu: "0.5"
requests:
memory: "2Gi"
cpu: "0.5"
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
leaf:
replicas: 2
podTemplate:
spec:
containers:
- name: singlestore
resources:
limits:
memory: "2Gi"
cpu: "0.5"
requests:
memory: "2Gi"
cpu: "0.5"
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
licenseSecret:
name: license-secret
storageType: Durable
terminationPolicy: WipeOut
17 changes: 17 additions & 0 deletions content/docs/v2024.4.27/examples/zookeeper/quickstart/zoo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: kubedb.com/v1alpha2
kind: ZooKeeper
metadata:
name: zk-quickstart
namespace: demo
spec:
version: "3.9.1"
adminServerPort: 8080
replicas: 3
storage:
resources:
requests:
storage: "1Gi"
storageClassName: "standard"
accessModes:
- ReadWriteOnce
terminationPolicy: "WipeOut"
8 changes: 6 additions & 2 deletions content/docs/v2024.4.27/guides/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,19 @@ info:
# Guides

Guides to show you how to perform tasks with KubeDB:

- [Druid](/docs/v2024.4.27/guides/kafka/README). Shows how to manage Druid using KubeDB.
- [Elasticsearch](/docs/v2024.4.27/guides/elasticsearch/README). Shows how to manage Elasticsearch & OpenSearch using KubeDB.
- [MariaDB](/docs/v2024.4.27/guides/mariadb). Shows how to manage MariaDB using KubeDB.
- [Memcached](/docs/v2024.4.27/guides/memcached/README). Shows how to manage Memcached using KubeDB.
- [MongoDB](/docs/v2024.4.27/guides/mongodb/README). Shows how to manage MongoDB using KubeDB.
- [MySQL](/docs/v2024.4.27/guides/mysql/README). Shows how to manage MySQL using KubeDB.
- [Percona XtraDB](/docs/v2024.4.27/guides/percona-xtradb/README). Shows how to manage Percona XtraDB using KubeDB.
- [PgBouncer](/docs/v2024.4.27/guides/pgbouncer/README). Shows how to manage PgBouncer using KubeDB.
- [Pgpool](/docs/v2024.4.27/guides/pgpool/README). Shows how to manage Pgpool using KubeDB.
- [PostgreSQL](/docs/v2024.4.27/guides/postgres/README). Shows how to manage PostgreSQL using KubeDB.
- [ProxySQL](/docs/v2024.4.27/guides/proxysql/README). Shows how to manage ProxySQL using KubeDB.
- [Redis](/docs/v2024.4.27/guides/redis/README). Shows how to manage Redis using KubeDB.
- [Kafka](/docs/v2024.4.27/guides/kafka/README). Shows how to manage Redis using KubeDB.
- [Kafka](/docs/v2024.4.27/guides/kafka/README). Shows how to manage Kafka using KubeDB.
- [ZooKeeper](/docs/v2024.4.27/guides/zookeeper/README). Shows how to manage ZooKeeper using KubeDB.
- [SingleStore](/docs/v2024.4.27/guides/singlestore/README). Shows how to manage SingleStore using KubeDB.
- [Solr](/docs/v2024.4.27/guides/solr/README). Shows how to manage Solr using KubeDB.
Loading

0 comments on commit 3ba778f

Please sign in to comment.