Merge pull request #15054 from enisoc/vitess-example

examples/vitess: Update for Vitess v2.0.0-alpha3
This commit is contained in:
Alex Robinson 2015-10-05 17:05:24 -07:00
commit ee0aef3726
4 changed files with 10 additions and 6 deletions

View File

@ -12,7 +12,7 @@ spec:
spec: spec:
containers: containers:
- name: guestbook - name: guestbook
image: vitess/guestbook:v2.0 image: vitess/guestbook:v2.0.0-alpha3
ports: ports:
- name: http-server - name: http-server
containerPort: 8080 containerPort: 8080

View File

@ -12,7 +12,7 @@ spec:
spec: spec:
containers: containers:
- name: vtctld - name: vtctld
image: vitess/lite:v2.0 image: vitess/lite:v2.0.0-alpha3
volumeMounts: volumeMounts:
- name: syslog - name: syslog
mountPath: /dev/log mountPath: /dev/log
@ -35,8 +35,10 @@ spec:
-log_dir $VTDATAROOT/tmp -log_dir $VTDATAROOT/tmp
-alsologtostderr -alsologtostderr
-port 15000 -port 15000
-service_map 'bsonrpc-vt-vtctl'
-topo_implementation etcd -topo_implementation etcd
-tablet_protocol grpc -tablet_protocol grpc
-tablet_manager_protocol grpc
-etcd_global_addrs http://$ETCD_GLOBAL_SERVICE_HOST:$ETCD_GLOBAL_SERVICE_PORT" vitess -etcd_global_addrs http://$ETCD_GLOBAL_SERVICE_HOST:$ETCD_GLOBAL_SERVICE_PORT" vitess
volumes: volumes:
- name: syslog - name: syslog

View File

@ -12,7 +12,7 @@ spec:
spec: spec:
containers: containers:
- name: vtgate - name: vtgate
image: vitess/lite:v2.0 image: vitess/lite:v2.0.0-alpha3
volumeMounts: volumeMounts:
- name: syslog - name: syslog
mountPath: /dev/log mountPath: /dev/log
@ -35,6 +35,7 @@ spec:
-alsologtostderr -alsologtostderr
-port 15001 -port 15001
-tablet_protocol grpc -tablet_protocol grpc
-service_map 'bsonrpc-vt-vtgateservice'
-cell test" vitess -cell test" vitess
volumes: volumes:
- name: syslog - name: syslog

View File

@ -11,7 +11,7 @@ metadata:
spec: spec:
containers: containers:
- name: vttablet - name: vttablet
image: vitess/lite:v2.0 image: vitess/lite:v2.0.0-alpha3
volumeMounts: volumeMounts:
- name: syslog - name: syslog
mountPath: /dev/log mountPath: /dev/log
@ -48,7 +48,8 @@ spec:
-alsologtostderr -alsologtostderr
-port {{port}} -port {{port}}
-grpc_port {{grpc_port}} -grpc_port {{grpc_port}}
-service_map 'grpc-queryservice' -service_map 'grpc-queryservice,grpc-tabletmanager,grpc-updatestream'
-binlog_player_protocol grpc
-tablet-path {{alias}} -tablet-path {{alias}}
-tablet_hostname $(hostname -i) -tablet_hostname $(hostname -i)
-init_keyspace {{keyspace}} -init_keyspace {{keyspace}}
@ -71,7 +72,7 @@ spec:
-rowcache-bin /usr/bin/memcached -rowcache-bin /usr/bin/memcached
-rowcache-socket $VTDATAROOT/{{tablet_subdir}}/memcache.sock" vitess -rowcache-socket $VTDATAROOT/{{tablet_subdir}}/memcache.sock" vitess
- name: mysql - name: mysql
image: vitess/lite:v2.0 image: vitess/lite:v2.0.0-alpha3
volumeMounts: volumeMounts:
- name: syslog - name: syslog
mountPath: /dev/log mountPath: /dev/log