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