mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-11 09:59:43 +00:00
mysql.yaml: added external service
This commit is contained in:
parent
b3d48b0bee
commit
65b19d5e9f
1 changed files with 17 additions and 0 deletions
17
mysql.yaml
17
mysql.yaml
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue