dev mysql update

main
ycz 2024-11-22 16:15:22 +08:00
parent b413c38e74
commit 216d4b9e68
1 changed files with 6 additions and 8 deletions

View File

@ -1,14 +1,13 @@
apiVersion: v1
kind: ReplicationController
kind: StatefulSet
metadata:
name: mysql
namespace: dev
labels:
name: mysql
spec:
replicas: 1
serviceName: mysql
selector:
name: mysql
matchLabels:
app: mysql
template:
metadata:
labels:
@ -63,9 +62,8 @@ apiVersion: v1
kind: Service
metadata:
name: mysql
namespace: dev
labels:
name: mysql
app: mysql
spec:
ports:
- protocol: TCP
@ -74,4 +72,4 @@ spec:
nodePort: 30016
selector:
name: mysql
type: NodePort
type: NodePort