Created
September 10, 2018 19:04
-
-
Save dkhenry/24fd356d4e962536c5f955ffc49bc0e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: "planetscale.com/v1alpha1" | |
kind: "PsCluster" | |
metadata: | |
name: "example" | |
spec: | |
containers: | |
vtgate: "registry.planetscale.com/vitess/base:beta" | |
vttablet: "registry.planetscale.com/vitess/base:beta" | |
mysql: "registry.planetscale.com/vitess/base:beta" | |
vtctld: "registry.planetscale.com/vitess/base:beta" | |
lockserver: | |
endpoint: etcd-cluster-client:2379 | |
root_path: /vitess/global | |
cells: | |
- name: "uswest1" | |
affinity: | |
availability_zone: az1 | |
lockserver: | |
endpoint: etcd-cluster-client:2379 | |
root_path: /vitess/global | |
gateway: | |
count: 2 | |
vtctld: | |
count: 1 | |
worker: | |
count: 1 | |
keyspaces: | |
- name: "messagedb" | |
shards: | |
- range: "-40" | |
replicas: | |
- tablet_id: 100 | |
type: "replica" | |
datastore: | |
type: maria | |
container: "amacharla/ss-mariadb" | |
flavor: "MariaDB103" | |
user: root | |
server_id: 100 | |
secret: | |
name: maria | |
key: maria.json | |
- tablet_id: 101 | |
type: "replica" | |
datastore: | |
type: maria | |
container: "amacharla/ss-mariadb" | |
flavor: "MariaDB103" | |
user: root | |
server_id: 101 | |
secret: | |
name: maria | |
key: maria.json | |
- range: "40-80" | |
replicas: | |
- tablet_id: 200 | |
type: "replica" | |
datastore: | |
type: maria | |
container: "amacharla/ss-mariadb" | |
flavor: "MariaDB103" | |
user: root | |
server_id: 200 | |
secret: | |
name: maria | |
key: maria.json | |
- tablet_id: 201 | |
type: "replica" | |
datastore: | |
type: maria | |
container: "amacharla/ss-mariadb" | |
flavor: "MariaDB103" | |
user: root | |
server_id: 201 | |
secret: | |
name: maria | |
key: maria.json | |
- range: "80-C0" | |
replicas: | |
- tablet_id: 300 | |
type: "replica" | |
datastore: | |
type: maria | |
container: "amacharla/ss-mariadb" | |
flavor: "MariaDB103" | |
user: root | |
server_id: 300 | |
secret: | |
name: maria | |
key: maria.json | |
- tablet_id: 301 | |
type: "replica" | |
datastore: | |
type: maria | |
container: "amacharla/ss-mariadb" | |
flavor: "MariaDB103" | |
user: root | |
server_id: 301 | |
secret: | |
name: maria | |
key: maria.json | |
- range: "C0-" | |
replicas: | |
- tablet_id: 400 | |
type: "replica" | |
datastore: | |
type: maria | |
container: "amacharla/ss-mariadb" | |
flavor: "MariaDB103" | |
user: root | |
server_id: 400 | |
secret: | |
name: maria | |
key: maria.json | |
- tablet_id: 401 | |
type: "replica" | |
datastore: | |
type: maria | |
container: "amacharla/ss-mariadb" | |
flavor: "MariaDB103" | |
user: root | |
server_id: 401 | |
secret: | |
name: maria | |
key: maria.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment