-
Notifications
You must be signed in to change notification settings - Fork 1
/
proxysql-watcher.yaml
46 lines (44 loc) · 1.25 KB
/
proxysql-watcher.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
apiVersion: v1
kind: ReplicationController
metadata:
name: proxysql-watcher
spec:
replicas: 1 # tells deployment to run N pods matching the template
selector:
app: proxysql-watcher
template: # create pods using pod definition in this template
metadata:
name: proxysql-watcher
labels:
app: proxysql-watcher
spec:
containers:
- name: proxysql-watcher
image: amnk/proxysql-watcher:latest
imagePullPolicy: Always
env:
- name: MYSQL_ROOT_PASSWORD
valueFrom:
configMapKeyRef:
name: percona-config
key: mysql-root-password
- name: DISCOVERY_SERVICE
valueFrom:
configMapKeyRef:
name: percona-config
key: discovery-service
- name: CLUSTER_NAME
valueFrom:
configMapKeyRef:
name: percona-config
key: cluster-name
- name: MYSQL_PROXY_USER
valueFrom:
configMapKeyRef:
name: percona-config
key: mysql-proxy-user
- name: MYSQL_PROXY_PASSWORD
valueFrom:
configMapKeyRef:
name: percona-config
key: mysql-proxy-password