From ca407f8cf35269985704b087f4977547fe8dfd02 Mon Sep 17 00:00:00 2001 From: ycz008 Date: Mon, 6 Nov 2023 16:44:34 +0800 Subject: [PATCH] update tcs mysql --- tcs-upgrade/mysql/mysql.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tcs-upgrade/mysql/mysql.yaml b/tcs-upgrade/mysql/mysql.yaml index 17e6ccc..e9b144d 100644 --- a/tcs-upgrade/mysql/mysql.yaml +++ b/tcs-upgrade/mysql/mysql.yaml @@ -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