Skip to content

Commit 156f327

Browse files
authored
Merge pull request #34330 from def-/pr-bin-orchestratord-help
bin/orchstratord: Add instructions for usage
2 parents 1da9c4d + 58629cf commit 156f327

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

misc/kind/cluster.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,21 @@ nodes:
157157
image: kindest/node:v1.31.6
158158
labels:
159159
materialize.cloud/disk: true
160+
materialize.cloud/swap: true
160161
materialize.cloud/availability-zone: "1"
161162
topology.kubernetes.io/zone: "1"
162163
- role: worker
163164
image: kindest/node:v1.31.6
164165
labels:
165166
materialize.cloud/disk: true
167+
materialize.cloud/swap: true
166168
materialize.cloud/availability-zone: "2"
167169
topology.kubernetes.io/zone: "2"
168170
- role: worker
169171
image: kindest/node:v1.31.6
170172
labels:
171173
materialize.cloud/disk: true
174+
materialize.cloud/swap: true
172175
materialize.cloud/availability-zone: "3"
173176
topology.kubernetes.io/zone: "3"
174177

@@ -177,6 +180,7 @@ nodes:
177180
image: kindest/node:v1.31.6
178181
labels:
179182
materialize.cloud/disk: false
183+
materialize.cloud/swap: false
180184
materialize.cloud/availability-zone: "1"
181185
topology.kubernetes.io/zone: "1"
182186

@@ -185,11 +189,13 @@ nodes:
185189
image: kindest/node:v1.31.6
186190
labels:
187191
materialize.cloud/disk: true
192+
materialize.cloud/swap: true
188193
materialize.cloud/availability-zone: "3"
189194
topology.kubernetes.io/zone: "3"
190195
- role: worker
191196
image: kindest/node:v1.31.6
192197
labels:
193198
materialize.cloud/disk: true
199+
materialize.cloud/swap: true
194200
materialize.cloud/availability-zone: "3"
195201
topology.kubernetes.io/zone: "3"

misc/python/materialize/cli/orchestratord.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,27 @@
2727
from materialize.docker import image_registry
2828

2929
DEV_IMAGE_TAG = "local-dev"
30-
DEFAULT_POSTGRES = (
31-
"postgres://[email protected]:5432/materialize"
32-
)
33-
DEFAULT_MINIO = "s3://minio:minio123@persist/persist?endpoint=http%3A%2F%2Fminio.materialize.svc.cluster.local%3A9000&region=minio"
30+
DEFAULT_POSTGRES = "postgres://materialize_user:[email protected]:5432/materialize_db?sslmode=disable"
31+
DEFAULT_MINIO = "s3://minio:minio123@bucket/12345678-1234-1234-1234-123456789012?endpoint=http%3A%2F%2Fminio.materialize.svc.cluster.local%3A9000&region=minio"
3432

3533

3634
def main():
3735
os.chdir(MZ_ROOT)
36+
# Console is not on GHCR yet
37+
os.environ["MZ_GHCR"] = "0"
3838

3939
parser = argparse.ArgumentParser(
4040
prog="orchestratord",
41-
description="""Runs orchestratord within a local kind cluster""",
41+
description="Runs orchestratord within a local kind cluster",
42+
usage="""
43+
For a new setup you can run:
44+
kind delete cluster
45+
kind create cluster --config misc/kind/cluster.yaml
46+
kubectl create namespace materialize
47+
kubectl apply -f misc/helm-charts/testing/postgres.yaml
48+
kubectl apply -f misc/helm-charts/testing/minio.yaml
49+
bin/orchestratord run
50+
bin/orchestratord environment --license-key-file ~/license-key""",
4251
)
4352
parser.add_argument(
4453
"--kind-cluster-name",

0 commit comments

Comments
 (0)