Add k8s manifest: deployment-proxysql.yaml

This commit is contained in:
kaffa
2026-03-12 14:25:55 +09:00
parent fb52561b80
commit 20ddff99cb

View File

@@ -0,0 +1,50 @@
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