Consegue me passar o seu statefulset.yaml fazendo um favor?
esse seria meu codigo caso queira testar
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: statefulset-mysql
spec:
replicas: 1
template:
metadata:
labels:
app: mysql-server
name: mysql
spec:
containers:
- name: container-mysql
image: mysql:5.5
ports:
- containerPort: 3306
env:
- name: MYSQL_DATABASE
value: "loja"
- name: MYSQL_USER
value: "root"
- name: MYSQL_ALLOW_EMPTY_PASSWORD
value: "1"
volumeMounts:
- name: volume-mysql
mountPath: /var/lib/mysql
volumes:
- name: volume-mysql
persistentVolumeClaim:
claimName: configuracao-mysql
selector:
matchLabels:
app: mysql-server