Micke
1c192c41fd
This is the minumum needed to run a multinode customer in kubernetes. Each customer will run in their own namespace with a nextcloud container and a redis container. There is a proxysql cluster running in its own namespace, used by all customer. This is a monorepo that uses kustomize to allow using this repo for both prod and test (and other things we can think of in the future).
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
|