-
Notifications
You must be signed in to change notification settings - Fork 3
/
vtctld.yaml
104 lines (102 loc) · 2.05 KB
/
vtctld.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
apiVersion: v1
data:
consul.conf: |
server {
listen 8500;
listen [::]:8500;
access_log off;
error_log off;
location / {
proxy_pass http://consul-client:8500;
proxy_http_version 1.1;
}
}
kind: ConfigMap
metadata:
labels:
app: mysql
name: nginx-config
namespace: cloud
---
apiVersion: v1
kind: Service
metadata:
labels:
app: vtctld
service_group: vtctld
name: vtctld
namespace: cloud
spec:
ports:
- name: web
port: 8080
targetPort: http-port
- name: grpc
port: 15999
targetPort: grpc-port
selector:
app: vtctld
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: vtctld
namespace: cloud
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
app: vtctld
template:
metadata:
labels:
app: vtctld
spec:
containers:
- args:
- /vt/bin/vtctld
- -logtostderr
- -topo_implementation
- consul
- -topo_global_server_address
- localhost:8500
- -web_dir
- /vt/src/vitess.io/vitess/web/vtctld
- -web_dir2
- /vt/src/vitess.io/vitess/web/vtctld2/app
- -topo_global_root
- vitess/global
- -port
- "8080"
- -grpc_port
- "15999"
- -cell
- us_east_1
- -service_map
- grpc-vtctl
env:
- name: HOST_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
image: serhatcetinkaya/vitess:60322344f-lite
imagePullPolicy: IfNotPresent
name: vtctld
ports:
- containerPort: 8080
name: http-port
- containerPort: 15999
name: grpc-port
- image: nginx:1.17.7
imagePullPolicy: IfNotPresent
name: nginx
volumeMounts:
- mountPath: /etc/nginx/conf.d/consul.conf
name: nginx-config-vol
subPath: consul.conf
volumes:
- configMap:
name: nginx-config
name: nginx-config-vol