mysql-clusters: Fix external cluster
This commit is contained in:
parent
abb25a7eb0
commit
2c5721d5cf
@ -11,12 +11,30 @@ spec:
|
|||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: primary-external
|
||||||
|
spec:
|
||||||
|
clusterIP: None
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: external
|
name: external
|
||||||
spec:
|
spec:
|
||||||
type: ExternalName
|
clusterIP: None
|
||||||
externalName: 172.20.36.1
|
---
|
||||||
ports:
|
kind: Endpoints
|
||||||
- name: mysql
|
apiVersion: v1
|
||||||
port: 3306
|
metadata:
|
||||||
protocol: TCP
|
name: primary-external
|
||||||
|
subsets:
|
||||||
|
- addresses:
|
||||||
|
- ip: 172.20.36.1
|
||||||
|
---
|
||||||
|
kind: Endpoints
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: external
|
||||||
|
subsets:
|
||||||
|
- addresses:
|
||||||
|
- ip: 172.20.36.1
|
||||||
|
Loading…
Reference in New Issue
Block a user