update tcs mysql

main
ycz008 2023-11-06 16:44:34 +08:00
parent b3e87ec4e6
commit ca407f8cf3
1 changed files with 5 additions and 6 deletions

View File

@ -2,17 +2,16 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mysql
labels:
name: mysql
spec:
replicas: 1
serviceName: mysql
selector:
name: mysql
matchLabels:
app: mysql
template:
metadata:
labels:
name: mysql
app: mysql
spec:
initContainers:
- name: init
@ -64,7 +63,7 @@ kind: Service
metadata:
name: mysql
labels:
name: mysql
app: mysql
spec:
ports:
- protocol: TCP
@ -72,5 +71,5 @@ spec:
targetPort: 3306
nodePort: 30016
selector:
name: mysql
app: mysql
type: NodePort