39 lines
601 B
YAML
39 lines
601 B
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
annotations:
|
||
|
labels:
|
||
|
app: proxysql
|
||
|
name: proxysql
|
||
|
namespace: proxysql
|
||
|
spec:
|
||
|
ports:
|
||
|
- name: proxysql-mysql
|
||
|
nodePort: 30033
|
||
|
port: 6033
|
||
|
protocol: TCP
|
||
|
targetPort: 6033
|
||
|
- name: proxysql-admin
|
||
|
nodePort: 30032
|
||
|
port: 6032
|
||
|
protocol: TCP
|
||
|
targetPort: 6032
|
||
|
selector:
|
||
|
app: proxysql
|
||
|
type: NodePort
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: proxysqlcluster
|
||
|
namespace: proxysql
|
||
|
labels:
|
||
|
app: proxysql
|
||
|
spec:
|
||
|
clusterIP: None
|
||
|
ports:
|
||
|
- port: 6032
|
||
|
name: proxysql-admin
|
||
|
selector:
|
||
|
app: proxysql
|