update tcs mysql

main
ycz008 2023-11-06 16:44:34 +08:00
parent b3e87ec4e6
commit ca407f8cf3
1 changed files with 5 additions and 6 deletions

View File

@ -2,17 +2,16 @@ apiVersion: apps/v1
kind: StatefulSet kind: StatefulSet
metadata: metadata:
name: mysql name: mysql
labels:
name: mysql
spec: spec:
replicas: 1 replicas: 1
serviceName: mysql serviceName: mysql
selector: selector:
name: mysql matchLabels:
app: mysql
template: template:
metadata: metadata:
labels: labels:
name: mysql app: mysql
spec: spec:
initContainers: initContainers:
- name: init - name: init
@ -64,7 +63,7 @@ kind: Service
metadata: metadata:
name: mysql name: mysql
labels: labels:
name: mysql app: mysql
spec: spec:
ports: ports:
- protocol: TCP - protocol: TCP
@ -72,5 +71,5 @@ spec:
targetPort: 3306 targetPort: 3306
nodePort: 30016 nodePort: 30016
selector: selector:
name: mysql app: mysql
type: NodePort type: NodePort