mysql: Add k8s first example
This commit is contained in:
parent
a1fbe3c1aa
commit
2a7051ab3b
7 changed files with 143 additions and 0 deletions
12
mysql/k8s/03_mysql_service.yaml
Normal file
12
mysql/k8s/03_mysql_service.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mysql-db-service
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: mysql-db
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 3306
|
||||
targetPort: 3306
|
Loading…
Add table
Add a link
Reference in a new issue