This is a simplified version of the configs found in the Vitess repo: https://github.com/youtube/vitess/tree/master/examples/kubernetes Here we use a single script to start all of Vitess, since the aim is just to show the end result. The full tutorial on our site goes into much more detail on each step: http://vitess.io/getting-started/
16 lines
207 B
YAML
16 lines
207 B
YAML
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: vtgate
|
|
labels:
|
|
component: vtgate
|
|
app: vitess
|
|
spec:
|
|
ports:
|
|
- port: 15001
|
|
selector:
|
|
component: vtgate
|
|
app: vitess
|
|
type: LoadBalancer
|
|
|