51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: proxysql
|
|
labels:
|
|
app: proxysql
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: proxysql
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: proxysql
|
|
spec:
|
|
containers:
|
|
- name: proxysql
|
|
image: proxysql/proxysql:2.6.3
|
|
ports:
|
|
- containerPort: 6033
|
|
- containerPort: 6032
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 256Mi
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: 6033
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: 6033
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/proxysql.cnf
|
|
subPath: proxysql.cnf
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: proxysql-config
|
|
items:
|
|
- key: proxysql.cnf
|
|
path: proxysql.cnf
|