зеркало из https://github.com/github/vitess-gh.git
153 строки
3.6 KiB
YAML
153 строки
3.6 KiB
YAML
apiVersion: planetscale.com/v2
|
|
kind: VitessCluster
|
|
metadata:
|
|
name: example
|
|
spec:
|
|
images:
|
|
vtctld: vitess/lite:v15.0.3
|
|
vtadmin: vitess/vtadmin:v15.0.3
|
|
vtgate: vitess/lite:v15.0.3
|
|
vttablet: vitess/lite:v15.0.3
|
|
vtbackup: vitess/lite:v15.0.3
|
|
vtorc: vitess/lite:v15.0.3
|
|
mysqld:
|
|
mysql56Compatible: vitess/lite:v15.0.3
|
|
mysqldExporter: prom/mysqld-exporter:v0.11.0
|
|
cells:
|
|
- name: zone1
|
|
gateway:
|
|
authentication:
|
|
static:
|
|
secret:
|
|
name: example-cluster-config
|
|
key: users.json
|
|
replicas: 1
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
memory: 256Mi
|
|
vitessDashboard:
|
|
cells:
|
|
- zone1
|
|
extraFlags:
|
|
security_policy: read-only
|
|
replicas: 1
|
|
resources:
|
|
limits:
|
|
memory: 128Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
vtadmin:
|
|
rbac:
|
|
name: example-cluster-config
|
|
key: rbac.yaml
|
|
cells:
|
|
- zone1
|
|
apiAddresses:
|
|
- http://localhost:14001
|
|
replicas: 1
|
|
readOnly: false
|
|
apiResources:
|
|
limits:
|
|
memory: 128Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
webResources:
|
|
limits:
|
|
memory: 128Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
|
|
keyspaces:
|
|
- name: commerce
|
|
durabilityPolicy: none
|
|
turndownPolicy: Immediate
|
|
vitessOrchestrator:
|
|
resources:
|
|
limits:
|
|
memory: 128Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
extraFlags:
|
|
recovery-period-block-duration: 5s
|
|
partitionings:
|
|
- equal:
|
|
parts: 1
|
|
shardTemplate:
|
|
databaseInitScriptSecret:
|
|
name: example-cluster-config
|
|
key: init_db.sql
|
|
replication:
|
|
enforceSemiSync: false
|
|
tabletPools:
|
|
- cell: zone1
|
|
type: replica
|
|
replicas: 2
|
|
vttablet:
|
|
extraFlags:
|
|
disable_active_reparents: "true"
|
|
db_charset: utf8mb4
|
|
resources:
|
|
limits:
|
|
memory: 256Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
mysqld:
|
|
resources:
|
|
limits:
|
|
memory: 512Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 512Mi
|
|
dataVolumeClaimTemplate:
|
|
accessModes: ["ReadWriteOnce"]
|
|
resources:
|
|
requests:
|
|
storage: 10Gi
|
|
- name: customer
|
|
durabilityPolicy: none
|
|
turndownPolicy: Immediate
|
|
partitionings:
|
|
- equal:
|
|
parts: 1
|
|
shardTemplate:
|
|
databaseInitScriptSecret:
|
|
name: example-cluster-config
|
|
key: init_db.sql
|
|
replication:
|
|
enforceSemiSync: false
|
|
tabletPools:
|
|
- cell: zone1
|
|
type: replica
|
|
replicas: 2
|
|
vttablet:
|
|
extraFlags:
|
|
db_charset: utf8mb4
|
|
resources:
|
|
limits:
|
|
memory: 256Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
mysqld:
|
|
resources:
|
|
limits:
|
|
memory: 512Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 512Mi
|
|
dataVolumeClaimTemplate:
|
|
accessModes: ["ReadWriteOnce"]
|
|
resources:
|
|
requests:
|
|
storage: 10Gi
|
|
updateStrategy:
|
|
type: Immediate
|