Ao tentar criar o StatefulSet:
kubectl create -f statefulset.yaml
Recebo o erro abaixo:
error: error validating "statefulset.yaml": error validating data: ValidationError(StatefulSet.spec.template.metadata): unknown field "labers" in io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta; if you choose to ignore these errors, turn validation off with --validate=false
Cheguei a tentar mudar a versão da API mas gerou outros erros.
Segue abaixo o conteúdo do meu arquivo statefulset.yaml:
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: statefulset-mysql
spec:
serviceName: db
template:
metadata:
labers:
name: mysql
spec:
containers:
- name: container-mysql
image: mysql
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: config-mysql