mysql.yaml: added external service

This commit is contained in:
Andrey Kartashov 2018-07-21 00:52:26 +07:00
parent b3d48b0bee
commit 65b19d5e9f

View file

@ -74,3 +74,20 @@ spec:
protocol: TCP protocol: TCP
port: 3306 port: 3306
targetPort: mysql targetPort: mysql
---
# external service
kind: Service
apiVersion: v1
metadata:
name: mysql-external
spec:
selector:
app: mariadb
ports:
- name: mysql
protocol: TCP
port: 3306
targetPort: mysql
nodePort: 30306
type: NodePort