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