From 216d4b9e688f6c29467ff5bc74e047c32b8751b1 Mon Sep 17 00:00:00 2001 From: ycz Date: Fri, 22 Nov 2024 16:15:22 +0800 Subject: [PATCH] dev mysql update --- dev-upgrade/mysql/mysql.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/dev-upgrade/mysql/mysql.yaml b/dev-upgrade/mysql/mysql.yaml index a198c6b..0297fdb 100644 --- a/dev-upgrade/mysql/mysql.yaml +++ b/dev-upgrade/mysql/mysql.yaml @@ -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 \ No newline at end of file