Estou precisando da ajuda de vocês ;)
Segue o erro abaixo:
error: unable to recognize "statefulset-bkp.yaml": no matches for kind "StatefulSet" in version "apps/v1beta1"
minikube version: v1.8.1
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: statefulset-mysql
spec:
serviceName: db
template:
metadata:
labels:
name: mysql
spec:
containers:
-
env:
-
name: MYSQL_DATABASE
value: loja
-
name: MYSQL_USER
value: root
-
name: MYSQL_ALLOW_EMPTY_PASSWORD
value: "1"
image: "mysql:5.5"
name: container-mysql
ports:
-
containerPort: 3306
volumeMounts:
-
mountPath: /var/lib/mysql
name: volume-mysql
volumes:
-
name: volume-mysql
persistentVolumeClaim:
claimName: configuracao-mysql
Realizei a verificação do yaml com sucesso.
kubectl api-versions
kubectl api-versions
admissionregistration.k8s.io/v1
admissionregistration.k8s.io/v1beta1
apiextensions.k8s.io/v1
apiextensions.k8s.io/v1beta1
apiregistration.k8s.io/v1
apiregistration.k8s.io/v1beta1
apps/v1
authentication.k8s.io/v1
authentication.k8s.io/v1beta1
authorization.k8s.io/v1
authorization.k8s.io/v1beta1
autoscaling/v1
autoscaling/v2beta1
autoscaling/v2beta2
batch/v1
batch/v1beta1
certificates.k8s.io/v1beta1
coordination.k8s.io/v1
coordination.k8s.io/v1beta1
discovery.k8s.io/v1beta1
events.k8s.io/v1beta1
extensions/v1beta1
networking.k8s.io/v1
networking.k8s.io/v1beta1
node.k8s.io/v1beta1
policy/v1beta1
rbac.authorization.k8s.io/v1
rbac.authorization.k8s.io/v1beta1
scheduling.k8s.io/v1
scheduling.k8s.io/v1beta1
storage.k8s.io/v1
storage.k8s.io/v1beta1
v1