Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SingleStore Quickstart #598

Merged
merged 4 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/examples/kafka/clustering/kf-multinode.yaml
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
2 changes: 1 addition & 1 deletion docs/examples/kafka/clustering/kf-standalone.yaml
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
2 changes: 1 addition & 1 deletion docs/examples/kafka/clustering/kf-topology.yaml
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
2 changes: 1 addition & 1 deletion docs/examples/kafka/monitoring/kf-with-monitoring.yaml
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
2 changes: 1 addition & 1 deletion docs/examples/mongodb/hidden-node/replicaset.yaml
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
2 changes: 1 addition & 1 deletion docs/examples/mongodb/hidden-node/sharding.yaml
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
32 changes: 24 additions & 8 deletions docs/examples/postgres/custom-version/postgresversion.yaml
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
52 changes: 52 additions & 0 deletions docs/examples/singlestore/quickstart/quickstart.yaml
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
3 changes: 2 additions & 1 deletion docs/guides/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ Guides to show you how to perform tasks with KubeDB:
- [PostgreSQL](/docs/guides/postgres/README.md). Shows how to manage PostgreSQL using KubeDB.
- [ProxySQL](/docs/guides/proxysql/README.md). Shows how to manage ProxySQL using KubeDB.
- [Redis](/docs/guides/redis/README.md). Shows how to manage Redis using KubeDB.
- [Kafka](/docs/guides/kafka/README.md). Shows how to manage Redis using KubeDB.
- [Kafka](/docs/guides/kafka/README.md). Shows how to manage Kafka using KubeDB.
- [SingleStore](/docs/guides/singlestore/README.md). Shows how to manage SingleStore using KubeDB.
2 changes: 1 addition & 1 deletion docs/guides/kafka/concepts/appbinding.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
tlsSecret:
name: kafka-client-cert
type: kubedb.com/kafka
version: 3.4.0
version: 3.6.1
```

Here, we are going to describe the sections of an `AppBinding` crd.
Expand Down
25 changes: 7 additions & 18 deletions docs/guides/kafka/concepts/catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,19 @@ As with all other Kubernetes objects, a KafkaVersion needs `apiVersion`, `kind`,
apiVersion: catalog.kubedb.com/v1alpha1
kind: KafkaVersion
metadata:
annotations:
meta.helm.sh/release-name: kubedb-catalog
meta.helm.sh/release-namespace: kubedb
creationTimestamp: "2023-03-23T10:15:24Z"
generation: 2
labels:
app.kubernetes.io/instance: kubedb-catalog
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: kubedb-catalog
app.kubernetes.io/version: v2023.02.28
helm.sh/chart: kubedb-catalog-v2023.02.28
name: 3.4.0
resourceVersion: "472767"
uid: 36a167a3-5218-4e32-b96d-d6b5b0c86125
name: 3.6.1
spec:
connectCluster:
image: ghcr.io/appscode-images/kafka-connect-cluster:3.6.1
cruiseControl:
image: ghcr.io/appscode-images/kafka-cruise-control:3.6.1
db:
image: kubedb/kafka-kraft:3.4.0
image: ghcr.io/appscode-images/kafka-kraft:3.6.1
podSecurityPolicies:
databasePolicyName: kafka-db
version: 3.4.0
cruiseControl:
image: ghcr.io/kubedb/cruise-control:3.4.0
securityContext:
runAsUser: 1001
version: 3.6.1
```

### metadata.name
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/kafka/concepts/kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ spec:
labels:
release: prometheus
interval: 10s
version: 3.4.0
version: 3.6.1
```

### spec.version
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/kafka/monitoring/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
name: kafka-ca-issuer
kind: Issuer
replicas: 3
version: 3.4.0
version: 3.6.1
storage:
accessModes:
- ReadWriteOnce
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/kafka/monitoring/using-prometheus-operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ spec:
name: kafka-ca-issuer
kind: Issuer
replicas: 3
version: 3.4.0
version: 3.6.1
storage:
accessModes:
- ReadWriteOnce
Expand Down Expand Up @@ -206,7 +206,7 @@ Now, wait for the database to go into `Running` state.
```bash
$ kubectl get kf -n demo kafka
NAME TYPE VERSION STATUS AGE
kafka kubedb.com/v1alpha2 3.4.0 Ready 2m24s
kafka kubedb.com/v1alpha2 3.6.1 Ready 2m24s
```

KubeDB will create a separate stats service with name `{Kafka crd name}-stats` for monitoring purpose.
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/kafka/quickstart/overview/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ metadata:
namespace: demo
spec:
replicas: 3
version: 3.3.0
version: 3.6.1
storage:
accessModes:
- ReadWriteOnce
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/kafka/quickstart/overview/yamls/kafka.yaml
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.0
version: 3.6.1
storage:
accessModes:
- ReadWriteOnce
Expand Down
22 changes: 11 additions & 11 deletions docs/guides/mongodb/hidden-node/replicaset.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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 Expand Up @@ -184,7 +184,7 @@ Auth Secret:
AppBinding:
Metadata:
Annotations:
kubectl.kubernetes.io/last-applied-configuration: {"apiVersion":"kubedb.com/v1alpha2","kind":"MongoDB","metadata":{"annotations":{},"name":"mongo-rs-hid","namespace":"demo"},"spec":{"ephemeralStorage":{"sizeLimit":"900Mi"},"hidden":{"podTemplate":{"spec":{"resources":{"requests":{"cpu":"400m","memory":"400Mi"}}}},"replicas":2,"storage":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"2Gi"}},"storageClassName":"standard"}},"podTemplate":{"spec":{"resources":{"requests":{"cpu":"600m","memory":"600Mi"}}}},"replicaSet":{"name":"replicaset"},"replicas":3,"storageEngine":"inMemory","storageType":"Ephemeral","terminationPolicy":"WipeOut","version":"percona-4.4.10"}}
kubectl.kubernetes.io/last-applied-configuration: {"apiVersion":"kubedb.com/v1alpha2","kind":"MongoDB","metadata":{"annotations":{},"name":"mongo-rs-hid","namespace":"demo"},"spec":{"ephemeralStorage":{"sizeLimit":"900Mi"},"hidden":{"podTemplate":{"spec":{"resources":{"requests":{"cpu":"400m","memory":"400Mi"}}}},"replicas":2,"storage":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"2Gi"}},"storageClassName":"standard"}},"podTemplate":{"spec":{"resources":{"requests":{"cpu":"600m","memory":"600Mi"}}}},"replicaSet":{"name":"replicaset"},"replicas":3,"storageEngine":"inMemory","storageType":"Ephemeral","terminationPolicy":"WipeOut","version":"percona-7.0.4"}}

Creation Timestamp: 2022-10-31T05:05:38Z
Labels:
Expand Down Expand Up @@ -214,7 +214,7 @@ AppBinding:
Secret:
Name: mongo-rs-hid-auth
Type: kubedb.com/mongodb
Version: 4.4.10
Version: 7.0.4

Events:
Type Reason Age From Message
Expand Down Expand Up @@ -283,7 +283,7 @@ kind: MongoDB
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"kubedb.com/v1alpha2","kind":"MongoDB","metadata":{"annotations":{},"name":"mongo-rs-hid","namespace":"demo"},"spec":{"ephemeralStorage":{"sizeLimit":"900Mi"},"hidden":{"podTemplate":{"spec":{"resources":{"requests":{"cpu":"400m","memory":"400Mi"}}}},"replicas":2,"storage":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"2Gi"}},"storageClassName":"standard"}},"podTemplate":{"spec":{"resources":{"requests":{"cpu":"600m","memory":"600Mi"}}}},"replicaSet":{"name":"replicaset"},"replicas":3,"storageEngine":"inMemory","storageType":"Ephemeral","terminationPolicy":"WipeOut","version":"percona-4.4.10"}}
{"apiVersion":"kubedb.com/v1alpha2","kind":"MongoDB","metadata":{"annotations":{},"name":"mongo-rs-hid","namespace":"demo"},"spec":{"ephemeralStorage":{"sizeLimit":"900Mi"},"hidden":{"podTemplate":{"spec":{"resources":{"requests":{"cpu":"400m","memory":"400Mi"}}}},"replicas":2,"storage":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"2Gi"}},"storageClassName":"standard"}},"podTemplate":{"spec":{"resources":{"requests":{"cpu":"600m","memory":"600Mi"}}}},"replicaSet":{"name":"replicaset"},"replicas":3,"storageEngine":"inMemory","storageType":"Ephemeral","terminationPolicy":"WipeOut","version":"percona-7.0.4"}}
creationTimestamp: "2022-10-31T05:03:50Z"
finalizers:
- kubedb.com
Expand Down Expand Up @@ -445,7 +445,7 @@ spec:
storageEngine: inMemory
storageType: Ephemeral
terminationPolicy: WipeOut
version: percona-4.4.10
version: percona-7.0.4
status:
conditions:
- lastTransitionTime: "2022-10-31T05:03:50Z"
Expand Down Expand Up @@ -500,10 +500,10 @@ OX4yb!IFm;~yAHkD
$ kubectl exec -it mongo-rs-hid-0 -n demo bash

bash-4.4$ mongo admin -u root -p 'OX4yb!IFm;~yAHkD'
Percona Server for MongoDB shell version v4.4.10-11
Percona Server for MongoDB shell version v7.0.4-11
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("11890d64-37da-43dd-acb6-0f36a3678875") }
Percona Server for MongoDB server version: v4.4.10-11
Percona Server for MongoDB server version: v7.0.4-11
Welcome to the Percona Server for MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
Expand Down Expand Up @@ -856,9 +856,9 @@ We will exec in `mongo-rs-hid-hidden-0`(which is a hidden node right now) to che
```bash
$ kubectl exec -it mongo-rs-hid-hidden-0 -n demo bash
bash-4.4$ mongo admin -u root -p 'OX4yb!IFm;~yAHkD'
Percona Server for MongoDB server version: v4.4.10-11
Percona Server for MongoDB server version: v7.0.4-11
connecting to: mongodb://127.0.0.1:27017/admin
MongoDB server version: 4.4.10
MongoDB server version: 7.0.4
Welcome to the MongoDB shell.

replicaset:SECONDARY> rs.slaveOk()
Expand Down Expand Up @@ -935,9 +935,9 @@ Now verify the automatic failover, Let's exec in `mongo-rs-hid-0` pod,
```bash
$ kubectl exec -it mongo-rs-hid-0 -n demo bash
bash-4.4:/$ mongo admin -u root -p 'OX4yb!IFm;~yAHkD'
Percona Server for MongoDB server version: v4.4.10-11
Percona Server for MongoDB server version: v7.0.4-11
connecting to: mongodb://127.0.0.1:27017/admin
MongoDB server version: 4.4.10
MongoDB server version: 7.0.4
Welcome to the MongoDB shell.

replicaset:SECONDARY> rs.isMaster().primary
Expand Down
Loading
Loading