23 lines
388 B
YAML
23 lines
388 B
YAML
|
---
|
||
|
apiVersion: codemowers.cloud/v1beta1
|
||
|
kind: MysqlDatabaseClass
|
||
|
metadata:
|
||
|
name: external
|
||
|
annotations:
|
||
|
kubernetes.io/description: "External MySQL cluster"
|
||
|
spec:
|
||
|
reclaimPolicy: Retain
|
||
|
shared: true
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: external
|
||
|
spec:
|
||
|
type: ExternalName
|
||
|
externalName: 172.20.36.1
|
||
|
ports:
|
||
|
- name: mysql
|
||
|
port: 3306
|
||
|
protocol: TCP
|