ao inserir tal como mostrado na aula aparece tal mensagem abaixo
/kubernetes# kubectl create -f statefulset-sistema.yml
error: unable to recognize "statefulset-sistema.yml": no matches for kind "Statefulset" in version "apps/v1"
================
apiVersion: apps/v1
kind: Statefulset
metadata:
name: aplicacao-sistema-statefulset
spec:
serviceName: aplicacao-sistema-statefulset
selector:
matchLabels:
name: aplicacao-sistema-pod-statefulset
template:
metadata:
labels:
name: aplicacao-sistema-pod-statefulset
spec:
containers:
- name: container-aplicacao-sistema-statefulset
image: jnlucas/noticia-alura:v2
ports:
- containerPort: 80
volumeMounts:
- name: imagens
mountPath: /var/wwww/html/uploads
- name: sessoes
mountPath: /tmp
volumes:
- name: imagens
persistentVolumeClaim:
claimName: permissao-imagens
- name: sessoes
persistentVolumeClaim:
claimName: permissao-sessao