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