Skip to content

Commit

Permalink
run templating
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Dec 13, 2024
1 parent 3c72ffd commit 006adc8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
23 changes: 16 additions & 7 deletions docs/modules/druid/examples/getting_started/druid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ spec:
image:
productVersion: 30.0.0
clusterConfig:
listenerClass: external-stable # This exposes your Stacklet outside of Kubernetes. Remove this configuration if this is not desired
zookeeperConfigMapName: simple-druid-znode
deepStorage:
hdfs:
configMapName: simple-hdfs
directory: /data
directory: /druid
metadataStorageDatabase:
dbType: derby
connString: jdbc:derby://localhost:1527/var/druid/metadata.db;create=true
host: localhost
port: 1527
tls: null
zookeeperConfigMapName: simple-druid-znode
dbType: postgresql
connString: jdbc:postgresql://postgresql-druid/druid
host: postgresql-druid
port: 5432
credentialsSecret: druid-db-credentials
brokers:
roleGroups:
default:
Expand All @@ -38,3 +39,11 @@ spec:
roleGroups:
default:
replicas: 1
---
apiVersion: v1
kind: Secret
metadata:
name: druid-db-credentials
stringData:
username: druid
password: druid
11 changes: 11 additions & 0 deletions docs/modules/druid/examples/getting_started/getting_started.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,17 @@ kubectl rollout status --watch statefulset/simple-hdfs-journalnode-default --tim
kubectl rollout status --watch statefulset/simple-hdfs-namenode-default --timeout=300s
# end::watch-hdfs-rollout[]

echo "Installing PostgreSQL for Druid"
# tag::helm-install-postgres[]
helm install postgresql-druid \
--repo https://charts.bitnami.com/bitnami postgresql \
--version 16.1.2 \
--set auth.database=druid \
--set auth.username=druid \
--set auth.password=druid \
--wait
# end::helm-install-postgres[]

echo "Install DruidCluster from druid.yaml"
# tag::install-druid[]
kubectl apply --server-side -f druid.yaml
Expand Down
4 changes: 4 additions & 0 deletions docs/modules/druid/examples/getting_started/hdfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ spec:
dfsReplication: 1
zookeeperConfigMapName: simple-hdfs-znode
nameNodes:
config:
listenerClass: external-stable # This exposes your Stacklet outside of Kubernetes. Remove this configuration if this is not desired
roleGroups:
default:
replicas: 2
dataNodes:
config:
listenerClass: external-unstable # This exposes your Stacklet outside of Kubernetes. Remove this configuration if this is not desired
roleGroups:
default:
replicas: 1
Expand Down

0 comments on commit 006adc8

Please sign in to comment.