Skip to content

Commit

Permalink
Merge pull request #7357 from planetscale/ss-oc6-ksorc
Browse files Browse the repository at this point in the history
examples/operator: fix tags and add vtorc example
  • Loading branch information
sougou authored Jan 23, 2021
2 parents 0c75403 + 877ce96 commit 31fd140
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 41 deletions.
10 changes: 5 additions & 5 deletions examples/operator/101_initial_cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ metadata:
name: example
spec:
images:
vtctld: vitess/lite:v8.0.0
vtgate: vitess/lite:v8.0.0
vttablet: vitess/lite:v8.0.0
vtbackup: vitess/lite:v8.0.0
vtctld: vitess/lite:latest
vtgate: vitess/lite:latest
vttablet: vitess/lite:latest
vtbackup: vitess/lite:latest
mysqld:
mysql56Compatible: vitess/lite:v6.0.20-20200429
mysql56Compatible: vitess/lite:latest
mysqldExporter: prom/mysqld-exporter:v0.11.0
cells:
- name: zone1
Expand Down
10 changes: 5 additions & 5 deletions examples/operator/201_customer_tablets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ metadata:
name: example
spec:
images:
vtctld: vitess/lite:v8.0.0
vtgate: vitess/lite:v8.0.0
vttablet: vitess/lite:v8.0.0
vtbackup: vitess/lite:v8.0.0
vtctld: vitess/lite:latest
vtgate: vitess/lite:latest
vttablet: vitess/lite:latest
vtbackup: vitess/lite:latest
mysqld:
mysql56Compatible: vitess/lite:v6.0.20-20200429
mysql56Compatible: vitess/lite:latest
mysqldExporter: prom/mysqld-exporter:v0.11.0
cells:
- name: zone1
Expand Down
10 changes: 5 additions & 5 deletions examples/operator/302_new_shards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ metadata:
name: example
spec:
images:
vtctld: vitess/lite:v8.0.0
vtgate: vitess/lite:v8.0.0
vttablet: vitess/lite:v8.0.0
vtbackup: vitess/lite:v8.0.0
vtctld: vitess/lite:latest
vtgate: vitess/lite:latest
vttablet: vitess/lite:latest
vtbackup: vitess/lite:latest
mysqld:
mysql56Compatible: vitess/lite:v8.0.0
mysql56Compatible: vitess/lite:latest
mysqldExporter: prom/mysqld-exporter:v0.11.0
cells:
- name: zone1
Expand Down
10 changes: 5 additions & 5 deletions examples/operator/306_down_shard_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ metadata:
name: example
spec:
images:
vtctld: vitess/lite:v8.0.0
vtgate: vitess/lite:v8.0.0
vttablet: vitess/lite:v8.0.0
vtbackup: vitess/lite:v8.0.0
vtctld: vitess/lite:latest
vtgate: vitess/lite:latest
vttablet: vitess/lite:latest
vtbackup: vitess/lite:latest
mysqld:
mysql56Compatible: us.gcr.io/planetscale-vitess/lite:2020-04-24.228e6fe
mysql56Compatible: vitess/lite:latest
mysqldExporter: prom/mysqld-exporter:v0.11.0
cells:
- name: zone1
Expand Down
2 changes: 1 addition & 1 deletion examples/operator/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5773,7 +5773,7 @@ spec:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: vitess-operator
image: planetscale/vitess-operator:v2.2.0
image: planetscale/vitess-operator:latest
imagePullPolicy: IfNotPresent
name: vitess-operator
resources:
Expand Down
2 changes: 1 addition & 1 deletion examples/operator/orcpf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kubectl port-forward --address localhost "$(kubectl get service --selector="plan
process_id1=$!
kubectl port-forward --address localhost "$(kubectl get service --selector="planetscale.com/component=vtgate,!planetscale.com/cell" -o name | head -n1)" 15306:3306 &
process_id2=$!
kubectl port-forward --address localhost "$(kubectl get service --selector="planetscale.com/component=orchestrator" -o name | head -n1)" 3000 &
kubectl port-forward --address localhost "$(kubectl get pod --selector="planetscale.com/component=vtorc" -o name | head -n1)" 3000 &
process_id3=$!
sleep 2
echo "You may point your browser to http://localhost:15000 for vtctld, http://localhost:3000 for orchestrator, and use the following aliases as shortcuts:"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ metadata:
name: example
spec:
images:
vtctld: vitess/orctest:v1
orchestrator: vitess/orctest:v1
vtgate: vitess/orctest:v1
vttablet: vitess/orctest:v1
vtbackup: vitess/orctest:v1
vtctld: vitess/lite:latest
vtorc: vitess/lite:latest
vtgate: vitess/lite:latest
vttablet: vitess/lite:latest
vtbackup: vitess/lite:latest
mysqld:
mysql56Compatible: vitess/lite:v6.0.20-20200429
mysql56Compatible: vitess/lite:latest
mysqldExporter: prom/mysqld-exporter:v0.11.0
cells:
- name: zone1
Expand Down Expand Up @@ -43,23 +43,20 @@ spec:
requests:
cpu: 100m
memory: 128Mi
vitessOrchestrator:
cells:
- zone1
configSecret:
name: example-cluster-config
key: orc_config.json
replicas: 1
resources:
limits:
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi

keyspaces:
- name: commerce
turndownPolicy: Immediate
vitessOrchestrator:
configSecret:
name: example-cluster-config
key: orc_config.json
resources:
limits:
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
partitionings:
- equal:
parts: 1
Expand All @@ -77,6 +74,7 @@ spec:
extraFlags:
db_charset: utf8mb4
disable_active_reparents: "true"
enable_semi_sync: "false"
resources:
requests:
cpu: 100m
Expand Down

0 comments on commit 31fd140

Please sign in to comment.